[Vanilla Enhancement] Restore turret recoil effect
- Now you can use
TurretRecoilto control units’ turret/barrel recoil effect when firing.TurretTravelandBarrelTravelcontrol the maximum recoil distance.TurretRecoil.Suppresscan prevent the weapon from producing this effect when firing.
In rulesmd.ini:
[SOMEVEHICLE] ; VehicleType
TurretRecoil=no ; boolean
TurretTravel=2 ; integer, pixels
TurretCompressFrames=1 ; integer, game frames
TurretHoldFrames=1 ; integer, game frames
TurretRecoverFrames=1 ; integer, game frames
BarrelTravel=2 ; integer, pixels
BarrelCompressFrames=1 ; integer, game frames
BarrelHoldFrames=1 ; integer, game frames
BarrelRecoverFrames=1 ; integer, game frames
[SOMEWEAPON] ; WeaponType
TurretRecoil.Suppress=no ; boolean
And:
- Fix an issue that
FireAnglewas not taken into account when drawing barrel inTurretShadow.
Nightly build for this pull request:
- compiled-dll-372f8f5251acdd22d89216edc960b5d20cf4b5e4.zip These artifacts will expire in 90 days and will not be available for download after that time.
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.
I applied the new "Restored feature" type of contribution to this, so @Phobos-developers/t1-maintainers can review it, assuming the code replicates the original one from Tiberian Sun (@CrimRecya is that right?).
I applied the new "Restored feature" type of contribution to this, so @Phobos-developers/t1-maintainers can review it, assuming the code replicates the original one from Tiberian Sun (@CrimRecya is that right?).
Not copying, just drawing it according to my own understanding. Vanilla has already dealt with the firing and updating parts, but there are issues with reading and drawing. I fixed the reading issue, and drew its effect according to my understanding, but I actually don't know if the length unit used is the vanilla length unit.
Hmm, maybe @ZivDero could review it and compare with TS which has those logics.
Hmm, maybe @ZivDero could review it and compare with TS which has those logics.
UnitClass_DrawAsVXL_RewriteTurretDrawing, which contains the bulk of the logic, doesn't appear "restored" to me, rather like just a bunch of new logic.
Can this be merged?