fun-bots icon indicating copy to clipboard operation
fun-bots copied to clipboard

Bots check for vehicle repairs

Open MatiasPastori opened this issue 10 months ago • 2 comments

Requested feature

It would be great to make the bots check their current vehicles health to repair. So for example: (only for land vehicles)

Thought it could be a cool idea idk

Use case

  1. Check every 10s if the bot is in a vehicle, and its a land vehicle and its health its 50% or below, and he is the driver AND he has a passenger THEN stop right in that place and wait a defined amount of seconds or if possible until the vehicles health has reached 100%.
  2. Almost same checks as before BUT if the bot is a passenger AND he is an Engineer he should get out and start repairing the vehicle to a 100%, once done, jump in the vehicle again.

Or / Also:

  1. Engineers check for near vehicles to repair (similar to how they lookup for revives but not quite the same)

I have checked the following...

MatiasPastori avatar Mar 12 '25 23:03 MatiasPastori

Linked the branch where I started to put some thoughts into this.

MatiasPastori avatar Mar 12 '25 23:03 MatiasPastori

I remember I had the same idea. I actually did this, but I don't think the code still works. The most annoying thing was when bots exit the vehicles, they spawn on top of them and then they immediately start to repair them, still standing on top of them. If you're planning to do this, you need to solve this problem. Also there's an error with determining the maximum health of the vehicle. The bot saves the current vehicle health as the maximum value on entry, but there's no guarantie that it's actually true.

I also checked if any of the passengers has a repair tool and they existed the vehicle on 50% health and repaired them, while the driver continued fighting. But most of the time they just drove off, because they don't wait for the repair to complete.

tagener-noisu avatar Apr 05 '25 05:04 tagener-noisu