Skip to content

Commit

Permalink
Fixed the tanks' retreating speed.
Browse files Browse the repository at this point in the history
- Fixed the tank retreating slower than it moves forward for some reason. Now it reverses about as fast as it moves forward, unless User_T72Mode is enabled.
  • Loading branch information
inkoalawetrust committed Nov 2, 2024
1 parent a2d7ac6 commit 64aa409
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ZScript/Vehicles/MBT/MBT.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,10 @@ Class MVP_MBT : MVP_BaseVehicle
A_QuakeEx (1,1,1,2,0,512,flags:QF_GROUNDONLY,rollintensity:0.2);
A_StopSound (CHAN_IDLING);
A_StartSound (ActiveSound,CHAN_MOVING,CHANF_LOOPING,attenuation:0.5);
Double RealSpeed = Speed;
If (!User_T72Mode) Speed *= 1.5;
KAI_VehicleRetreat (Target,96,512,32,VRF_ZIGZAG,0.25,TankAngleLimit);
Speed = RealSpeed;
If (User_CrushMode != CRUSH_NONE) KAI_CrushCorpses();
Int Temp = RetreatLoops;
RetreatLoops = 0;
Expand Down

0 comments on commit 64aa409

Please sign in to comment.