From 77800abf48c9b5892c05578764a374d11b674bd8 Mon Sep 17 00:00:00 2001 From: hummusbird Date: Tue, 4 Jan 2022 18:07:28 +0000 Subject: Fix airaccel reset on titan rodeo see: https://www.youtube.com/watch?v=eQajX9dnCes --- Northstar.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Northstar.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut') diff --git a/Northstar.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut b/Northstar.Custom/mod/scripts/vscripts/rodeo/_rodeo_titan.gnut index 499ca0b7d..788b6dbed 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 args ) return true } -#endif \ No newline at end of file +#endif -- cgit v1.2.3