Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scn NVDLC01VillaTravelTriggerScript
- ; JSH
- ; Knocks the player out and transports him to the Villa.
- ;CES 10/18/10
- ;Fine tuning and polishing the gassing part of the script
- short StartUp ;1= Player has tripped the trigger zone
- short EndStartUp
- float TimerA
- float TimerB
- float TimerC
- float TimerD
- float TimerE
- float TimerZ ;Added for first timer to trigger player teleportation
- short bTimerZDone
- BEGIN OnTrigger player
- ; Complete NVDLC01MQ00 and get the player set up to be knocked out.
- if (StartUp == 0) && (GetStageDone NVDLC01MQ00 10 == 1)
- if isModLoaded "TaleOfTwoWastelands.esm" == 0
- if (VNPCFollowers.bBooneHired == 1)
- ;set CraigBooneRef.Waiting to 1
- elseif (VNPCFollowers.ArcadeHired == 1)
- ;set ArcadeRef.Waiting to 1
- elseif (VNPCFollowers.RaulHired == 1)
- ;set RaulRef.Waiting to 1
- elseif (VNPCFollowers.bVeronicaHired == 1)
- ;set VeronicaRef.Waiting to 1
- elseif (VNPCFollowers.bLilyHired == 1)
- ;set LilyRef.Waiting to 1
- elseif (VNPCFollowers.bCassHired == 1)
- ;set RoseOfSharonCassidyRef.Waiting to 1
- endif
- if (VNPCFollowers.RexHired == 1)
- ;set RexRef.Waiting to 1
- elseif (VNPCFollowers.bEdEHired == 1)
- ;set EDE1Ref.Waiting to 1
- ;set EDE2Ref.Waiting to 1
- ;set EDE3Ref.Waiting to 1
- endif
- else
- ref rTTWFNFireAllFollowers = EditorIdToFormID "TTWFNFireAllFollowers"
- Call rTTWFNFireAllFollowers
- SetNumericGameSetting fCombatTeammateFollowRadiusMult 1
- endif
- SetObjectiveCompleted NVDLC01MQ00 10 1
- SetStage NVDLC01MQ00 100
- DisablePlayerControls 1 1 1 1 1 1 1
- Set TimerA to 1
- Set TimerA to .2
- Set StartUp to 1
- ApplyImageSpaceModifier ExplosionInFace
- PlaySound QSTNVDLC01OpeningStinger
- PlaySound QSTDLCTrap
- endif
- END
- BEGIN GameMode
- ; Player gets gassed.
- if ( StartUp == 1 )
- if ( TimerZ > 0 ) && (bTimerZDone== 0)
- Set TimerZ to ( TimerZ - GetSecondsPassed )
- else
- set bTimerZDone to 1
- Player.Moveto NVDLC01PlayerGasMarker
- endif
- if ( TimerA > 0 )
- Set TimerA to ( TimerA - GetSecondsPassed )
- else
- player.AddScriptPackage NVDLC01PlayerKnockedOut
- PipboyRadioOff
- Set TimerB to 2
- Set StartUp to 2
- endif
- endif
- ; Player hits the ground, dazed.
- if ( StartUp == 2 )
- if ( TimerB > 0 )
- Set TimerB to ( TimerB - GetSecondsPassed )
- ;BeginFX
- FXSprayJet0101Ref.enable
- FXSprayJet0102Ref.enable
- FXSprayJet0103Ref.enable
- FXSprayJet0104Ref.enable
- ;EndFX
- else
- Set TimerC to 8
- Set StartUp to 3
- endif
- endif
- ; Player slowly passes out.
- if ( StartUp == 3 )
- if ( TimerC > 0 )
- Set TimerC to ( TimerC - GetSecondsPassed )
- else
- StartQuest NVDLC01NewVegasFollowerFireQuest;
- if GetINIFloat "CustomSettings:bEquipmentRemoval" "DMT Config.ini" == 1
- player.RemoveAllItems NVDLC01PlayerEquipmentContainerRef
- endif
- imod FadeToBlackPermanent
- Set TimerC to 5
- Set StartUp to 4
- endif
- endif
- ; Player wakes up.
- if ( StartUp == 4 )
- if ( TimerC > 0 )
- Set TimerC to ( TimerC - GetSecondsPassed )
- else
- StartQuest NVDLC01Intro
- Set TimerE to 5
- Set StartUp to 5
- endif
- endif
- if ( StartUp == 5 )
- if ( TimerC > 0 )
- Set TimerC to ( TimerC - GetSecondsPassed )
- else
- Player.RemoveScriptPackage
- Set StartUp to 6
- ;EnablePlayerControls
- ;DisableFX
- FXSprayJet0101Ref.disable
- FXSprayJet0102Ref.disable
- FXSprayJet0103Ref.disable
- FXSprayJet0104Ref.disable
- ;DisableFX
- endif
- endif
- END
Advertisement
Add Comment
Please, Sign In to add comment