Skip to content

Vehicle Damage - Add static weapon crew ejection on destruction#11420

Open
Dystopian wants to merge 1 commit into
acemod:masterfrom
Dystopian:eject_crew_from_dead_static
Open

Vehicle Damage - Add static weapon crew ejection on destruction#11420
Dystopian wants to merge 1 commit into
acemod:masterfrom
Dystopian:eject_crew_from_dead_static

Conversation

@Dystopian

Copy link
Copy Markdown
Contributor

When merged this pull request will:

  • add static weapon crew ejection on destruction;
  • improve fnc_handleDamageEjectIfDestroyed by running it at the last alive moment;
  • improve boat crew ejection when a boat is destroyed after a collision.

The HandleDamage EH now runs not only after the vehicle is destroyed, but also at the last moment while it is still alive and overall damage is critical. In most cases this happens in the same frame, but the "alive" moment occurs slightly earlier and is more reliable.

Previously, when a boat was destroyed after a collision, its crew was simply ejected. In some cases they were ejected directly into the water, so the boat's velocity was not transferred to them. Now the crew is ejected slightly above the water, allowing them to retain the boat's momentum and potentially be thrown into the rocks or the pier that destroyed the boat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant