Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
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 #1

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 15:38.


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