aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Custom/mod/scripts/vscripts
diff options
context:
space:
mode:
authorx3Karma <juliuslimck@gmail.com>2022-01-19 22:12:08 +0800
committerBarichello <artur@barichello.me>2022-01-19 18:31:02 -0300
commit6ca14a802c135fe4e477b4c87d4cda5b9ebbc005 (patch)
tree5f0379cb31ecb890df1cfa20fc5281f07ea10cb8 /Northstar.Custom/mod/scripts/vscripts
parentc35034f277635674c7eecc73f735404faa289283 (diff)
downloadNorthstarMods-6ca14a802c135fe4e477b4c87d4cda5b9ebbc005.tar.gz
NorthstarMods-6ca14a802c135fe4e477b4c87d4cda5b9ebbc005.zip
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.
Diffstat (limited to 'Northstar.Custom/mod/scripts/vscripts')
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_inf.gnut5
1 files changed, 4 insertions, 1 deletions
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 )