AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with ZBOT (https://forums.alliedmods.net/showthread.php?t=339960)

Rainbowdash98 10-12-2022 14:02

fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with ZBOT
 
1 Attachment(s)
Some Dias, YunusReyiz, Celena Luna Dual Berreta Gunslinger and cs-dev.ru weapon plugins i download have a function that i write in a title doesn't work well with ZBOT i test 3 year ago now and i know that, can can some one help me and those function is strange, should i can't deal damage multiplier on ZBOT and why KORD_12.7 Skull 4 work well with ZBOT with "HamHook_Entity_TraceAttack" and Ham_TakeDamage work well on ZBOT ???

Celena Luna 10-12-2022 21:01

Re: fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with
 
for my plugins, I did not use RegisterHamFromEntity because i stoped using ZBot and switched to SyPB or PODBot which both BOT was treated like actual player => No need to use RegisterHamFromEntity
In fact, it would cause the Ham Registered twice on those BOT making they take twice the effect/damage

PHP Code:

new g_HamBot
public client_putinserver(id)
{
    if(!
g_HamBot && is_user_bot(id))
    {
        
g_HamBot 1
        set_task
(0.1"Register_HamBot"id)
    }
}

public 
Register_HamBot(id)
{
    
//Do the same with other Ham
    
RegisterHamFromEntity(Ham_TraceAttackid"fw_TraceAttack_Player")



Somie1998 10-12-2022 23:13

Re: fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with
 
Quote:

Originally Posted by Celena Luna (Post 2790860)
for my plugins, I did not use RegisterHamFromEntity because i stoped using ZBot and switched to SyPB or PODBot which both BOT was treated like actual player => No need to use RegisterHamFromEntity
In fact, it would cause the Ham Registered twice on those BOT making they take twice the effect/damage

PHP Code:

new g_HamBot
public client_putinserver(id)
{
    if(!
g_HamBot && is_user_bot(id))
    {
        
g_HamBot 1
        set_task
(0.1"Register_HamBot"id)
    }
}

public 
Register_HamBot(id)
{
    
//Do the same with other Ham
    
RegisterHamFromEntity(Ham_TraceAttackid"fw_TraceAttack_Player")



Look at Dias Balrog-7 plugins he did like you say why i test is does not work on ZBOT ???

Celena Luna 10-13-2022 00:28

Re: fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with
 
Quote:

Originally Posted by Somie1998 (Post 2790864)
Look at Dias Balrog-7 plugins he did like you say why i test is does not work on ZBOT ???

it is hard to pin point which when wrong. Could you give a demonstration on what happened?

Rainbowdash98 10-13-2022 03:27

Re: fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with
 
https://www.youtube.com/watch?v=frv0TYKGfgg


https://youtu.be/MdeU3_Hy4ec

Celena Luna 10-13-2022 05:04

Re: fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with
 
Quote:

Originally Posted by Rainbowdash98 (Post 2790869)

Could you attack 1 plugins that "work" and 1 that "does not work" here so I can check it out?
Is another in your attachment is work?

Somie1998 10-13-2022 06:38

Re: fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with
 
1 Attachment(s)
Quote:

Originally Posted by Celena Luna (Post 2790874)
Could you attack 1 plugins that "work" and 1 that "does not work" here so I can check it out?
Is another in your attachment is work?

all in in here updated link.

kww 10-13-2022 11:58

Re: fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with
 
Quote:

Originally Posted by Celena Luna (Post 2790860)
for my plugins, I did not use RegisterHamFromEntity because i stoped using ZBot and switched to SyPB or PODBot which both BOT was treated like actual player => No need to use RegisterHamFromEntity
In fact, it would cause the Ham Registered twice on those BOT making they take twice the effect/damage

PHP Code:

new g_HamBot
public client_putinserver(id)
{
    if(!
g_HamBot && is_user_bot(id))
    {
        
g_HamBot 1
        set_task
(0.1"Register_HamBot"id)
    }
}

public 
Register_HamBot(id)
{
    
//Do the same with other Ham
    
RegisterHamFromEntity(Ham_TraceAttackid"fw_TraceAttack_Player")



This will work only once... Is g_HamBot needed there?


All times are GMT -4. The time now is 15:38.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.