Repository navigation
Dumbprojectile linear killselfdelay - #124
Merged
Merged
Conversation
LinearFlightPath: fly a straight line at constant speed instead of the Bezier curve (height/indent/dynamic-height settings are ignored). KillSelfDelay: after detonation, keep the projectile alive (hidden, frozen at the impact point) for the given time before destroy/kill, so attached particle trails catch up instead of clipping short. Works for the weapon exhaust and for model-condition ParticleSysBone systems via the new DRAWABLE_STATUS_KEEP_PARTICLES_WHEN_HIDDEN flag, which W3DModelDraw honors when starting/stopping its particle systems on hide. While lingering the projectile: - has physics reset and DISABLED_HELD so gravity doesn't move it - reports projectileIsLingering() (new ProjectileUpdateInterface method), which ScatterShotUpdate and PointDefenseLaserUpdate use to ignore it Both settings default off; existing data behaves as before. Xfer version 3 saves the detonated/linger state. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While lingering after detonation the projectile sets DISABLED_HELD to freeze physics, but GameLogic skips update modules on disabled objects unless they list that type in getDisabledTypesToProcess(). The behavior's update stopped running, so the projectile was never destroyed and kept emitting its trail particles at the impact point forever. Process updates while DISABLED_HELD. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main turrets are separate objects with their own weapons, so weapon rate of fire can't stagger them. With MainTurretsFireInSequence = Yes they take turns, one shot each: only the turn holder may fire, the others are held every frame, and once the holder fires the turn passes on. MainTurretSequenceDelay sets the minimum time between consecutive shots (0 = next frame). Adds Weapon::holdFiringUntil(), which delays the next shot and also leaves the cached READY_TO_FIRE status (like shared reload time does). Xfer version 3 saves the sequence state. Default off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.