diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-07-12 14:51:43 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-07-12 14:51:43 +0100 |
commit | ba41749cc6a6693f11a7f1c7535ff758a461a424 (patch) | |
tree | 945786de1feff62180ea7c451c09482a3af823ac /Northstar.Custom | |
parent | 07b7eafd5c1845c70510b695446c23973fed1d4d (diff) | |
download | NorthstarMods-ba41749cc6a6693f11a7f1c7535ff758a461a424.tar.gz NorthstarMods-ba41749cc6a6693f11a7f1c7535ff758a461a424.zip |
add hardpoint, infection changes, fra changes
Diffstat (limited to 'Northstar.Custom')
-rw-r--r-- | Northstar.Custom/mod.json | 2 | ||||
-rw-r--r-- | Northstar.Custom/scripts/vscripts/_northstar_devcommands.gnut | 8 | ||||
-rw-r--r-- | Northstar.Custom/scripts/vscripts/gamemodes/_gamemode_inf.gnut | 7 |
3 files changed, 7 insertions, 10 deletions
diff --git a/Northstar.Custom/mod.json b/Northstar.Custom/mod.json index 8d7c1752..75a14291 100644 --- a/Northstar.Custom/mod.json +++ b/Northstar.Custom/mod.json @@ -1,4 +1,4 @@ -disabled{ +{ "ApiId" : "Northstar.Custom", "Name" : "Northstar.Custom", "Description" : "Additional content for coop and custom multiplayer servers", diff --git a/Northstar.Custom/scripts/vscripts/_northstar_devcommands.gnut b/Northstar.Custom/scripts/vscripts/_northstar_devcommands.gnut index ebac1e3c..960e619e 100644 --- a/Northstar.Custom/scripts/vscripts/_northstar_devcommands.gnut +++ b/Northstar.Custom/scripts/vscripts/_northstar_devcommands.gnut @@ -13,14 +13,8 @@ bool function ClientCommandCallbackToggleNoclip( entity player, array<string> ar if ( GetConVarInt( "sv_cheats" ) != 1 ) return true - //if ( player.IsNoclipping() ) - // DisableNoclipForEntityIndex( player.GetIndexForEntity() ) - //else - // EnableNoclipForEntityIndex( player.GetIndexForEntity() ) - - // new way that doesn't require native stuff yay if ( player.IsNoclipping() ) - player.SetPhysics( MOVETYPE_WALK ) // just hoping this is the right movetype, not much of a way to check + player.SetPhysics( MOVETYPE_WALK ) else player.SetPhysics( MOVETYPE_NOCLIP ) 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() ) |