View Single Post
Author Message
finishlast
Senior Member
Join Date: Nov 2018
Location: In Reno with the vitamin D.
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