HomeWildfire Games

add more flexibility to eject units when garrisonHolder is destroyed, fixes…

Description

add more flexibility to eject units when garrisonHolder is destroyed, fixes #2242

Details

Committed
mimoJan 8 2014, 7:27 PM
Parents
rP14549: If at first you don't succeed…
Branches
Unknown
Tags
Unknown

Event Timeline

temple added a subscriber: temple.Sep 27 2017, 11:31 PM

It seems absurd that units garrisoned in a ship die when the ship dies, even though they could've ungarrisoned to shore if you sent that command right before the ship died. Currently they only successfully eject if you're in the shallows, which doesn't exist on many water maps. So I don't think we should use PickSpawnPointBothPass().

If units are able to garrison then they should be able to ungarrison too. So I don't think EjectClassesOnDestroy should be necessary.

I wouldn't be opposed to using EjectHealth = 0.1 for ships like most other garrison holders (fortress is 0.075, weird).

Freagarach added inline comments.
/ps/trunk/binaries/data/mods/public/simulation/components/GarrisonHolder.js
616

Interesting how this was switched to an unforced ungarrison, which seems incorrect for dying.