Phobos-developers / Phobos

Ares-compatible C&C Red Alert 2: Yuri's Revenge engine extension
GNU Lesser General Public License v3.0
254 stars 83 forks source link

[Minor] allow scatter as an option for animtype CreateUnit.Mission #1280

Closed chaserli closed 1 week ago

github-actions[bot] commented 2 weeks ago

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

Starkku commented 2 weeks ago

The whole business with scatter is not really needed here, you can remove the IsInAir() check from this row and add it to these rows (change to else if) and any jumpjet spawned from anim that does not have CreateUnit.AlwaysSpawnOnGround set to true (a question can be raised if there should be an additional flag here instead but I imagine this will cover vast majority of use cases - if people want to force ground spawn they can set this flag) will ascend automatically upon spawning without spinning around and retaining their initial facing as well as whatever mission they're set to have.

image