diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-10-17 22:29:19 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-10-17 22:29:19 +0100 |
commit | 0f71d94b6c968ddb34ec611d898cceea02638f99 (patch) | |
tree | 03e7c78025495430d1f82dcb20abeef63deb8144 /Northstar.Custom/mod/scripts/vscripts/titan/sh_titan_embark.gnut | |
parent | 6b07fb30fb7380b1d61af6a620ec72c9066753e2 (diff) | |
download | NorthstarMods-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_titan_embark.gnut')
-rw-r--r-- | Northstar.Custom/mod/scripts/vscripts/titan/sh_titan_embark.gnut | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/titan/sh_titan_embark.gnut b/Northstar.Custom/mod/scripts/vscripts/titan/sh_titan_embark.gnut index f9df27306..5a1ecd8fa 100644 --- a/Northstar.Custom/mod/scripts/vscripts/titan/sh_titan_embark.gnut +++ b/Northstar.Custom/mod/scripts/vscripts/titan/sh_titan_embark.gnut @@ -951,20 +951,8 @@ function TitanEmbark_PlayerEmbarks( entity player, entity titan, table e ) } ) - if ( GetCurrentPlaylistVarInt( "fp_embark_enabled", 0 ) == 1 ) - { - Remote_CallFunction_NonReplay( player, "ServerCallback_HideHudForFPEmbark" ) - - // fp embark hacks - entity viewControl = CreateEntity( "point_viewcontrol" ) - viewControl.kv.spawnflags = 56 - DispatchSpawn( viewControl ) - - viewControl.SetParent( player, "headshot" ) - viewControl.SetOrigin( < 4, 0, 0 > ) - viewControl.SetAngles( < 0, 0, 0 > ) - player.SetViewEntity( viewControl, false ) - } + if ( GetCurrentPlaylistVarInt( "fp_embark_enabled", 0 ) == 1 && !doFirstPersonAnim ) + FirstPersonSequenceForce1P( sequence, player, titan ) thread FirstPersonSequence( sequence, player, titan ) // EmitDifferentSoundsOnEntityForPlayerAndWorld( firstPersonAudio, thirdPersonAudio, titan, player ) @@ -1032,15 +1020,9 @@ void function Embark_DelayedFadeOut( entity player, entity titan, float delay ) } else { - OnThreadEnd( function() : ( player ) - { - player.ClearViewEntity() - }) - wait EMBARK_FADE_TIME - 0.2 ScreenFadeToBlack( player, 0.2, 0.4 ) wait 0.2 - player.ClearViewEntity() // make sure player is in normal first person again } ScreenFadeFromBlack( player, EMBARK_FADE_TIME, EMBARK_FADE_TIME ) @@ -1105,10 +1087,7 @@ void function PhaseEmbarkPhaseStart( entity player ) EmitSoundOnEntity( player, "pilot_phaseembark_activate_3p" ) if ( GetCurrentPlaylistVarInt( "fp_embark_enabled", 0 ) == 1 ) - { player.PhaseShiftBegin( 0.0, 0.2 ) - player.GetPetTitan().SetForceVisibleInPhaseShift( true ) // doesn't work for some reason - } thread PhaseEmbarkPhaseCleanup( player ) } |