aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Custom/mod/scripts/vscripts/gamemodes
diff options
context:
space:
mode:
Diffstat (limited to 'Northstar.Custom/mod/scripts/vscripts/gamemodes')
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut5
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_inf.gnut4
2 files changed, 7 insertions, 2 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut
index 754825582..b26016f37 100644
--- a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut
+++ b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut
@@ -154,7 +154,8 @@ void function FastballPlayer( entity player )
// respawn the player
player.SetOrigin( buddy.GetOrigin() )
player.RespawnPlayer( null )
- player.Hide()
+ var oldVisibility = player.kv.VisibilityFlags // better than .Hide(), hides weapons and such
+ player.kv.VisibilityFlags = 0
player.HolsterWeapon()
// hide hud, fade screen out from black
@@ -184,7 +185,7 @@ void function FastballPlayer( entity player )
// have to correct this manually here since due to no 3p animation our position isn't set right during this sequence
player.SetOrigin( buddy.GetAttachmentOrigin( buddy.LookupAttachment( "FASTBALL_R" ) ) )
- player.Show()
+ player.kv.VisibilityFlags = oldVisibility // restore visibility
player.SetVelocity( throwVel )
TryGameModeAnnouncement( player )
diff --git a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_inf.gnut b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_inf.gnut
index b2e76aaf8..cdf03edd3 100644
--- a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_inf.gnut
+++ b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_inf.gnut
@@ -99,6 +99,10 @@ void function RespawnInfected( entity player )
player.SetSkin( 1 )
player.SetCamo( 110 )
+ // if human, remove helmet bodygroup, human models have some weird bloody white thing underneath their helmet that works well for this, imo
+ if ( !player.IsMechanical() )
+ player.SetBodygroup( player.FindBodyGroup( "head" ), 1 )
+
// stats for infected
StimPlayer( player, 9999.9 ) // can't do endless since we don't get the visual effect in endless
player.kv.airAcceleration = 2500