aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Custom/mod/scripts/vscripts/titan/sh_first_person_embark.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/titan/sh_first_person_embark.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/titan/sh_first_person_embark.gnut')
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/titan/sh_first_person_embark.gnut47
1 files changed, 0 insertions, 47 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/titan/sh_first_person_embark.gnut b/Northstar.Custom/mod/scripts/vscripts/titan/sh_first_person_embark.gnut
deleted file mode 100644
index 0c47c0140..000000000
--- a/Northstar.Custom/mod/scripts/vscripts/titan/sh_first_person_embark.gnut
+++ /dev/null
@@ -1,47 +0,0 @@
-global function FirstPersonEmbark_Init
-global function FirstPersonEmbark_InitPlaylistVars
-
-#if CLIENT
- global function ServerCallback_HideHudForFPEmbark
-#endif
-
-void function FirstPersonEmbark_Init()
-{
- // atm do this no matter what playlist we're on since playlist overrides seem to get sent to clients after networkvar registration
- // not nice but whatever lol
- AddCallback_OnRegisteringCustomNetworkVars( FirstPersonEmbark_RegisterCustomNetworkFunctions )
-
- // busted rn lol
- if ( GetCurrentPlaylistVarInt( "fp_embark_enabled", 0 ) == 0 )
- return
-
- #if CLIENT
- AddCallback_PlayerClassChanged( ShowHudOnEmbarkFinished )
- #endif
-}
-
-void function FirstPersonEmbark_RegisterCustomNetworkFunctions()
-{
- Remote_RegisterFunction( "ServerCallback_HideHudForFPEmbark" )
-}
-
-void function FirstPersonEmbark_InitPlaylistVars()
-{
- AddPrivateMatchModeSettingEnum( "#MODE_SETTING_CATEGORY_TITAN", "fp_embark_enabled", [ "Disabled", "Enabled" ], "0" )
-}
-
-#if CLIENT
-void function ServerCallback_HideHudForFPEmbark()
-{
- thread MainHud_TurnOff_RUI( true )
- HidePermanentCockpitRui()
-}
-
-void function ShowHudOnEmbarkFinished( entity player )
-{
- if ( !player.IsTitan() )
- return
-
- ShowPermanentCockpitRui()
-}
-#endif \ No newline at end of file