From ba41749cc6a6693f11a7f1c7535ff758a461a424 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Mon, 12 Jul 2021 14:51:43 +0100 Subject: add hardpoint, infection changes, fra changes --- Northstar.Custom/scripts/vscripts/gamemodes/_gamemode_inf.gnut | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Northstar.Custom/scripts/vscripts/gamemodes') diff --git a/Northstar.Custom/scripts/vscripts/gamemodes/_gamemode_inf.gnut b/Northstar.Custom/scripts/vscripts/gamemodes/_gamemode_inf.gnut index b7af9b85..cc9df116 100644 --- a/Northstar.Custom/scripts/vscripts/gamemodes/_gamemode_inf.gnut +++ b/Northstar.Custom/scripts/vscripts/gamemodes/_gamemode_inf.gnut @@ -47,7 +47,7 @@ void function SelectFirstInfectedDelayed() void function InfectionOnPlayerKilled( entity victim, entity attacker, var damageInfo ) { - if ( !victim.IsPlayer() ) + if ( !victim.IsPlayer() || GetGameState() != eGameState.Playing ) return if ( victim.GetTeam() == INFECTION_TEAM_SURVIVOR ) @@ -100,8 +100,11 @@ void function RespawnInfected( entity player ) // stats for infected StimPlayer( player, 9999.9 ) // can't do endless since we don't get the visual effect in endless - player.SetMaxHealth( 50 ) + player.kv.airAcceleration = 2500 + // scale health with num of infected, with 50 as base health + player.SetMaxHealth( 50 + ( GetPlayerArrayOfTeam( INFECTION_TEAM_SURVIVOR ).len() * 25 ) ) + // set loadout foreach ( entity weapon in player.GetMainWeapons() ) player.TakeWeaponNow( weapon.GetWeaponClassName() ) -- cgit v1.2.3