Skip to content

Commit

Permalink
Added wSkeever's fix for Neon guard dialogue issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Pickysaurus committed Oct 20, 2023
1 parent ae6c243 commit 847bc21
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<!-- When adding items to the changelog, please use H2 (##) and below only, otherwise this will render in a strange way on the Starfield Patch website -->
## [2023-10-01] Version 0.0.1
- Companions will now correctly comment on the player's appearance changing. (This was caused by companionaffinityeventsscript referencing "LooksMenu" instead of "ChargenMenu") [Fix contributed by Bobbyclue](https://github.com/Starfield-Community-Patch/Starfield-Community-Patch/pull/259)
- Fixed a bug where Neon Security would say you have a bounty even if you've never been arrested, [Fix contributed by wSkeever](https://www.nexusmods.com/users/7064860) - [v0.0.1 from Nexus Mods Page](https://www.nexusmods.com/starfield/mods/4763)
- Companions will now correctly comment on the player's appearance changing. (This was caused by
companionaffinityeventsscript referencing "LooksMenu" instead of "ChargenMenu") [Fix contributed by Bobbyclue](https://github.com/Starfield-Community-Patch/Starfield-Community-Patch/pull/259)
- Fixed an issue where player characters would sometimes headtrack to the left while sprinting for a long time. [Fix contributed by Monitor144hz](https://www.nexusmods.com/starfield/users/118625818) - [Issue](https://www.starfieldpatch.dev/issues/247) - [v1.1.1 from Nexus Mods Page](https://www.nexusmods.com/starfield/mods/2370)
- Fixed a typo in the English translation of the 3 Scan Jammer components in the ship builder. co_SMS_ScanJammer01[001AD84D], co_SMS_ScanJammer02_DualFrequency[001AD84C], co_SMS_ScanJammer03_MultiFrequency[001AD84B] [Issue reported by Daymarr](https://www.starfieldpatch.dev/issues/22)
- Fixed a typo in the English translation of the perk description for Peak Performance 05. MagPerk_PeakPerformance[00202D9F] [Issue reported by Jiopaba](https://github.com/Starfield-Community-Patch/Starfield-Community-Patch/issues/26)
Expand All @@ -10,6 +12,7 @@
- Fixed a misspelling of "pique" in Masako's Dialogue during "Sabotage". [0015E064] [Reported by wSkeever](https://www.starfieldpatch.dev/issues/260)
- Fixed a typo in Andromeda Kepler's dialogue. [00146104] [Reported by disasterchief](https://www.starfieldpatch.dev/issues/284)


<!--
## Guidance
Expand Down
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

0 comments on commit 847bc21

Please sign in to comment.