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

[CS:S/CS:GO] Bot Attack Control


Post New Thread Reply   
 
Thread Tools Display Modes
SHUFEN
Senior Member
Join Date: Jun 2014
Location: Japan, Tokyo
Old 06-29-2021 , 02:25   Re: [CS:S/CS:GO] Bot Attack Control
Reply With Quote #71

Quote:
Originally Posted by Desktop View Post
Could you possibly add windows compilation?
Signature is not tested but it should work the same on Windows.
Attached Files
File Type: dll botattackcontrol.ext.2.csgo.dll (101.0 KB, 154 views)
File Type: txt botattackcontrol.games.txt (2.1 KB, 198 views)
SHUFEN is offline
Send a message via Skype™ to SHUFEN
nikooo777
AlliedModders Donor
Join Date: Apr 2010
Location: Lugano, Switzerland
Old 07-04-2021 , 14:30   Re: [CS:S/CS:GO] Bot Attack Control
Reply With Quote #72

Alright so I ended up compiling my own version for CS:S again, I wrote a simple plugin against it and for whatever reason it's not working as intended. Am I doing something wrong or is the extension bugged?


Here is the dumbed down code (see attached for full source)
PHP Code:
public Action OnShouldBotAttackPlayer(int botint playerbool &result)
{
    if (!
IsPlayerAlive(player) || !IsPlayerAlive(bot))
    {
        return 
Plugin_Continue;
    }
    
bool isBotZombie ZR_IsClientZombie(bot);
    
bool isTargetZombie ZR_IsClientZombie(player);
    if (
isBotZombie != isTargetZombie)
    {
        if (!
result)
        {
            
result true;
        }
        return 
Plugin_Changed;
    }
    
result false;
    return 
Plugin_Changed;

And this is what I end up seeing in console:
Code:
Reaper (2) wants to attack Cabbie (2)
Cabbie (2) wants to attack Reaper (2)
With both bots being Zombies.

It makes no sense as the plugin correctly detects that they're both on the same team and sets the result to false, yet they still end up stabbing each other non stop. What am I doing wrong?
Attached Files
File Type: sp Get Plugin or Get Source (zm_bots.sp - 150 views - 1.1 KB)
__________________

Last edited by nikooo777; 07-04-2021 at 14:32.
nikooo777 is offline
ziplan
New Member
Join Date: Mar 2018
Old 12-05-2021 , 22:52   Re: [CS:S/CS:GO] Bot Attack Control
Reply With Quote #73

please give me a working version for css ob
ziplan is offline
romeo7
Senior Member
Join Date: Mar 2017
Old 11-13-2022 , 02:40   Re: [CS:S/CS:GO] Bot Attack Control
Reply With Quote #74

If anyone has new signature for windows?
__________________
___[CSGO]_[ZP]____
Zombie Plague Classic
||37.26.2.29:27021||
romeo7 is offline
cssbr1
Junior Member
Join Date: Jul 2023
Old 07-20-2023 , 02:27   Re: [CS:S/CS:GO] Bot Attack Control
Reply With Quote #75

Where tf do you put these files? No instructions nothing, c'monnn...
cssbr1 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 20:45.


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