Raised This Month: $ Target: $400
 0% 

[DoD:S] Anti Bot (RCBOT2) TK


Post New Thread Reply   
 
Thread Tools Display Modes
Author
micmacx
Member
Join Date: May 2021
Plugin ID:
8449
Plugin Version:
2.0
Plugin Category:
General Purpose
Plugin Game:
Day of Defeat: Source
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    It's a plugin that prevents bots Team Killing
    Old 04-28-2023 , 04:27   [DoD:S] Anti Bot (RCBOT2) TK
    Reply With Quote #1

    Hi,
    It's a plugin that prevents bots (RCBOT2) making Team Killing.

    Sorry for my english, but i'm french. ;-)

    Thx to Silvers for his tips. ;-)
    Quote:
    Originally Posted by Silvers View Post
    Use SDKHooks and OnTakeDamage with return Plugin_Handled ... IsClientInGame "FCVAR_SPONLY|FCVAR_REPLICATED" flags don't really belong on a version cvar.
    Attached Files
    File Type: sp Get Plugin or Get Source (dod_anti_bot_tk.sp - 209 views - 1.3 KB)
    __________________

    Last edited by micmacx; 10-12-2023 at 20:17. Reason: Update
    micmacx is offline
    RoboCop
    AlliedModders Donor
    Join Date: Dec 2010
    Location: Dundee, Scotland
    Old 05-27-2023 , 06:27   Re: DoD Anti Bot (RCBOT2) TK
    Reply With Quote #2

    Hello, I'm the manager of Bots-United and maintaining RCBot2, thanks for your help
    __________________
    vBulletin Webmaster Since 2001
    Bots-United Webmaster and Botmaster
    RoboCop is offline
    Send a message via Skype™ to RoboCop
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 05-27-2023 , 07:46   Re: DoD Anti Bot (RCBOT2) TK
    Reply With Quote #3

    It would be better to use SDKHooks and OnTakeDamage with return Plugin_Handled to block damage or Plugin_Changed if you want the damage to do 0.0 and maybe still feel the impact of bullets, instead of creating timers on player spawn to store their current health. You're also going to have overlapping timers for the same player each time they spawn. I doubt the current method would also prevent you from dying. SDKHooks method is the way to go.

    You're also mixing old and new syntax, using IsClientConnected which superseded by IsClientInGame and the "FCVAR_SPONLY|FCVAR_REPLICATED" flags don't really belong on a version cvar. You're also pointlessly converting the client to userid and back for use with GetHealth.
    __________________
    Silvers is offline
    micmacx
    Member
    Join Date: May 2021
    Old 06-15-2023 , 21:35   Re: DoD Anti Bot (RCBOT2) TK
    Reply With Quote #4

    Hi,
    Thx for these tips, I will try to improve this plugin when I have some time. ;-)

    Edit : It's ok, this is the new version. ;-)

    Last edited by micmacx; 06-15-2023 at 22:27.
    micmacx is offline
    knoxville101
    Junior Member
    Join Date: Feb 2023
    Old 09-17-2023 , 14:25   Re: DoD Anti Bot (RCBOT2) TK
    Reply With Quote #5

    So bots just can't tk humans but can tk other bots?.

    Last edited by knoxville101; 09-23-2023 at 14:51.
    knoxville101 is offline
    micmacx
    Member
    Join Date: May 2021
    Old 09-29-2023 , 13:31   Re: DoD Anti Bot (RCBOT2) TK
    Reply With Quote #6

    Hi,
    yes.
    micmacx is offline
    Reply


    Thread Tools
    Display Modes

    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 11:12.


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