Raised This Month: $32 Target: $400
 8% 

Solved [CS:GO] Force +attack and -attack on bots


Post New Thread Reply   
 
Thread Tools Display Modes
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 12-25-2019 , 02:38   Re: [CS:GO] Force +attack and -attack on bots
Reply With Quote #11

Quote:
Originally Posted by manicogmaing View Post
Sorry for reviving such an old thread but I'd like to know how can I make it so that the timer is random for each bot, in other words do I stop all the bots from throwing the nades at the same time?
change

PHP Code:
CreateTimer(3.0Timer_ShouldAttackGetClientSerial(client)); 
to

PHP Code:
CreateTimer(GetRandomFloat(0.03.0), Timer_ShouldAttackGetClientSerial(client)); 
see if that works
__________________
8guawong is offline
manicogaming
AlliedModders Donor
Join Date: Aug 2014
Old 12-25-2019 , 10:38   Re: [CS:GO] Force +attack and -attack on bots
Reply With Quote #12

Quote:
Originally Posted by 8guawong View Post
change

PHP Code:
CreateTimer(3.0Timer_ShouldAttackGetClientSerial(client)); 
to

PHP Code:
CreateTimer(GetRandomFloat(0.03.0), Timer_ShouldAttackGetClientSerial(client)); 
see if that works
Nope, I had already tried that and they still all throw their nades at the same time.
manicogaming is offline
kratoss1812
Senior Member
Join Date: May 2018
Location: Romānia
Old 12-25-2019 , 14:51   Re: [CS:GO] Force +attack and -attack on bots
Reply With Quote #13

Quote:
Originally Posted by 8guawong View Post
PHP Code:
CreateTimer(GetRandomFloat(0.03.0), Timer_ShouldAttackGetClientSerial(client)); 
CreateTimer(GetRandomFloat(3.0, 10.0), Timer_ShouldAttack, GetClientSerial(client)); *
__________________
kratoss1812 is offline
manicogaming
AlliedModders Donor
Join Date: Aug 2014
Old 12-25-2019 , 15:22   Re: [CS:GO] Force +attack and -attack on bots
Reply With Quote #14

Quote:
Originally Posted by kratoss1812 View Post
CreateTimer(GetRandomFloat(3.0, 10.0), Timer_ShouldAttack, GetClientSerial(client)); *
It has the same result, they're all throwing it at the same time.

EDIT: I want a random time per bot, which is not working.

EDIT 2: It seems to be somewhat working, but only on the first time the bots have nades per map.

Last edited by manicogaming; 12-25-2019 at 15:35.
manicogaming is offline
manicogaming
AlliedModders Donor
Join Date: Aug 2014
Old 01-19-2020 , 16:02   Re: [CS:GO] Force +attack and -attack on bots
Reply With Quote #15

Alright I found the solution, all I had to do was set a random time per bot on round start and now they throw their nades at different times.
manicogaming 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 05:20.


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