aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-10-17 22:29:19 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-10-17 22:29:19 +0100
commit0f71d94b6c968ddb34ec611d898cceea02638f99 (patch)
tree03e7c78025495430d1f82dcb20abeef63deb8144 /Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut
parent6b07fb30fb7380b1d61af6a620ec72c9066753e2 (diff)
downloadNorthstarMods-0f71d94b6c968ddb34ec611d898cceea02638f99.tar.gz
NorthstarMods-0f71d94b6c968ddb34ec611d898cceea02638f99.zip
finish burncard impl, add forced 1p fp sequences and classic rodeo
Diffstat (limited to 'Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut')
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball_intro.gnut5
1 files changed, 3 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 )