Raised This Month: $51 Target: $400
 12% 

fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with ZBOT


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rainbowdash98
New Member
Join Date: Jan 2018
Old 10-12-2022 , 14:02   fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with ZBOT
Reply With Quote #1

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 ???
Attached Files
File Type: zip 15313541.zip (9.99 MB, 34 views)

Last edited by Rainbowdash98; 10-12-2022 at 14:04.
Rainbowdash98 is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 10-12-2022 , 21:01   Re: fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with
Reply With Quote #2

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")

__________________
My plugin:

Last edited by Celena Luna; 10-12-2022 at 21:03.
Celena Luna is offline
Somie1998
New Member
Join Date: Oct 2022
Old 10-12-2022 , 23:13   Re: fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with
Reply With Quote #3

Quote:
Originally Posted by Celena Luna View Post
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 ???

Last edited by Somie1998; 10-12-2022 at 23:14.
Somie1998 is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 10-13-2022 , 00:28   Re: fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with
Reply With Quote #4

Quote:
Originally Posted by Somie1998 View Post
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?
__________________
My plugin:
Celena Luna is offline
Rainbowdash98
New Member
Join Date: Jan 2018
Old 10-13-2022 , 03:27   Re: fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with
Reply With Quote #5

https://www.youtube.com/watch?v=frv0TYKGfgg


https://youtu.be/MdeU3_Hy4ec

Last edited by Rainbowdash98; 10-13-2022 at 03:28.
Rainbowdash98 is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 10-13-2022 , 05:04   Re: fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with
Reply With Quote #6

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?
__________________
My plugin:

Last edited by Celena Luna; 10-13-2022 at 05:04.
Celena Luna is offline
Somie1998
New Member
Join Date: Oct 2022
Old 10-13-2022 , 06:38   Re: fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with
Reply With Quote #7

Quote:
Originally Posted by Celena Luna View Post
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.
Attached Files
File Type: zip 15313541.zip (11.48 MB, 39 views)
Somie1998 is offline
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 10-13-2022 , 11:58   Re: fw_TraceAttack_Player, ham_traceattack_post, TraceAttack doesn't work great with
Reply With Quote #8

Quote:
Originally Posted by Celena Luna View Post
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?
__________________
Now working on: Side Weapons (Very lazy, tbh)
Avatar source: https://bit.ly/3BAk19g
Discord: kww#9951
kww is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:44.


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