I've added glide to all GTVA ships, but for balance purposes I've been using +Max Glide Speed: to limit its velocity. However, this only seems to work when I activate glide while thrusting. Afterburning for a while, releasing the thrust, and pressing the glide button will make the ship keep whatever speed it had at the time.
This is the code for one of the ships, but all of them have this problem.
; ----------------------------------------------------------------------------------
; Ulysses
;
$Name: GTF Ulysses
$Short name: TFight
$Species: Terran
+Type: XSTR("Space Superiority", -1)
+Maneuverability: XSTR("Excellent (3.0/2.6/5.0)", -1)
+Armor: XSTR("Light (180/380)", -1)
+Manufacturer: XSTR("Triton / Mekhu", 2942)
+Description: XSTR( "Capable all-around fighter. Offers superior maneuverability and a high top speed. Smaller missile
payload than other GTVA fighters.", -1)
$end_multi_text
+Tech Description:
XSTR("The aging Ulysses is one of the oldest fighters in the GTVA's arsenal. It was developed in the early days of the Alliance by a team of
Terran and Vasudan scientists, and its superior dogfighting abilities earned it a spot in the Alliance's fighter corps for decades.
Production of the Ulysses has been discontinued, but the sheer number of available spaceframes mean that every major fleet possesses a large
number of them. It remains popular with civilians and pirates.", -1)
$end_multi_text
+Length: 16 m
+Gun Mounts: 4 (2/2) (100/100)
+Missile Banks: 1 (40)
$POF file: fighter01.pof
$Detail distance: (0, 80, 300)
; $ND: 42 42 244
$Show damage: YES
$Density: 1
$Damp: 0.1
$Rotdamp: 0.35
$Max Velocity: 0.0, 0.0, 85.0 ;; in x/y/z -- z only specified forward. use special tokens for backward movement
$Rotation time: 3.0, 2.6, 5.0
$Rear Velocity: 0.0
$Forward accel: 2.0
$Forward decel: 1.5
$Slide accel: 0.0
$Slide decel: 0.0
$Glide: YES
+Dynamic Glide Cap: NO
+Max Glide Speed: 70
+Glide Accel Mult: 0
$Expl inner rad: 25.0
$Expl outer rad: 55.0
$Expl damage: 15.0
$Expl blast: 1000.0
$Expl Propagates: NO ;; If set to Yes, then when the ship dies, the explosion
propagates through it.
$Shockwave Speed: 0.0 ;; speed shockwave expands at, 0 means no shockwave
$Allowed PBanks: ( "Subach HL-7" "Akheton SDG" "Morning Star" "Prometheus S" "Prometheus R" "Avenger E" "Lamprey" "Circe" "Maxim"
"Targeting Laser")
$Allowed Dogfight PBanks: ( "Subach HL-D" "Prometheus D" )
$Default PBanks: ( "Prometheus S" "Subach HL-7" )
$PBank Capacity: ( 100, 100 )
$Allowed SBanks: ( "Rockeye" "Tempest" "Hornet" "Tornado" "Hornet#Weak" "Harpoon" "Harpoon#Weak" "EMP Adv." "TAG-A" )
$Allowed Dogfight SBanks: ( "Tempest D" "Hornet D" "Harpoon D" )
$Default SBanks: ( "Harpoon" )
$SBank Capacity: ( 40 )
$Shields: 380
$Shield Color: 100 100 255
$Power Output: 2.0
$Max Oclk Speed: 94.0
$Max Weapon Eng: 80.0
$Hitpoints: 180
$Flags: ( "player_ship" "default_player_ship" "fighter" "in tech database")
$AI Class: Eos-Captain
$Afterburner: YES
+Aburn Max Vel: 0.0, 0.0, 150.0
+Aburn For accel: 0.7
+Aburn Fuel: 300.0
+Aburn Burn Rate: 50.0
+Aburn Rec Rate: 25.0
$Countermeasures: 25
$Scan time: 2000
$EngineSnd: 128 ;; Engine sound of ship
$Closeup_pos: 0.0, 0.0, -22
$Closeup_zoom: 0.5
$Shield_icon: shield-f01
$Ship_icon: iconfighter01
$Ship_anim: ssfighter01
$Ship_overhead: loadfighter01
$Score: 8
$Trail:
+Offset: -7.75 -2.8 0.75
+Start Width: 0.25
+End Width: 0.05
+Start Alpha: 1.0
+End Alpha: 0.0
+Max Life: 1.0
+Spew Time: 60
+Bitmap: Contrail01
$Trail:
+Offset: 7.75 -2.8 0.75
+Start Width: 0.25
+End Width: 0.05
+Start Alpha: 1.0
+End Alpha: 0.0
+Max Life: 1.0
+Spew Time: 60
+Bitmap: Contrail01
$Subsystem: communication, 10, 0
$Subsystem: navigation, 10, 0
$Subsystem: weapons, 20, 0
$Subsystem: sensors, 10, 0
$Subsystem: engines, 35, 0
I'm also getting debug build crashes for some reason on the test mission I set up. However, this bug has existed since I added glide and occurs in all the other missions. I'm thinking it might be an engine problem, unless I tabled something wrong.
Debug log attached anyway.
Using 3.7.0 Final.
[attachment deleted by ninja]