From 6ca14a802c135fe4e477b4c87d4cda5b9ebbc005 Mon Sep 17 00:00:00 2001 From: x3Karma Date: Wed, 19 Jan 2022 22:12:08 +0800 Subject: Update _gamemode_inf.gnut Adds an extra check if the current air acceleration in the game is higher than the infected, and give infected the higher air acceleration rather than the default 2500. --- Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_inf.gnut | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Northstar.Custom/mod/scripts') diff --git a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_inf.gnut b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_inf.gnut index 28683904..35e034cc 100644 --- a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_inf.gnut +++ b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_inf.gnut @@ -136,7 +136,10 @@ void function RespawnInfected( entity player ) void function GiveAirAccel(entity player) { WaitFrame() - player.kv.airAcceleration = 2500 // prevents sh_custom_air_accel from not giving infected air acceleration. + if (GetCurrentPlaylistVarInt( "custom_air_accel_pilot", int( player.GetPlayerSettingsField( "airAcceleration" ) ) ) < 2500) + player.kv.airAcceleration = 2500 // prevents sh_custom_air_accel from not giving infected air acceleration. + else + player.kv.airAcceleration = GetCurrentPlaylistVarInt( "custom_air_accel_pilot", int( player.GetPlayerSettingsField( "airAcceleration" ) ) ) } void function PlayInfectedSounds( entity player ) -- cgit v1.2.3