Closed 4512369781 closed 1 year ago
Actually i spent some time trying to find the best way to do it. I also tried with different m_fFlags values. The movetype approach seemed the best one to me because the bots don't teleport and you don't have to bother changing sb_unstick. Also because sb_unstick affects all the bots but the new wait order can be given to a single bot. You would have the other bots not teleporting if they get stuck. Btw they still shoot and shove, only their locomotion is stopped.
Actually i spent some time trying to find the best way to do it. I also tried with different m_fFlags values. The movetype approach seemed the best one to me because the bots don't teleport and you don't have to bother changing sb_unstick. Also because sb_unstick affects all the bots but the new wait order can be given to a single bot. You would have the other bots not teleporting if they get stuck. Btw they still shoot and shove, only their locomotion is stopped.
Sorry, I misremembered, the bots does shoot and shove. but there are two problems:
oh, there is another problem, the following code should be moved to the top, otherwise if you execute "return Left4Bots.Settings.bot_think_interval;" in advance, it will not modify "FuncI ", which could result in multiple bots having the same "FuncI".
if (++FuncI > 5)
FuncI = 1;
Actually i spent some time trying to find the best way to do it. I also tried with different m_fFlags values. The movetype approach seemed the best one to me because the bots don't teleport and you don't have to bother changing sb_unstick. Also because sb_unstick affects all the bots but the new wait order can be given to a single bot. You would have the other bots not teleporting if they get stuck. Btw they still shoot and shove, only their locomotion is stopped.
Sorry, I misremembered, the bots does shoot and shove. but there are two problems:
1. bot float when they taking the elevator. 2. bot will not being dragged by a tongue.
oh, there is another problem, the following code should be moved to the top, otherwise if you execute "return Left4Bots.Settings.bot_think_interval;" in advance, it will not modify "FuncI ", which could result in multiple bots having the same "FuncI".
if (++FuncI > 5) FuncI = 1;
Lol you are right These are definitely bugs. I will see what i can do to fix them. Thanks.
I think i fixed it. Now the current order is automatically paused as soon as the bot is pinned by a special infected and the wait order automatically terminates if the wait location is on a nav area with an elevator.
Set "movetype" makes bots do nothing,
but set "m_fFlags" can solve the problem,
and also need this to prevent bot Teleport