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

[REQ] In Versus Mode / Make bots run slightly faster than normal when tank is alive


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin
Old 04-25-2021 , 04:05   [REQ] In Versus Mode / Make bots run slightly faster than normal when tank is alive
Reply With Quote #1

One thing that is pretty annoying in l4d versus is focusing on bots as tank because they are just too easy to get.

I thought there would be a simple fix to it.

It would follow this rule:

1. Tank spawns
2. check if HUMAN tank exist and is alive -> set player speed for living bots a bit higher than normal
3. if a joining player takes one on those bots, set player speed back to normal (if the join doesn't automatically does that
4. if a player leaves check for alive human tanks then set this new survivor bot again to run faster (but only when not dead ofc)
5. if all tanks are dead or living tanks are bots, then set speed for living survivor bots back to normal

I think changing speed can be done like in the custom commands plugin:

speed = GetEntDataFloat(target, g_flLagMovement) * 0.5;
ChangeSpeed(target, param1, speed);

What do you think?
__________________

Last edited by finishlast; 04-25-2021 at 04:08.
finishlast is offline
 



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:13.


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