official-antistasi-community / A3-Antistasi

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

Enemy Aircraft are too aggressively despawned #3311

Open ante185 opened 3 months ago

ante185 commented 3 months ago

the script handling CAS and airstrikes, and likely other enemy aircraft. Doesn't have much of any gameplay impact, but it is very disappointing when you miss out on revenge because the plane despawns after taking slight damage.

jaj22 commented 3 months ago

Not sure which case you're referring to. They do go into vehDespawner which deletes them if they're >1km from rebel spawners, but that only fires after 60 seconds so it seems unlikely to be what you're talking about. The secondary despawner simply deletes them when they reach their return waypoint over the airport. Not sure what you're expecting them to do there.

Tiny-DM commented 3 months ago

Not sure which case you're referring to. They do go into vehDespawner which deletes them if they're >1km from rebel spawners, but that only fires after 60 seconds so it seems unlikely to be what you're talking about. The secondary despawner simply deletes them when they reach their return waypoint over the airport. Not sure what you're expecting them to do there.

Airstrikes normally work as intended, especially with the preference to spawn farther away now. CAS planes, after they do their third run, will often disappear about 10 seconds after the aircraft reaches the lowest point of the dive. I think possibly the vehDespawner is added too early, so the plane conducts the strike first and disappears at the 60 second marker.

jaj22 commented 3 months ago

Ah right, vehDespawner isn't relevant here and it's groupDespawner that's doing the cleanup. That one's on a 10-second timer for whatever reason. CAS adds the despawners immediately after support termination, while the airstrike routine only adds the despawners if the aircraft fails to reach the return waypoint within a timeout.