official-antistasi-community / A3-Antistasi

Antistasi Community Version - work in progress - Discord https://discord.com/invite/TYDwCRKnKX
https://antistasi.de
Other
227 stars 154 forks source link

[Feature]: Bring back simulation disabling for parked civilian vehicles #2969

Open jaj22 opened 1 year ago

jaj22 commented 1 year ago

Old Antistasi used to do this for vanilla civilian cars for performance reasons. It broke with 2.06 because you could no longer see actions on simulation-disabled vehicles. Workaround would be to put a "steal vehicle" action on the player that shows when you're looking at a civvie car.

Collision behaviour is probably acceptable: Simulation-disabled cars are basically rocks. If not, epeContactStart does fire on the disabled vehicle, so we could just hook that as an alternative wake-up method.

MeltedPixel commented 1 year ago

I like this idea. Would be cool to add some sort of progress bar to it and not make it instant. Like some degree of randomness on how easy it is to steal a car haha.

killerswin2 commented 1 year ago

Has anyone tried a simple object to see if we can add actions to them?

rautamiekka commented 1 year ago

Has anyone tried a simple object to see if we can add actions to them?

Vanilla addAction doc says simple objects (and by extension the super-simple, I tested) ain't allowed (no such restriction on ACE3 for either type, FWIW), and I just tested that it doesn't work, returning -1.