hieiyyh Posted November 5, 2021 Share Posted November 5, 2021 (edited) Mod: https://www.nexusmods.com/fallout4/mods/33759I'm trying to recompile the script because i wanted to add a few new game settings which are:iRemoveExcessDeadCountiRemoveExcessDeadTotalActorCountiRemoveExcessDeadComplexCountiRemoveExcessDeadComplexTotalActorCount ScriptName GCM extends Quest import ScriptObject import Actor import debug import ActorBase ;-- Properties -------------------------------------- Actor Property Player Auto Const GlobalVariable Property BoSVertibird Auto float Property fBarterMin Auto float Property fBarterMax Auto float Property fBarterBuyMax Auto float Property fBarterSellMax Auto float Property fActionPointsRate Auto ActorValue Property ActionPointsRate Auto float Property fCombatActionPointsRegenRateMult Auto float Property fDamagedAPRegenDelay Auto float Property fOutOfBreathActionPointsRegenDelay Auto float Property fActionPointsRegenDelayMax Auto float Property fAVDActionPointsBase Auto float Property fAVDActionPointsMult Auto float Property fAVDHealthStartEndMult Auto float Property fHealthEnduranceOffset Auto float Property fCombatHealthRegenMult Auto float Property fHealrate Auto ActorValue Property CombatHealthRegenMult Auto ActorValue Property Healrate Auto float Property fSprintActionPointsDrainMult Auto float Property fSprintActionPointsEndBase Auto float Property fSprintActionPointsEndMult Auto float Property fAVDMeleeDamageMult Auto float Property fAVDCarryWeightBase Auto float Property fAVDCarryWeightMult Auto float Property fJumpHeightMin Auto float Property fActorSwimBreathDamage Auto float Property fActorSwimBreathTime Auto float Property fDiffMultHPToPCVE Auto float Property fDiffMultHPToPCE Auto float Property fDiffMultHPToPCN Auto float Property fDiffMultHPToPCH Auto float Property fDiffMultHPToPCVH Auto float Property fDiffMultHPToPCSV Auto float Property fDiffMultHPToPCTSV Auto float Property IncomingDamageMult Auto ActorValue Property HC_IncomingDamageMult Auto float Property fDiffMultHPByPCVE Auto float Property fDiffMultHPByPCE Auto float Property fDiffMultHPByPCN Auto float Property fDiffMultHPByPCH Auto float Property fDiffMultHPByPCVH Auto float Property fDiffMultHPByPCSV Auto float Property fDiffMultHPByPCTSV Auto float Property OutgoingDamageMult Auto ActorValue Property HC_OutgoingDamageMult Auto float Property fDiffMultEffectDuration_VE Auto float Property fDiffMultEffectDuration_E Auto float Property fDiffMultEffectDuration_N Auto float Property fDiffMultEffectDuration_H Auto float Property fDiffMultEffectDuration_VH Auto float Property fDiffMultEffectDuration_SV Auto float Property fDiffMultEffectDuration_TSV Auto float Property fDiffMultEffectMagnitude_VE Auto float Property fDiffMultEffectMagnitude_E Auto float Property fDiffMultEffectMagnitude_N Auto float Property fDiffMultEffectMagnitude_H Auto float Property fDiffMultEffectMagnitude_VH Auto float Property fDiffMultEffectMagnitude_SV Auto float Property fDiffMultEffectMagnitude_TSV Auto float Property fXPModBase Auto float Property fXPModMult Auto float Property fCookingExpBase Auto float Property fCookingExpMax Auto float Property fCookingExpMult Auto float Property fLockpickXPRewardEasy Auto float Property fLockpickXPRewardAverage Auto float Property fLockpickXPRewardHard Auto float Property fLockpickXPRewardVeryHard Auto int Property iMineDisarmExperience Auto float Property fWorkbenchExperienceBase Auto float Property fWorkbenchExperienceMax Auto float Property fWorkbenchExperienceMult Auto float Property fWorkshopExperienceBase Auto float Property fWorkshopExperienceMax Auto float Property fWorkshopExperienceMult Auto float Property fFastTravelSpeedMult Auto int Property iHoursToClearCorpses Auto int Property iHoursToRespawnCell Auto int Property iHoursToRespawnCellCleared Auto int Property iRemoveExcessDeadCount Auto int Property iRemoveExcessDeadTotalActorCount Auto int Property iRemoveExcessDeadComplexCount Auto int Property iRemoveExcessDeadComplexTotalActorCount Auto float Property fEnergyArmorDmgReductionExp Auto float Property fEnergyDamageFactor Auto float Property fRadsArmorDmgReductionExp Auto float Property fRadsDamageFactor Auto float Property fPhysicalArmorDmgReductionExp Auto float Property fPhysicalDamageFactor Auto float Property fPowerArmorPowerDrainPerActionPoint Auto float Property fPowerArmorPowerDrainPerImpactLand Auto float Property fPowerArmorPowerDrainPerJump Auto float Property fPowerArmorPowerDrainPerMeleeAttack Auto float Property fPowerArmorPowerDrainPerSecondRunning Auto float Property fPowerArmorNPCArmorDamageMultiplier Auto float Property fPowerArmorPCArmorDamageMultiplier Auto float Property fJetpackDrainInital Auto float Property fJetpackDrainSustained Auto float Property fJetpackMinFuelRequired Auto float Property fJetpackThrustInitial Auto float Property fJetpackThrustSustained Auto float Property fJetpackTimeToSustained Auto float Property fDiffMultLegendaryChance_VE Auto float Property fDiffMultLegendaryChance_E Auto float Property fDiffMultLegendaryChance_N Auto float Property fDiffMultLegendaryChance_H Auto float Property fDiffMultLegendaryChance_VH Auto float Property fDiffMultLegendaryChance_SV Auto float Property fDiffMultLegendaryChance_TSV Auto float Property fDiffMultLegendaryRarity_VE Auto float Property fDiffMultLegendaryRarity_E Auto float Property fDiffMultLegendaryRarity_N Auto float Property fDiffMultLegendaryRarity_H Auto float Property fDiffMultLegendaryRarity_VH Auto float Property fDiffMultLegendaryRarity_SV Auto float Property fDiffMultLegendaryRarity_TSV Auto float Property fNPCHealthLevelBonus Auto float Property fCombatRangedGrenadeThrowDelay Auto float Property fCombatRangedThrowDelay Auto float Property fCombatDodgeChanceMax Auto float Property fSandboxCylinderTop Auto float Property fSandboxCylinderBottom Auto float Property fLockPickBreakBase Auto float Property fLockpickSkillSweetSpotBase Auto float Property fPickPocketMinChance Auto float Property fPickPocketMaxChance Auto int Property iHackingMinWords Auto int Property iHackingMaxWords Auto float Property fLockpickBreakApprentice Auto float Property fLockpickBreakAdept Auto float Property fLockpickBreakExpert Auto float Property fLockpickBreakMaster Auto float Property fSweetspotEasy Auto float Property fSweetspotAverage Auto float Property fSweetspotHard Auto float Property fSweetspotVeryHard Auto float Property fCombatSneakGunMult Auto float Property fCombatSneakHandMult Auto float Property fCombatSneak1hSwordMult Auto float Property fCombatSneak2hSwordMult Auto float Property fProjectileInventoryGrenadeTimer Auto float Property fSneakExteriorDistanceMult Auto float Property fSneakMaxDistance Auto float Property fSneakLightMult Auto float Property fCombatStealthPointAttackedMaxValue Auto float Property fCombatStealthPointKilledMaxValue Auto float Property fCombatStealthPointMax Auto float Property fCombatStealthPointRegenAlertDelayTime Auto float Property fCombatStealthPointRegenAttackedDelayTime Auto float Property fCombatStealthPointRegenDetectedEventDelayTime Auto float Property fCombatStealthPointRegenLostDelayTime Auto float Property fCombatStealthPointRegenMin Auto float Property fCombatDetectionDialogueLostAttackMinElapsedTime Auto float Property fCombatDetectionDialogueMaxElapsedTime Auto float Property fCombatDetectionDialogueMinElapsedTime Auto float Property fCombatDetectionKnownTimeLimit Auto float Property fCombatDetectionLostTimeLimit Auto float Property fCombatDetectionSuspectedAttackTimeLimit Auto float Property fCombatDetectionSuspectedKnownTimeLimit Auto float Property fCombatSearchStartAttackLocationTimeLimit Auto float Property fCombatSearchStartKnownLocationTimeLimit Auto float Property fCombatSearchInvestigateTime Auto float Property fCombatMusicPlayerTargetedThreatRatio Auto float Property fCombatMusicNearCombatInnerRadius Auto float Property fCombatMusicNearCombatOuterRadius Auto float Property fVATSMaxEngageDistance Auto float Property fVATSTimeMultTargetSelect Auto float Property fVATSPlayerDamageMult Auto float Property fGunShellLifetime Auto int Property iMaxAttachedArrows Auto int Property iProjectileMaxRefCount Auto int Property iDebrisMaxCount Auto float Property fGunShellCameraDistance Auto float Property fGunParticleCameraDistance Auto float Property fIronSightsDOFStrength Auto int Property iTerminalDisplayRate Auto Weather Property CommonwealthClear Auto Const Weather Property CommonwealthClearestSkies Auto Const Weather Property CommonwealthDusty Auto Const Weather Property CommonwealthFoggy Auto Const Weather Property CommonwealthGSFoggy Auto Const Weather Property CommonwealthGSOvercast Auto Const Weather Property CommonwealthGSRadstorm Auto Const Weather Property CommonwealthMisty Auto Const Weather Property CommonwealthMistyRainy Auto Const Weather Property CommonwealthOvercast Auto Const Weather Property CommonwealthRain Auto Const GlobalVariable Property GCM_WeatherGlobalForce Auto float Property fWorkshopWireMaxLength Auto int Property iWorkshopSettlerPopulationMax Auto bool Property applyOnLoad = True Auto bool Property getOnLoad = False Auto bool Property updateDate070 = True Auto string Property GCM_P = "GCM" AutoReadOnly ;-- Variables --------------------------------------- Actor playerref ;-- Functions --------------------------------------- Function RegisterCustomEvents() RegisterForExternalEvent("OnMCMOpen", "OnMCMOpen") RegisterForExternalEvent("OnMCMClose", "OnMCMClose") EndFunction Function VertibirdEncounterOriginal() BoSVertibird.setvalue(100) EndFunction Function VertibirdEncounterHalf() BoSVertibird.setvalue(50) EndFunction Function MusicCombatDisabled() fCombatMusicPlayerTargetedThreatRatio = 0 as float fCombatMusicNearCombatInnerRadius = 0 as float fCombatMusicNearCombatOuterRadius = 0 as float EndFunction Event Actor.OnPlayerLoadGame(Actor akSender) If (f4se.GetVersionMinor() == 0) Debug.MessageBox("GCM: F4SE is not correctly installed or is not run as admin. Most values will not be saved.") EndIf If (updateDate070) Self.UpdateScriptVars() updateDate070 = False EndIf If (applyOnLoad) Self.UpdateGSVars() ElseIf (getOnLoad) Self.UpdateScriptVars() EndIf Self.RegisterCustomEvents() EndEvent Function MusicCombatEnabled() fCombatMusicPlayerTargetedThreatRatio = 15 as float fCombatMusicNearCombatInnerRadius = 2500 as float fCombatMusicNearCombatOuterRadius = 3500 as float EndFunction Function VATSTimeSlowOriginal() fVATSTimeMultTargetSelect = 0.04 EndFunction Function VATSDamageReductionDisabled() fVATSPlayerDamageMult = 1 EndFunction Function VATSTimeSlowDisabled() fVATSTimeMultTargetSelect = 1 EndFunction Function LegendariesOriginal() fDiffMultLegendaryChance_VE = 0.25 fDiffMultLegendaryChance_E = 0.5 fDiffMultLegendaryChance_N = 1 as float fDiffMultLegendaryChance_H = 1.25 fDiffMultLegendaryChance_VH = 1.5 fDiffMultLegendaryChance_SV = 1.5 fDiffMultLegendaryChance_TSV = 1.5 fDiffMultLegendaryRarity_VE = 1 as float fDiffMultLegendaryRarity_E = 1 as float fDiffMultLegendaryRarity_N = 1 as float fDiffMultLegendaryRarity_H = 1 as float fDiffMultLegendaryRarity_VH = 1 as float fDiffMultLegendaryRarity_SV = 1 as float fDiffMultLegendaryRarity_TSV = 1 as float EndFunction Event OnInit() Self.UpdateScriptVars() playerref = Game.GetPlayer() RegisterForRemoteEvent(playerref as Actor, "OnPlayerLoadGame") RegisterCustomEvents() EndEvent Function PicklockEasy() fLockpickBreakApprentice = 3 fLockpickBreakAdept = 3 fLockpickBreakExpert = 3 fLockpickBreakMaster = 3 fSweetspotEasy = 80 fSweetspotAverage = 70 fSweetspotHard = 60 fSweetspotVeryHard = 50 EndFunction Event OnMCMOpen() UpdateScriptVars() mcm.RefreshMenu() EndEvent Event OnMCMClose() UpdateGSVars() mcm.RefreshMenu() EndEvent Function VertibirdEncounterDisabled() BoSVertibird.setvalue(0) EndFunction Function PicklockHard() fLockpickBreakApprentice = 1.25 fLockpickBreakAdept = 1.25 fLockpickBreakExpert = 1.25 fLockpickBreakMaster = 1.25 fSweetspotEasy = 60 fSweetspotAverage = 40 fSweetspotHard = 20 fSweetspotVeryHard = 8 EndFunction Function GCM_ChangeWeather(Weather weatherID) If (GCM_WeatherGlobalForce.GetValue() > 0 as float) weatherID.ForceActive(False) Else weatherID.SetActive(False, True) EndIf EndFunction Function hackingAlways() iHackingMinWords = 1 iHackingMaxWords = 1 EndFunction Function NpcThrowCooldownThirty() fCombatRangedGrenadeThrowDelay = 30 fCombatRangedThrowDelay = 30 EndFunction Function UpdateScriptVars() fBarterMin = Game.GetGameSettingFloat("fBarterMin") fBarterMax = Game.GetGameSettingFloat("fBarterMax") fBarterBuyMax = Game.GetGameSettingFloat("fBarterBuyMax") fBarterSellMax = Game.GetGameSettingFloat("fBarterSellMax") fActionPointsRate = Player.getbasevalue(ActionPointsRate) fCombatHealthRegenMult = Player.getbasevalue(CombatHealthRegenMult) fHealrate = Player.getbasevalue(Healrate) fCombatActionPointsRegenRateMult = Game.GetGameSettingFloat("fCombatActionPointsRegenRateMult") fDamagedAPRegenDelay = Game.GetGameSettingFloat("fDamagedAPRegenDelay") fOutOfBreathActionPointsRegenDelay = Game.GetGameSettingFloat("fOutOfBreathActionPointsRegenDelay") fActionPointsRegenDelayMax = Game.GetGameSettingFloat("fActionPointsRegenDelayMax") fActorSwimBreathDamage = Game.GetGameSettingFloat("fActorSwimBreathDamage") fActorSwimBreathTime = Game.GetGameSettingFloat("fActorSwimBreathTime") fAVDActionPointsBase = Game.GetGameSettingFloat("fAVDActionPointsBase") fAVDActionPointsMult = Game.GetGameSettingFloat("fAVDActionPointsMult") fAVDHealthStartEndMult = Game.GetGameSettingFloat("fAVDHealthStartEndMult") fHealthEnduranceOffset = Game.GetGameSettingFloat("fHealthEnduranceOffset") fSprintActionPointsDrainMult = Game.GetGameSettingFloat("fSprintActionPointsDrainMult") fSprintActionPointsEndBase = Game.GetGameSettingFloat("fSprintActionPointsEndBase") fSprintActionPointsEndMult = Game.GetGameSettingFloat("fSprintActionPointsEndMult") fAVDMeleeDamageMult = Game.GetGameSettingFloat("fAVDMeleeDamageMult") fAVDCarryWeightBase = Game.GetGameSettingFloat("fAVDCarryWeightBase") fAVDCarryWeightMult = Game.GetGameSettingFloat("fAVDCarryWeightMult") fJumpHeightMin = Game.GetGameSettingFloat("fJumpHeightMin") fDiffMultHPToPCVE = Game.GetGameSettingFloat("fDiffMultHPToPCVE") fDiffMultHPToPCE = Game.GetGameSettingFloat("fDiffMultHPToPCE") fDiffMultHPToPCN = Game.GetGameSettingFloat("fDiffMultHPToPCN") fDiffMultHPToPCH = Game.GetGameSettingFloat("fDiffMultHPToPCH") fDiffMultHPToPCVH = Game.GetGameSettingFloat("fDiffMultHPToPCVH") fDiffMultHPToPCSV = Game.GetGameSettingFloat("fDiffMultHPToPCSV") fDiffMultHPToPCTSV = Game.GetGameSettingFloat("fDiffMultHPToPCTSV") IncomingDamageMult = Player.GetValue(HC_IncomingDamageMult) fDiffMultHPByPCVE = Game.GetGameSettingFloat("fDiffMultHPByPCVE") fDiffMultHPByPCE = Game.GetGameSettingFloat("fDiffMultHPByPCE") fDiffMultHPByPCN = Game.GetGameSettingFloat("fDiffMultHPByPCN") fDiffMultHPByPCH = Game.GetGameSettingFloat("fDiffMultHPByPCH") fDiffMultHPByPCVH = Game.GetGameSettingFloat("fDiffMultHPByPCVH") fDiffMultHPByPCSV = Game.GetGameSettingFloat("fDiffMultHPByPCSV") fDiffMultHPByPCTSV = Game.GetGameSettingFloat("fDiffMultHPByPCTSV") OutgoingDamageMult = Player.GetValue(HC_OutgoingDamageMult) fDiffMultEffectDuration_VE = Game.GetGameSettingFloat("fDiffMultEffectDuration_VE") fDiffMultEffectDuration_E = Game.GetGameSettingFloat("fDiffMultEffectDuration_E") fDiffMultEffectDuration_N = Game.GetGameSettingFloat("fDiffMultEffectDuration_N") fDiffMultEffectDuration_H = Game.GetGameSettingFloat("fDiffMultEffectDuration_H") fDiffMultEffectDuration_VH = Game.GetGameSettingFloat("fDiffMultEffectDuration_VH") fDiffMultEffectDuration_SV = Game.GetGameSettingFloat("fDiffMultEffectDuration_SV") fDiffMultEffectDuration_TSV = Game.GetGameSettingFloat("fDiffMultEffectDuration_TSV") fDiffMultEffectMagnitude_VE = Game.GetGameSettingFloat("fDiffMultEffectMagnitude_VE") fDiffMultEffectMagnitude_E = Game.GetGameSettingFloat("fDiffMultEffectMagnitude_E") fDiffMultEffectMagnitude_N = Game.GetGameSettingFloat("fDiffMultEffectMagnitude_N") fDiffMultEffectMagnitude_H = Game.GetGameSettingFloat("fDiffMultEffectMagnitude_H") fDiffMultEffectMagnitude_VH = Game.GetGameSettingFloat("fDiffMultEffectMagnitude_VH") fDiffMultEffectMagnitude_SV = Game.GetGameSettingFloat("fDiffMultEffectMagnitude_SV") fDiffMultEffectMagnitude_TSV = Game.GetGameSettingFloat("fDiffMultEffectMagnitude_TSV") fXPModBase = Game.GetGameSettingFloat("fXPModBase") fXPModMult = Game.GetGameSettingFloat("fXPModMult") fCookingExpBase = Game.GetGameSettingFloat("fCookingExpBase") fCookingExpMax = Game.GetGameSettingFloat("fCookingExpMax") fCookingExpMult = Game.GetGameSettingFloat("fCookingExpMult") fLockpickXPRewardEasy = Game.GetGameSettingFloat("fLockpickXPRewardEasy") fLockpickXPRewardAverage = Game.GetGameSettingFloat("fLockpickXPRewardAverage") fLockpickXPRewardHard = Game.GetGameSettingFloat("fLockpickXPRewardHard") fLockpickXPRewardVeryHard = Game.GetGameSettingFloat("fLockpickXPRewardVeryHard") iMineDisarmExperience = Game.GetGameSettingInt("iMineDisarmExperience") fWorkbenchExperienceBase = Game.GetGameSettingFloat("fWorkbenchExperienceBase") fWorkbenchExperienceMax = Game.GetGameSettingFloat("fWorkbenchExperienceMax") fWorkbenchExperienceMult = Game.GetGameSettingFloat("fWorkbenchExperienceMult") fWorkshopExperienceBase = Game.GetGameSettingFloat("fWorkshopExperienceBase") fWorkshopExperienceMax = Game.GetGameSettingFloat("fWorkshopExperienceMax") fWorkshopExperienceMult = Game.GetGameSettingFloat("fWorkshopExperienceMult") fFastTravelSpeedMult = Game.GetGameSettingFloat("fFastTravelSpeedMult") iHoursToClearCorpses = Game.GetGameSettingInt("iHoursToClearCorpses") iRemoveExcessDeadCount = Game.GetGameSettingInt("iRemoveExcessDeadCount") iRemoveExcessDeadTotalActorCount = Game.GetGameSettingInt("iRemoveExcessDeadTotalActorCount") iRemoveExcessDeadComplexCount = Game.GetGameSettingInt("iRemoveExcessDeadComplexCount") iRemoveExcessDeadComplexTotalActorCount = Game.GetGameSettingInt("iRemoveExcessDeadComplexTotalActorCount") iHoursToRespawnCell = Game.GetGameSettingInt("iHoursToRespawnCell") iHoursToRespawnCellCleared = Game.GetGameSettingInt("iHoursToRespawnCellCleared") fEnergyArmorDmgReductionExp = Game.GetGameSettingFloat("fEnergyArmorDmgReductionExp") fEnergyDamageFactor = Game.GetGameSettingFloat("fEnergyDamageFactor") fRadsArmorDmgReductionExp = Game.GetGameSettingFloat("fRadsArmorDmgReductionExp") fRadsDamageFactor = Game.GetGameSettingFloat("fRadsDamageFactor") fPhysicalArmorDmgReductionExp = Game.GetGameSettingFloat("fPhysicalArmorDmgReductionExp") fPhysicalDamageFactor = Game.GetGameSettingFloat("fPhysicalDamageFactor") fPowerArmorPowerDrainPerActionPoint = Game.GetGameSettingFloat("fPowerArmorPowerDrainPerActionPoint") fPowerArmorPowerDrainPerImpactLand = Game.GetGameSettingFloat("fPowerArmorPowerDrainPerImpactLand") fPowerArmorPowerDrainPerJump = Game.GetGameSettingFloat("fPowerArmorPowerDrainPerJump") fPowerArmorPowerDrainPerMeleeAttack = Game.GetGameSettingFloat("fPowerArmorPowerDrainPerMeleeAttack") fPowerArmorPowerDrainPerSecondRunning = Game.GetGameSettingFloat("fPowerArmorPowerDrainPerSecondRunning") fPowerArmorNPCArmorDamageMultiplier = Game.GetGameSettingFloat("fPowerArmorNPCArmorDamageMultiplier") fPowerArmorPCArmorDamageMultiplier = Game.GetGameSettingFloat("fPowerArmorPCArmorDamageMultiplier") fJetpackDrainInital = Game.GetGameSettingFloat("fJetpackDrainInital") fJetpackDrainSustained = Game.GetGameSettingFloat("fJetpackDrainSustained") fJetpackMinFuelRequired = Game.GetGameSettingFloat("fJetpackMinFuelRequired") fJetpackThrustInitial = Game.GetGameSettingFloat("fJetpackThrustInitial") fJetpackThrustSustained = Game.GetGameSettingFloat("fJetpackThrustSustained") fJetpackTimeToSustained = Game.GetGameSettingFloat("fJetpackTimeToSustained") fDiffMultLegendaryChance_VE = Game.GetGameSettingFloat("fDiffMultLegendaryChance_VE") fDiffMultLegendaryChance_E = Game.GetGameSettingFloat("fDiffMultLegendaryChance_E") fDiffMultLegendaryChance_N = Game.GetGameSettingFloat("fDiffMultLegendaryChance_N") fDiffMultLegendaryChance_H = Game.GetGameSettingFloat("fDiffMultLegendaryChance_H") fDiffMultLegendaryChance_VH = Game.GetGameSettingFloat("fDiffMultLegendaryChance_VH") fDiffMultLegendaryChance_SV = Game.GetGameSettingFloat("fDiffMultLegendaryChance_SV") fDiffMultLegendaryChance_TSV = Game.GetGameSettingFloat("fDiffMultLegendaryChance_TSV") fDiffMultLegendaryRarity_VE = Game.GetGameSettingFloat("fDiffMultLegendaryRarity_VE") fDiffMultLegendaryRarity_E = Game.GetGameSettingFloat("fDiffMultLegendaryRarity_E") fDiffMultLegendaryRarity_N = Game.GetGameSettingFloat("fDiffMultLegendaryRarity_N") fDiffMultLegendaryRarity_H = Game.GetGameSettingFloat("fDiffMultLegendaryRarity_H") fDiffMultLegendaryRarity_VH = Game.GetGameSettingFloat("fDiffMultLegendaryRarity_VH") fDiffMultLegendaryRarity_SV = Game.GetGameSettingFloat("fDiffMultLegendaryRarity_SV") fDiffMultLegendaryRarity_TSV = Game.GetGameSettingFloat("fDiffMultLegendaryRarity_TSV") fNPCHealthLevelBonus = Game.GetGameSettingFloat("fNPCHealthLevelBonus") fCombatRangedGrenadeThrowDelay = Game.GetGameSettingFloat("fCombatRangedGrenadeThrowDelay") fCombatRangedThrowDelay = Game.GetGameSettingFloat("fCombatRangedThrowDelay") fCombatDodgeChanceMax = Game.GetGameSettingFloat("fCombatDodgeChanceMax") fSandboxCylinderTop = Game.GetGameSettingFloat("fSandboxCylinderTop") fSandboxCylinderBottom = Game.GetGameSettingFloat("fSandboxCylinderBottom") fLockPickBreakBase = Game.GetGameSettingFloat("fLockPickBreakBase") fLockpickSkillSweetSpotBase = Game.GetGameSettingFloat("fLockpickSkillSweetSpotBase") fPickPocketMinChance = Game.GetGameSettingFloat("fPickPocketMinChance") fPickPocketMaxChance = Game.GetGameSettingFloat("fPickPocketMaxChance") iHackingMinWords = Game.GetGameSettingInt("iHackingMinWords") iHackingMaxWords = Game.GetGameSettingInt("iHackingMaxWords") fProjectileInventoryGrenadeTimer = Game.GetGameSettingFloat("fProjectileInventoryGrenadeTimer") fLockpickBreakApprentice = Game.GetGameSettingFloat("fLockpickBreakApprentice") fLockpickBreakAdept = Game.GetGameSettingFloat("fLockpickBreakAdept") fLockpickBreakExpert = Game.GetGameSettingFloat("fLockpickBreakExpert") fLockpickBreakMaster = Game.GetGameSettingFloat("fLockpickBreakMaster") fSweetspotEasy = Game.GetGameSettingFloat("fSweetspotEasy") fSweetspotAverage = Game.GetGameSettingFloat("fSweetspotAverage") fSweetspotHard = Game.GetGameSettingFloat("fSweetspotHard") fSweetspotVeryHard = Game.GetGameSettingFloat("fSweetspotVeryHard") fCombatSneakGunMult = Game.GetGameSettingFloat("fCombatSneakGunMult") fCombatSneakHandMult = Game.GetGameSettingFloat("fCombatSneakHandMult") fCombatSneak1hSwordMult = Game.GetGameSettingFloat("fCombatSneak1hSwordMult") fCombatSneak2hSwordMult = Game.GetGameSettingFloat("fCombatSneak2hSwordMult") fSneakExteriorDistanceMult = Game.GetGameSettingFloat("fSneakExteriorDistanceMult") fSneakMaxDistance = Game.GetGameSettingFloat("fSneakMaxDistance") fSneakLightMult = Game.GetGameSettingFloat("fSneakLightMult") fCombatStealthPointAttackedMaxValue = Game.GetGameSettingFloat("fCombatStealthPointAttackedMaxValue") fCombatStealthPointKilledMaxValue = Game.GetGameSettingFloat("fCombatStealthPointKilledMaxValue") fCombatStealthPointMax = Game.GetGameSettingFloat("fCombatStealthPointMax") fCombatStealthPointRegenAlertDelayTime = Game.GetGameSettingFloat("fCombatStealthPointRegenAlertDelayTime") fCombatStealthPointRegenAttackedDelayTime = Game.GetGameSettingFloat("fCombatStealthPointRegenAttackedDelayTime") fCombatStealthPointRegenDetectedEventDelayTime = Game.GetGameSettingFloat("fCombatStealthPointRegenDetectedEventDelayTime") fCombatStealthPointRegenLostDelayTime = Game.GetGameSettingFloat("fCombatStealthPointRegenLostDelayTime") fCombatStealthPointRegenMin = Game.GetGameSettingFloat("fCombatStealthPointRegenMin") fCombatDetectionDialogueLostAttackMinElapsedTime = Game.GetGameSettingFloat("fCombatDetectionDialogueLostAttackMinElapsedTime") fCombatDetectionDialogueMaxElapsedTime = Game.GetGameSettingFloat("fCombatDetectionDialogueMaxElapsedTime") fCombatDetectionDialogueMinElapsedTime = Game.GetGameSettingFloat("fCombatDetectionDialogueMinElapsedTime") fCombatDetectionKnownTimeLimit = Game.GetGameSettingFloat("fCombatDetectionKnownTimeLimit") fCombatDetectionLostTimeLimit = Game.GetGameSettingFloat("fCombatDetectionLostTimeLimit") fCombatDetectionSuspectedAttackTimeLimit = Game.GetGameSettingFloat("fCombatDetectionSuspectedAttackTimeLimit") fCombatDetectionSuspectedKnownTimeLimit = Game.GetGameSettingFloat("fCombatDetectionSuspectedKnownTimeLimit") fCombatSearchStartAttackLocationTimeLimit = Game.GetGameSettingFloat("fCombatSearchStartAttackLocationTimeLimit") fCombatSearchStartKnownLocationTimeLimit = Game.GetGameSettingFloat("fCombatSearchStartKnownLocationTimeLimit") fCombatSearchInvestigateTime = Game.GetGameSettingFloat("fCombatSearchInvestigateTime") fCombatMusicPlayerTargetedThreatRatio = Game.GetGameSettingFloat("fCombatMusicPlayerTargetedThreatRatio") fCombatMusicNearCombatInnerRadius = Game.GetGameSettingFloat("fCombatMusicNearCombatInnerRadius") fCombatMusicNearCombatOuterRadius = Game.GetGameSettingFloat("fCombatMusicNearCombatOuterRadius") fVATSMaxEngageDistance = Game.GetGameSettingFloat("fVATSMaxEngageDistance") fVATSTimeMultTargetSelect = Game.GetGameSettingFloat("fVATSTimeMultTargetSelect") fVATSPlayerDamageMult = Game.GetGameSettingFloat("fVATSPlayerDamageMult") fGunShellLifetime = Game.GetGameSettingFloat("fGunShellLifetime") iMaxAttachedArrows = Game.GetGameSettingInt("iMaxAttachedArrows") iProjectileMaxRefCount = Game.GetGameSettingInt("iProjectileMaxRefCount") iDebrisMaxCount = Game.GetGameSettingInt("iDebrisMaxCount") fGunShellCameraDistance = Game.GetGameSettingFloat("fGunShellCameraDistance") fGunParticleCameraDistance = Game.GetGameSettingFloat("fGunParticleCameraDistance") fIronSightsDOFStrength = Game.GetGameSettingFloat("fIronSightsDOFStrength") iTerminalDisplayRate = Game.GetGameSettingInt("iTerminalDisplayRate") fWorkshopWireMaxLength = Game.GetGameSettingFloat("fWorkshopWireMaxLength") iWorkshopSettlerPopulationMax = Game.GetGameSettingInt("iWorkshopSettlerPopulationMax") EndFunction Function VATSDamageReductionOriginal() fVATSPlayerDamageMult = 0.1 EndFunction Function SetWeather(float GCM_Weather) If (GCM_Weather == 0 as float) Self.GCM_ChangeWeather(CommonwealthClear) ElseIf (GCM_Weather == 1 as float) Self.GCM_ChangeWeather(CommonwealthClearestSkies) ElseIf (GCM_Weather == 2 as float) Self.GCM_ChangeWeather(CommonwealthDusty) ElseIf (GCM_Weather == 3 as float) Self.GCM_ChangeWeather(CommonwealthFoggy) ElseIf (GCM_Weather == 4 as float) Self.GCM_ChangeWeather(CommonwealthGSFoggy) ElseIf (GCM_Weather == 5 as float) Self.GCM_ChangeWeather(CommonwealthGSOvercast) ElseIf (GCM_Weather == 6 as float) Self.GCM_ChangeWeather(CommonwealthGSRadstorm) ElseIf (GCM_Weather == 7 as float) Self.GCM_ChangeWeather(CommonwealthMisty) ElseIf (GCM_Weather == 8 as float) Self.GCM_ChangeWeather(CommonwealthMistyRainy) ElseIf (GCM_Weather == 9 as float) Self.GCM_ChangeWeather(CommonwealthOvercast) ElseIf (GCM_Weather == 10 as float) Self.GCM_ChangeWeather(CommonwealthRain) EndIf EndFunction Function PicklockOriginal() fLockpickBreakApprentice = 2 fLockpickBreakAdept = 2 fLockpickBreakExpert = 2 fLockpickBreakMaster = 2 fSweetspotEasy = 80 fSweetspotAverage = 60 fSweetspotHard = 40 fSweetspotVeryHard = 20 EndFunction Function UpdateGSVars() Game.SetGameSettingFloat("fBarterMin", fBarterMin) Game.SetGameSettingFloat("fBarterMax", fBarterMax) Game.SetGameSettingFloat("fBarterBuyMax", fBarterBuyMax) Game.SetGameSettingFloat("fBarterSellMax", fBarterSellMax) Game.SetGameSettingFloat("fCombatActionPointsRegenRateMult", fCombatActionPointsRegenRateMult) Player.setvalue(ActionPointsRate, fActionPointsRate) Player.setvalue(CombatHealthRegenMult, fCombatHealthRegenMult) Player.setvalue(Healrate, fHealrate) Game.SetGameSettingFloat("fDamagedAPRegenDelay", fDamagedAPRegenDelay) Game.SetGameSettingFloat("fOutOfBreathActionPointsRegenDelay", fOutOfBreathActionPointsRegenDelay) Game.SetGameSettingFloat("fActionPointsRegenDelayMax", fActionPointsRegenDelayMax) Game.SetGameSettingFloat("fActorSwimBreathDamage", fActorSwimBreathDamage) Game.SetGameSettingFloat("fActorSwimBreathTime", fActorSwimBreathTime) Game.SetGameSettingFloat("fAVDActionPointsBase", fAVDActionPointsBase) Game.SetGameSettingFloat("fAVDActionPointsMult", fAVDActionPointsMult) Game.SetGameSettingFloat("fAVDHealthStartEndMult", fAVDHealthStartEndMult) Game.SetGameSettingFloat("fHealthEnduranceOffset", fHealthEnduranceOffset) Game.SetGameSettingFloat("fSprintActionPointsDrainMult", fSprintActionPointsDrainMult) Game.SetGameSettingFloat("fSprintActionPointsEndBase", fSprintActionPointsEndBase) Game.SetGameSettingFloat("fSprintActionPointsEndMult", fSprintActionPointsEndMult) Game.SetGameSettingFloat("fAVDMeleeDamageMult", fAVDMeleeDamageMult) Game.SetGameSettingFloat("fAVDCarryWeightBase", fAVDCarryWeightBase) Game.SetGameSettingFloat("fAVDCarryWeightMult", fAVDCarryWeightMult) Game.SetGameSettingFloat("fJumpHeightMin", fJumpHeightMin) Game.SetGameSettingFloat("fDiffMultHPToPCVE", fDiffMultHPToPCVE) Game.SetGameSettingFloat("fDiffMultHPToPCE", fDiffMultHPToPCE) Game.SetGameSettingFloat("fDiffMultHPToPCN", fDiffMultHPToPCN) Game.SetGameSettingFloat("fDiffMultHPToPCH", fDiffMultHPToPCH) Game.SetGameSettingFloat("fDiffMultHPToPCVH", fDiffMultHPToPCVH) Game.SetGameSettingFloat("fDiffMultHPToPCSV", fDiffMultHPToPCSV) Game.SetGameSettingFloat("fDiffMultHPToPCTSV", fDiffMultHPToPCTSV) Player.setvalue(HC_IncomingDamageMult, IncomingDamageMult) Game.SetGameSettingFloat("fDiffMultHPByPCVE", fDiffMultHPByPCVE) Game.SetGameSettingFloat("fDiffMultHPByPCE", fDiffMultHPByPCE) Game.SetGameSettingFloat("fDiffMultHPByPCN", fDiffMultHPByPCN) Game.SetGameSettingFloat("fDiffMultHPByPCH", fDiffMultHPByPCH) Game.SetGameSettingFloat("fDiffMultHPByPCVH", fDiffMultHPByPCVH) Game.SetGameSettingFloat("fDiffMultHPByPCSV", fDiffMultHPByPCSV) Game.SetGameSettingFloat("fDiffMultHPByPCTSV", fDiffMultHPByPCTSV) Player.setvalue(HC_OutgoingDamageMult, OutgoingDamageMult) Game.SetGameSettingFloat("fDiffMultEffectDuration_VE", fDiffMultEffectDuration_VE) Game.SetGameSettingFloat("fDiffMultEffectDuration_E", fDiffMultEffectDuration_E) Game.SetGameSettingFloat("fDiffMultEffectDuration_N", fDiffMultEffectDuration_N) Game.SetGameSettingFloat("fDiffMultEffectDuration_H", fDiffMultEffectDuration_H) Game.SetGameSettingFloat("fDiffMultEffectDuration_VH", fDiffMultEffectDuration_VH) Game.SetGameSettingFloat("fDiffMultEffectDuration_SV", fDiffMultEffectDuration_SV) Game.SetGameSettingFloat("fDiffMultEffectDuration_TSV", fDiffMultEffectDuration_TSV) Game.SetGameSettingFloat("fDiffMultEffectMagnitude_VE", fDiffMultEffectMagnitude_VE) Game.SetGameSettingFloat("fDiffMultEffectMagnitude_E", fDiffMultEffectMagnitude_E) Game.SetGameSettingFloat("fDiffMultEffectMagnitude_N", fDiffMultEffectMagnitude_N) Game.SetGameSettingFloat("fDiffMultEffectMagnitude_H", fDiffMultEffectMagnitude_H) Game.SetGameSettingFloat("fDiffMultEffectMagnitude_VH", fDiffMultEffectMagnitude_VH) Game.SetGameSettingFloat("fDiffMultEffectMagnitude_SV", fDiffMultEffectMagnitude_SV) Game.SetGameSettingFloat("fDiffMultEffectMagnitude_TSV", fDiffMultEffectMagnitude_TSV) Game.SetGameSettingFloat("fXPModBase", fXPModBase) Game.SetGameSettingFloat("fXPModMult", fXPModMult) Game.SetGameSettingFloat("fCookingExpBase", fCookingExpBase) Game.SetGameSettingFloat("fCookingExpMax", fCookingExpMax) Game.SetGameSettingFloat("fCookingExpMult", fCookingExpMult) Game.SetGameSettingFloat("fLockpickXPRewardEasy", fLockpickXPRewardEasy) Game.SetGameSettingFloat("fLockpickXPRewardAverage", fLockpickXPRewardAverage) Game.SetGameSettingFloat("fLockpickXPRewardHard", fLockpickXPRewardHard) Game.SetGameSettingFloat("fLockpickXPRewardVeryHard", fLockpickXPRewardVeryHard) Game.SetGameSettingInt("iMineDisarmExperience", iMineDisarmExperience) Game.SetGameSettingFloat("fWorkbenchExperienceBase", fWorkbenchExperienceBase) Game.SetGameSettingFloat("fWorkbenchExperienceMax", fWorkbenchExperienceMax) Game.SetGameSettingFloat("fWorkbenchExperienceMult", fWorkbenchExperienceMult) Game.SetGameSettingFloat("fWorkshopExperienceBase", fWorkshopExperienceBase) Game.SetGameSettingFloat("fWorkshopExperienceMax", fWorkshopExperienceMax) Game.SetGameSettingFloat("fWorkshopExperienceMult", fWorkshopExperienceMult) Game.SetGameSettingFloat("fFastTravelSpeedMult", fFastTravelSpeedMult) Game.SetGameSettingInt("iHoursToClearCorpses", iHoursToClearCorpses) Game.SetGameSettingInt("iRemoveExcessDeadCount", iRemoveExcessDeadCount) Game.SetGameSettingInt("iRemoveExcessDeadTotalActorCount", iRemoveExcessDeadTotalActorCount) Game.SetGameSettingInt("iRemoveExcessDeadComplexCount", iRemoveExcessDeadComplexCount) Game.SetGameSettingInt("iRemoveExcessDeadComplexTotalActorCount", iRemoveExcessDeadComplexTotalActorCount) Game.SetGameSettingInt("iHoursToRespawnCell", iHoursToRespawnCell) Game.SetGameSettingInt("iHoursToRespawnCellCleared", iHoursToRespawnCellCleared) Game.SetGameSettingFloat("fEnergyArmorDmgReductionExp", fEnergyArmorDmgReductionExp) Game.SetGameSettingFloat("fEnergyDamageFactor", fEnergyDamageFactor) Game.SetGameSettingFloat("fRadsArmorDmgReductionExp", fRadsArmorDmgReductionExp) Game.SetGameSettingFloat("fRadsDamageFactor", fRadsDamageFactor) Game.SetGameSettingFloat("fPhysicalArmorDmgReductionExp", fPhysicalArmorDmgReductionExp) Game.SetGameSettingFloat("fPhysicalDamageFactor", fPhysicalDamageFactor) Game.SetGameSettingFloat("fPowerArmorPowerDrainPerActionPoint", fPowerArmorPowerDrainPerActionPoint) Game.SetGameSettingFloat("fPowerArmorPowerDrainPerImpactLand", fPowerArmorPowerDrainPerImpactLand) Game.SetGameSettingFloat("fPowerArmorPowerDrainPerJump", fPowerArmorPowerDrainPerJump) Game.SetGameSettingFloat("fPowerArmorPowerDrainPerMeleeAttack", fPowerArmorPowerDrainPerMeleeAttack) Game.SetGameSettingFloat("fPowerArmorPowerDrainPerSecondRunning", fPowerArmorPowerDrainPerSecondRunning) Game.SetGameSettingFloat("fPowerArmorNPCArmorDamageMultiplier", fPowerArmorNPCArmorDamageMultiplier) Game.SetGameSettingFloat("fPowerArmorPCArmorDamageMultiplier", fPowerArmorPCArmorDamageMultiplier) Game.SetGameSettingFloat("fJetpackDrainInital", fJetpackDrainInital) Game.SetGameSettingFloat("fJetpackDrainSustained", fJetpackDrainSustained) Game.SetGameSettingFloat("fJetpackMinFuelRequired", fJetpackMinFuelRequired) Game.SetGameSettingFloat("fJetpackThrustInitial", fJetpackThrustInitial) Game.SetGameSettingFloat("fJetpackThrustSustained", fJetpackThrustSustained) Game.SetGameSettingFloat("fJetpackTimeToSustained", fJetpackTimeToSustained) Game.SetGameSettingFloat("fDiffMultLegendaryChance_VE", fDiffMultLegendaryChance_VE) Game.SetGameSettingFloat("fDiffMultLegendaryChance_E", fDiffMultLegendaryChance_E) Game.SetGameSettingFloat("fDiffMultLegendaryChance_N", fDiffMultLegendaryChance_N) Game.SetGameSettingFloat("fDiffMultLegendaryChance_H", fDiffMultLegendaryChance_H) Game.SetGameSettingFloat("fDiffMultLegendaryChance_VH", fDiffMultLegendaryChance_VH) Game.SetGameSettingFloat("fDiffMultLegendaryChance_SV", fDiffMultLegendaryChance_SV) Game.SetGameSettingFloat("fDiffMultLegendaryChance_TSV", fDiffMultLegendaryChance_TSV) Game.SetGameSettingFloat("fDiffMultLegendaryRarity_VE", fDiffMultLegendaryRarity_VE) Game.SetGameSettingFloat("fDiffMultLegendaryRarity_E", fDiffMultLegendaryRarity_E) Game.SetGameSettingFloat("fDiffMultLegendaryRarity_N", fDiffMultLegendaryRarity_N) Game.SetGameSettingFloat("fDiffMultLegendaryRarity_H", fDiffMultLegendaryRarity_H) Game.SetGameSettingFloat("fDiffMultLegendaryRarity_VH", fDiffMultLegendaryRarity_VH) Game.SetGameSettingFloat("fDiffMultLegendaryRarity_SV", fDiffMultLegendaryRarity_SV) Game.SetGameSettingFloat("fDiffMultLegendaryRarity_TSV", fDiffMultLegendaryRarity_TSV) Game.SetGameSettingFloat("fNPCHealthLevelBonus", fNPCHealthLevelBonus) Game.SetGameSettingFloat("fCombatRangedGrenadeThrowDelay", fCombatRangedGrenadeThrowDelay) Game.SetGameSettingFloat("fCombatRangedThrowDelay", fCombatRangedThrowDelay) Game.SetGameSettingFloat("fCombatDodgeChanceMax", fCombatDodgeChanceMax) Game.SetGameSettingFloat("fSandboxCylinderTop", fSandboxCylinderTop) Game.SetGameSettingFloat("fSandboxCylinderBottom", fSandboxCylinderBottom) Game.SetGameSettingFloat("fLockPickBreakBase", fLockPickBreakBase) Game.SetGameSettingFloat("fLockpickSkillSweetSpotBase", fLockpickSkillSweetSpotBase) Game.SetGameSettingFloat("fPickPocketMinChance", fPickPocketMinChance) Game.SetGameSettingFloat("fPickPocketMaxChance", fPickPocketMaxChance) Game.SetGameSettingInt("iHackingMinWords", iHackingMinWords) Game.SetGameSettingInt("iHackingMaxWords", iHackingMaxWords) Game.SetGameSettingFloat("fProjectileInventoryGrenadeTimer", fProjectileInventoryGrenadeTimer) Game.SetGameSettingFloat("fLockpickBreakApprentice", fLockpickBreakApprentice) Game.SetGameSettingFloat("fLockpickBreakAdept", fLockpickBreakAdept) Game.SetGameSettingFloat("fLockpickBreakExpert", fLockpickBreakExpert) Game.SetGameSettingFloat("fLockpickBreakMaster", fLockpickBreakMaster) Game.SetGameSettingFloat("fSweetspotEasy", fSweetspotEasy) Game.SetGameSettingFloat("fSweetspotAverage", fSweetspotAverage) Game.SetGameSettingFloat("fSweetspotHard", fSweetspotHard) Game.SetGameSettingFloat("fSweetspotVeryHard", fSweetspotVeryHard) Game.SetGameSettingFloat("fCombatSneakGunMult", fCombatSneakGunMult) Game.SetGameSettingFloat("fCombatSneakHandMult", fCombatSneakHandMult) Game.SetGameSettingFloat("fCombatSneak1hSwordMult", fCombatSneak1hSwordMult) Game.SetGameSettingFloat("fCombatSneak2hSwordMult", fCombatSneak2hSwordMult) Game.SetGameSettingFloat("fSneakExteriorDistanceMult", fSneakExteriorDistanceMult) Game.SetGameSettingFloat("fSneakMaxDistance", fSneakMaxDistance) Game.SetGameSettingFloat("fSneakLightMult", fSneakLightMult) Game.SetGameSettingFloat("fCombatStealthPointAttackedMaxValue", fCombatStealthPointAttackedMaxValue) Game.SetGameSettingFloat("fCombatStealthPointKilledMaxValue", fCombatStealthPointKilledMaxValue) Game.SetGameSettingFloat("fCombatStealthPointMax", fCombatStealthPointMax) Game.SetGameSettingFloat("fCombatStealthPointRegenAlertDelayTime", fCombatStealthPointRegenAlertDelayTime) Game.SetGameSettingFloat("fCombatStealthPointRegenAttackedDelayTime", fCombatStealthPointRegenAttackedDelayTime) Game.SetGameSettingFloat("fCombatStealthPointRegenDetectedEventDelayTime", fCombatStealthPointRegenDetectedEventDelayTime) Game.SetGameSettingFloat("fCombatStealthPointRegenLostDelayTime", fCombatStealthPointRegenLostDelayTime) Game.SetGameSettingFloat("fCombatStealthPointRegenMin", fCombatStealthPointRegenMin) Game.SetGameSettingFloat("fCombatDetectionDialogueLostAttackMinElapsedTime", fCombatDetectionDialogueLostAttackMinElapsedTime) Game.SetGameSettingFloat("fCombatDetectionDialogueMaxElapsedTime", fCombatDetectionDialogueMaxElapsedTime) Game.SetGameSettingFloat("fCombatDetectionDialogueMinElapsedTime", fCombatDetectionDialogueMinElapsedTime) Game.SetGameSettingFloat("fCombatDetectionKnownTimeLimit", fCombatDetectionKnownTimeLimit) Game.SetGameSettingFloat("fCombatDetectionLostTimeLimit", fCombatDetectionLostTimeLimit) Game.SetGameSettingFloat("fCombatDetectionSuspectedAttackTimeLimit", fCombatDetectionSuspectedAttackTimeLimit) Game.SetGameSettingFloat("fCombatDetectionSuspectedKnownTimeLimit", fCombatDetectionSuspectedKnownTimeLimit) Game.SetGameSettingFloat("fCombatSearchStartAttackLocationTimeLimit", fCombatSearchStartAttackLocationTimeLimit) Game.SetGameSettingFloat("fCombatSearchStartKnownLocationTimeLimit", fCombatSearchStartKnownLocationTimeLimit) Game.SetGameSettingFloat("fCombatSearchInvestigateTime", fCombatSearchInvestigateTime) Game.SetGameSettingFloat("fCombatMusicPlayerTargetedThreatRatio", fCombatMusicPlayerTargetedThreatRatio) Game.SetGameSettingFloat("fCombatMusicNearCombatInnerRadius", fCombatMusicNearCombatInnerRadius) Game.SetGameSettingFloat("fCombatMusicNearCombatOuterRadius", fCombatMusicNearCombatOuterRadius) Game.SetGameSettingFloat("fVATSMaxEngageDistance", fVATSMaxEngageDistance) Game.SetGameSettingFloat("fVATSTimeMultTargetSelect", fVATSTimeMultTargetSelect) Game.SetGameSettingFloat("fVATSPlayerDamageMult", fVATSPlayerDamageMult) Game.SetGameSettingFloat("fGunShellLifetime", fGunShellLifetime) Game.SetGameSettingInt("iMaxAttachedArrows", iMaxAttachedArrows) Game.SetGameSettingInt("iProjectileMaxRefCount", iProjectileMaxRefCount) Game.SetGameSettingInt("iDebrisMaxCount", iDebrisMaxCount) Game.SetGameSettingFloat("fGunShellCameraDistance", fGunShellCameraDistance) Game.SetGameSettingFloat("fGunParticleCameraDistance", fGunParticleCameraDistance) Game.SetGameSettingFloat("fIronSightsDOFStrength", fIronSightsDOFStrength) Game.SetGameSettingInt("iTerminalDisplayRate", iTerminalDisplayRate) Game.SetGameSettingFloat("fWorkshopWireMaxLength", fWorkshopWireMaxLength) Game.SetGameSettingInt("iWorkshopSettlerPopulationMax", iWorkshopSettlerPopulationMax) EndFunction Function hackingOriginal() iHackingMinWords = 6 iHackingMaxWords = 20 EndFunction Function PicklockMedium() fLockpickBreakApprentice = 1.5 fLockpickBreakAdept = 1.5 fLockpickBreakExpert = 1.5 fLockpickBreakMaster = 1.5 fSweetspotEasy = 70 fSweetspotAverage = 50 fSweetspotHard = 30 fSweetspotVeryHard = 10 EndFunction Function PicklockVeryHard() fLockpickBreakApprentice = 1 fLockpickBreakAdept = 1 fLockpickBreakExpert = 1 fLockpickBreakMaster = 1 fSweetspotEasy = 30 fSweetspotAverage = 20 fSweetspotHard = 10 fSweetspotVeryHard = 3.5 EndFunction Function BLD_Settings() fAVDHealthStartEndMult = 5 as float fHealthEnduranceOffset = 0 as float fAVDMeleeDamageMult = 0.01 fDiffMultHPToPCVE = 0.5 fDiffMultHPToPCE = 0.5 fDiffMultHPToPCN = 0.5 fDiffMultHPToPCH = 0.5 fDiffMultHPToPCVH = 0.5 fDiffMultHPToPCSV = 0.5 fDiffMultHPToPCTSV = 0.5 fDiffMultHPByPCVE = 0.5 fDiffMultHPByPCE = 0.5 fDiffMultHPByPCN = 0.5 fDiffMultHPByPCH = 0.5 fDiffMultHPByPCVH = 0.5 fDiffMultHPByPCSV = 0.5 fDiffMultHPByPCTSV = 0.5 fDiffMultLegendaryChance_VE = 0 as float fDiffMultLegendaryChance_E = 0 as float fDiffMultLegendaryChance_N = 0 as float fDiffMultLegendaryChance_H = 0 as float fDiffMultLegendaryChance_VH = 0 as float fDiffMultLegendaryChance_SV = 0 as float fDiffMultLegendaryChance_TSV = 0 as float fDiffMultLegendaryRarity_VE = 0 as float fDiffMultLegendaryRarity_E = 0 as float fDiffMultLegendaryRarity_N = 0 as float fDiffMultLegendaryRarity_H = 0 as float fDiffMultLegendaryRarity_VH = 0 as float fDiffMultLegendaryRarity_SV = 0 as float fDiffMultLegendaryRarity_TSV = 0 as float fNPCHealthLevelBonus = 0 as float fCombatRangedGrenadeThrowDelay = 30 as float fCombatRangedThrowDelay = 30 as float fCombatDodgeChanceMax = 0 as float fCombatSneakGunMult = 1 as float EndFunction Function VATSTimeSlowHalf() fVATSTimeMultTargetSelect = 0.5 EndFunction Function hackingEasy() iHackingMinWords = 4 iHackingMaxWords = 12 EndFunction Function LegendariesDisabled() fDiffMultLegendaryChance_VE = 0 as float fDiffMultLegendaryChance_E = 0 as float fDiffMultLegendaryChance_N = 0 as float fDiffMultLegendaryChance_H = 0 as float fDiffMultLegendaryChance_VH = 0 as float fDiffMultLegendaryChance_SV = 0 as float fDiffMultLegendaryChance_TSV = 0 as float fDiffMultLegendaryRarity_VE = 0 as float fDiffMultLegendaryRarity_E = 0 as float fDiffMultLegendaryRarity_N = 0 as float fDiffMultLegendaryRarity_H = 0 as float fDiffMultLegendaryRarity_VH = 0 as float fDiffMultLegendaryRarity_SV = 0 as float fDiffMultLegendaryRarity_TSV = 0 as float EndFunction Function NpcThrowCooldownOriginal() fCombatRangedGrenadeThrowDelay = 7.5 fCombatRangedThrowDelay = 5 EndFunction Function VATSDamageReductionHalf() fVATSPlayerDamageMult = 0.5 EndFunction    The whole script, when i try to compile i get the following errors:  GCM.psc(300,0): new event onmcmopen cannot be defined because the script is not flagged as nativeGCM.psc(305,0): new event onmcmclose cannot be defined because the script is not flagged as native line 300:Event OnMCMOpen() UpdateScriptVars() mcm.RefreshMenu()EndEventline 305:Event OnMCMClose() UpdateGSVars() mcm.RefreshMenu()EndEventthe function is the first one on the scriptFunction RegisterCustomEvents() RegisterForExternalEvent("OnMCMOpen", "OnMCMOpen") RegisterForExternalEvent("OnMCMClose", "OnMCMClose")EndFunction how the compile this? Edited November 5, 2021 by hieiyyh Link to comment Share on other sites More sharing options...
LarannKiar Posted November 6, 2021 Share Posted November 6, 2021 I don't use MCM but maybe this GitHub guide will help you. Link to comment Share on other sites More sharing options...
hieiyyh Posted November 6, 2021 Author Share Posted November 6, 2021 n I don't use MCM but maybe this GitHub guide will help you.no luck... the mainly difference is the Event OnQuestInit() which i added and no difference, same error saying that new event OnMCMOpen/OnMCMClose cannot be defined because the script is not flagged as native... so, how in the world the guy compiled this thing if something is missing? all F4SE and MCM source files are on the folder of the script. Link to comment Share on other sites More sharing options...
LarannKiar Posted November 11, 2021 Share Posted November 11, 2021 (edited)  n I don't use MCM but maybe this GitHub guide will help you.no luck... the mainly difference is the Event OnQuestInit() which i added and no difference, same error saying that new event OnMCMOpen/OnMCMClose cannot be defined because the script is not flagged as native... so, how in the world the guy compiled this thing if something is missing? all F4SE and MCM source files are on the folder of the script.  I downloaded MCM and put the Scripts folder from the archive in my Falllout4/Data folder, then pasted the code in the Creation Kit's script editor and I was able to compile it. Are you sure you have MCM.pex in Fallout4/Data/Scripts and MCM.psc in Fallout4/data/Script/Source/User? Edited November 11, 2021 by LarannKiar Link to comment Share on other sites More sharing options...
hieiyyh Posted November 14, 2021 Author Share Posted November 14, 2021 (edited)   n I don't use MCM but maybe this GitHub guide will help you.no luck... the mainly difference is the Event OnQuestInit() which i added and no difference, same error saying that new event OnMCMOpen/OnMCMClose cannot be defined because the script is not flagged as native... so, how in the world the guy compiled this thing if something is missing? all F4SE and MCM source files are on the folder of the script.  I downloaded MCM and put the Scripts folder from the archive in my Falllout4/Data folder, then pasted the code in the Creation Kit's script editor and I was able to compile it. Are you sure you have MCM.pex in Fallout4/Data/Scripts and MCM.psc in Fallout4/data/Script/Source/User?   well, i'm not using CK directly but the papyrus compiler that is located in "Papyrus Compiler" folder in the root of FO4, which i believe it was created by CK... please, if you did compile this script i posted, can you post it here? thanks in advance tried in the CK and received the same error  Papyrus Compiler Version 2.8.0.4 for Fallout 4Copyright © ZeniMax Media. All rights reserved.Starting 1 compile threads for 1 files...Compiling "GCM.psc"...xxSteam\steamapps\common\Fallout 4\Data\Scripts\Source\User\GCM.psc(236,0): new event onmcmmenuopen cannot be defined because the script is not flagged as nativexx\Steam\steamapps\common\Fallout 4\Data\Scripts\Source\User\GCM.psc(241,0): new event onmcmmenuclose cannot be defined because the script is not flagged as nativeNo output generated for GCM.psc, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on GCM.psc and yes, i have MCM.pex file in script folder, also have the source files in user and base folder... but no go, i can compile MCM normally but not GCM. Edited November 14, 2021 by hieiyyh Link to comment Share on other sites More sharing options...
LarannKiar Posted November 14, 2021 Share Posted November 14, 2021 (edited)   well, i'm not using CK directly but the papyrus compiler that is located in "Papyrus Compiler" folder in the root of FO4, which i believe it was created by CK... please, if you did compile this script i posted, can you post it here? thanks in advance I uploaded the script to a Google Drive folder. It has two folders: Vanilla and Modified. Vanilla functions: Function RegisterCustomEvents() RegisterForExternalEvent("OnMCMOpen", "OnMCMOpen") RegisterForExternalEvent("OnMCMClose", "OnMCMClose") EndFunction Function OnMCMOpen() ;Not actually vanilla since "OnMCMOpen" event does not exists UpdateScriptVars() mcm.RefreshMenu() EndFunction Function OnMCMClose() ;Not actually vanilla since "OnMCMClose" event does not exists UpdateGSVars() mcm.RefreshMenu() EndFunction Modified functions: Function RegisterCustomEvents() RegisterForExternalEvent("OnMCMMenuOpen", "OnMCMMenuOpen") RegisterForExternalEvent("OnMCMMenuClose", "OnMCMMenuClose") EndFunction Function OnMCMMenuOpen(string modName, string id) UpdateScriptVars() mcm.RefreshMenu() EndFunction Function OnMCMMenuClose(string modName, string id) UpdateGSVars() mcm.RefreshMenu() EndFunction Papyrus Compiler Version 2.8.0.4 for Fallout 4Copyright © ZeniMax Media. All rights reserved.Starting 1 compile threads for 1 files...Compiling "GCM.psc"...xxSteam\steamapps\common\Fallout 4\Data\Scripts\Source\User\GCM.psc(236,0): new event onmcmmenuopen cannot be defined because the script is not flagged as nativexx\Steam\steamapps\common\Fallout 4\Data\Scripts\Source\User\GCM.psc(241,0): new event onmcmmenuclose cannot be defined because the script is not flagged as nativeNo output generated for GCM.psc, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on GCM.psc "OnMCMOpen" and "OnMCMClose" events don't exist in MCM.psc. In the current version of MCM, they are "OnMCMMenuOpen" and "OnMCMMenuClose". And they are functions, not events (see MCM.psc). Edited November 14, 2021 by LarannKiar Link to comment Share on other sites More sharing options...
hieiyyh Posted November 14, 2021 Author Share Posted November 14, 2021 YE    well, i'm not using CK directly but the papyrus compiler that is located in "Papyrus Compiler" folder in the root of FO4, which i believe it was created by CK... please, if you did compile this script i posted, can you post it here? thanks in advance I uploaded the script to a Google Drive folder. It has two folders: Vanilla and Modified. Vanilla functions: Function RegisterCustomEvents() RegisterForExternalEvent("OnMCMOpen", "OnMCMOpen") RegisterForExternalEvent("OnMCMClose", "OnMCMClose") EndFunction Function OnMCMOpen() ;Not actually vanilla since "OnMCMOpen" event does not exists UpdateScriptVars() mcm.RefreshMenu() EndFunction Function OnMCMClose() ;Not actually vanilla since "OnMCMClose" event does not exists UpdateGSVars() mcm.RefreshMenu() EndFunction Modified functions: Function RegisterCustomEvents() RegisterForExternalEvent("OnMCMMenuOpen", "OnMCMMenuOpen") RegisterForExternalEvent("OnMCMMenuClose", "OnMCMMenuClose") EndFunction Function OnMCMMenuOpen(string modName, string id) UpdateScriptVars() mcm.RefreshMenu() EndFunction Function OnMCMMenuClose(string modName, string id) UpdateGSVars() mcm.RefreshMenu() EndFunction Papyrus Compiler Version 2.8.0.4 for Fallout 4Copyright © ZeniMax Media. All rights reserved.Starting 1 compile threads for 1 files...Compiling "GCM.psc"...xxSteam\steamapps\common\Fallout 4\Data\Scripts\Source\User\GCM.psc(236,0): new event onmcmmenuopen cannot be defined because the script is not flagged as nativexx\Steam\steamapps\common\Fallout 4\Data\Scripts\Source\User\GCM.psc(241,0): new event onmcmmenuclose cannot be defined because the script is not flagged as nativeNo output generated for GCM.psc, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on GCM.psc "OnMCMOpen" and "OnMCMClose" events don't exist in MCM.psc. In the current version of MCM, they are "OnMCMMenuOpen" and "OnMCMMenuClose". And they are functions, not events (see MCM.psc). yes i noticed that too, but that was on the new version, i think he compiled on the older one wich were "OnMCMOpen" and "OnMCMClose"thanks i will test Link to comment Share on other sites More sharing options...
Recommended Posts