-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added wSkeever's fix for Neon guard dialogue issues
- Loading branch information
1 parent
ae6c243
commit 847bc21
Showing
2 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
Scripts/Source/Fragments/Quests/qf_dialogueneonconvo_securit_0032c7c0.psc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
ScriptName Fragments:Quests:QF_DialogueNeonConvo_Securit_0032C7C0 Extends Quest Const hidden | ||
|
||
;-- Variables --------------------------------------- | ||
|
||
;-- Properties -------------------------------------- | ||
ReferenceAlias Property Alias_ScanSceneTrigger Auto Const mandatory | ||
ReferenceAlias Property Alias_ScanSceneTriggerEnabler Auto Const mandatory | ||
ReferenceAlias Property Alias_ScanSceneTriggerDisabler Auto Const mandatory | ||
Scene Property DialogueNeonConvo_SecurityCheckpointScene Auto Const mandatory | ||
Quest Property DialogueNeonConvo_SecurityCheckpoint_Controller Auto Const mandatory | ||
ReferenceAlias Property Alias_CheckpointController Auto Const mandatory | ||
|
||
;-- Functions --------------------------------------- | ||
|
||
Function Fragment_Stage_0005_Item_00() | ||
SetBounty() ; Added by Starfield Community Patch v0.0.1 - Fixes Neon guards using the wrong dialogue. | ||
Alias_ScanSceneTrigger.GetRef().Enable(False) | ||
EndFunction | ||
|
||
Function Fragment_Stage_0010_Item_00() | ||
DialogueNeonConvo_SecurityCheckpointScene.Start() | ||
EndFunction | ||
|
||
Function Fragment_Stage_0020_Item_00() | ||
Alias_ScanSceneTrigger.GetRef().Disable(False) | ||
Alias_ScanSceneTriggerEnabler.GetRef().Disable(False) | ||
Alias_CheckpointController.GetRef().Disable(False) | ||
DialogueNeonConvo_SecurityCheckpoint_Controller.SetStage(20) | ||
Self.Stop() | ||
Self.Reset() | ||
EndFunction | ||
|
||
; Starfield Community Patch fix - https://www.starfieldpatch.dev/issues/319 | ||
Function SetBounty() | ||
Faction CrimeFactionUC = Game.GetForm(0x5BD93) As Faction | ||
Faction CrimeFactionFreestar = Game.GetForm(0x638E5) As Faction | ||
Faction CrimeFactionNeon = Game.GetForm(0x26FDEA) As Faction | ||
Faction CrimeFactionCrimsonFleet = Game.GetForm(0x10B30) As Faction | ||
Faction CrimeFactionCrucible = Game.GetForm(0x299F72) As Faction | ||
Faction CrimeFactionECSConstant = Game.GetForm(0x28B3AE) As Faction | ||
Faction CrimeFactionParadiso = Game.GetForm(0x26310C) As Faction | ||
|
||
int TotalBounty = 0 | ||
TotalBounty += CrimeFactionUC.GetCrimeGold() | ||
TotalBounty += CrimeFactionFreestar.GetCrimeGold() | ||
TotalBounty += CrimeFactionNeon.GetCrimeGold() | ||
TotalBounty += CrimeFactionCrimsonFleet.GetCrimeGold() | ||
TotalBounty += CrimeFactionCrucible.GetCrimeGold() | ||
TotalBounty += CrimeFactionECSConstant.GetCrimeGold() | ||
TotalBounty += CrimeFactionParadiso.GetCrimeGold() | ||
|
||
GlobalVariable CrimeBountyAmount = Game.GetForm(0x9108) As GlobalVariable | ||
CrimeBountyAmount.SetValueInt(TotalBounty) | ||
EndFunction |