aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Custom/mod/scripts/vscripts
diff options
context:
space:
mode:
authorhummusbird <hummusbirb@gmail.com>2022-01-04 18:07:28 +0000
committerBarichello <artur@barichello.me>2022-01-04 18:28:20 -0300
commit77800abf48c9b5892c05578764a374d11b674bd8 (patch)
tree2413584a919f741ce73f58c0f453b4b6f0c6a65f /Northstar.Custom/mod/scripts/vscripts
parent9a95fb944d0d2738b290cfb9edc5c45442fddf85 (diff)
downloadNorthstarMods-77800abf48c9b5892c05578764a374d11b674bd8.tar.gz
NorthstarMods-77800abf48c9b5892c05578764a374d11b674bd8.zip
Fix airaccel reset on titan rodeo
see: https://www.youtube.com/watch?v=eQajX9dnCes
Diffstat (limited to 'Northstar.Custom/mod/scripts/vscripts')
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut6
1 files changed, 3 insertions, 3 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut b/Northstar.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut
index 499ca0b7..788b6dbe 100644
--- a/Northstar.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut
+++ b/Northstar.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut
@@ -2288,7 +2288,7 @@ void function PostRodeoAirControl( entity player )
{
float elapsedTime = Time() - startTime
player.kv.airSpeed = player.GetPlayerSettingsField( "airSpeed" ) * POST_RODEO_AIR_CONTROL_SCALE * (1 - (elapsedTime / POST_RODEO_AIR_CONTROL_DURATION))
- player.kv.airAcceleration = player.GetPlayerSettingsField( "airAcceleration" ) * POST_RODEO_AIR_CONTROL_SCALE * (1 - (elapsedTime / POST_RODEO_AIR_CONTROL_DURATION))
+ player.kv.airAcceleration = GetCurrentPlaylistVarInt( "custom_air_accel_pilot", int( player.GetPlayerSettingsField( "airAcceleration" ) ) ) * POST_RODEO_AIR_CONTROL_SCALE * (1 - (elapsedTime / POST_RODEO_AIR_CONTROL_DURATION))
//printt( "scale", POST_RODEO_AIR_CONTROL_SCALE * (1 - (elapsedTime / POST_RODEO_AIR_CONTROL_DURATION)) )
WaitFrame()
@@ -2345,7 +2345,7 @@ void function RestorePlayerAirControl( entity player ) //This function should re
{
Assert( player.IsPlayer() )
player.kv.airSpeed = player.GetPlayerSettingsField( "airSpeed" )
- player.kv.airAcceleration = player.GetPlayerSettingsField( "airAcceleration" )
+ player.kv.airAcceleration = GetCurrentPlaylistVarInt( "custom_air_accel_pilot", int( player.GetPlayerSettingsField( "airAcceleration" ) ) )
}
bool function ShouldThrowGrenadeInHatch( entity rodeoPilot )
@@ -2490,4 +2490,4 @@ bool function ClientCommand_TryNukeGrenade( entity player, array<string> args )
return true
}
-#endif \ No newline at end of file
+#endif