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

Fixed the wrong bot states checking for vehicle actions

Open MatiasPastori opened this issue 4 months ago • 1 comments

Fixed the wrong bot states checking for vehicle actions when clearly they shouldn't have a vehicle related state since their player doesn't have any associated attachedControllable nor ControlledControllable entity.

Added proper state checking for the Vehicle States to transition as they should. Always validating first if the bot has died and then if it still has a proper controlledControllable or an attachedControllable.

Also enhanced a bit the call for ShouldExit for passengers, removed the AbortAttack call since that will be already properly handled within the _DoExitVehicle execution. Unless there was a need for triggering it before it gets executed. Open to discuss.

Added the FirstPassengerSeat property for missing vehicles such as the LittleBird helis, transport helis and No armor light vehicles such as the buggys

Please Hard test

I'm currently testing in demanding maps with many vehicles, buggys, helis, boats, LAV for transport, amphibious, etc. So far all good.

MatiasPastori avatar Sep 04 '25 22:09 MatiasPastori

@Joe91 you can actually test this if you like, I have a server up and running, look for it in the server browser as "ARG-BF3", no idea how much ping you'll have, but should be playable, I'm under a shitty ISP with CGNAT, so I'm using a UDP tunnel to be able to expose the server for external users,

MatiasPastori avatar Sep 12 '25 04:09 MatiasPastori