Skip to content

Instantly share code, notes, and snippets.

@reg2k
reg2k / GameEvents.h
Last active April 18, 2020 14:23
TESHitEvent
struct TESHitEvent
{
enum HitEventFlags {
kFlag_Unk0 = (1 << 0), // (Unk0 | Unk1) - blocked
kFlag_Unk1 = (1 << 1),
kFlag_CriticalHit = (1 << 3),
kFlag_SneakAttack = (1 << 11),
kFlag_Unk15 = (1 << 15), // (Unk15 | Unk16) - bash
kFlag_Unk16 = (1 << 16),
kFlag_PowerAttack = (1 << 17),
DUMPING DISPLAY LIST
[0] root1 Visible: true [object HUDMenu]
----[0] SafeRect_mc Visible: false [object MovieClip]
--------[0] instance51 Visible: true [object Shape]
----[1] RightMeters_mc Visible: true [object RightMeters_2]
--------[0] HUDActiveEffectsWidget_mc Visible: false [object HUDActiveEffectsWidget]
------------[0] instance52 Visible: true [object MovieClip]
----------------[0] Visible: false [object HUDActiveEffectClip]
--------------------[0] instance36 Visible: false [object MovieClip]
------------------------[0] instance53 Visible: true [object Shape]
@reg2k
reg2k / GlobalEvents.txt
Created March 4, 2018 11:29
Fallout 4 Global Events Dump
Event: BlockPipboyOpeningEvent@@@BSTGlobalEvent@@
Event: BlurEvent@@@BSTGlobalEvent@@
Event: UIAdvanceMenusFunctionCompleteEvent@@@BSTGlobalEvent@@
Event: QuickContainerStateEvent@@@BSTGlobalEvent@@
Event: SaveLoadMessageStringEvent@@@BSTGlobalEvent@@
Event: FaderMenuDisplayState@@@BSTGlobalEvent@@
Event: SaveLoadMessageTypeEvent@@@BSTGlobalEvent@@
Event: DoBeforeNewOrLoadCompletedEvent@@@BSTGlobalEvent@@
Event: RevertPlayerCharacterEvent@@@BSTGlobalEvent@@
Event: ColorUpdateEvent@@@BSTGlobalEvent@@
@reg2k
reg2k / Fallout 4 All Console Commands.txt
Created March 4, 2018 16:29
Dump of all Fallout 4 console commands (with description)
-----------------------------------------------------------------------------------------
ID Full Name Short Name Description
-----------------------------------------------------------------------------------------
256: Show TST Show global scripts and variables.
257: ShowVars SV Show variables on object. You can optionally specified a papyrus variable or script to filter with [player->sv]
258: ShowGlobalVars SGLV Show all global variables.
259: ShowQuestVars SQV Show quest variables. You can optionally specified a papyrus variable or script to filter with [svq QuestID]
260: ShowQuests SQ List quests.
261: ShowQuestAliases Show quest aliases. [ShowQuestAliases QuestID]
262:
@reg2k
reg2k / Fallout 4 No-Op Console Commands.txt
Created March 4, 2018 16:34
Fallout 4 List of No-Op Console Commands
Dump of no-op console commands.
These commands have *no code* associated with them (probably stripped from the release version) and are always no-ops.
------------------------------------------------------------------
ID Full Name Short Name
------------------------------------------------------------------
267: ToggleSafeZone TSZ
269: ToggleCollisionGeometry TCG
270: ToggleMaterialGeometry TMG
271: ToggleStairsGeometry TSG
272: ToggleHiResHeightfieldGeometry THRHG
@reg2k
reg2k / ViewCasterUpdateEvent.h
Created August 26, 2018 19:49
FO4 ViewCasterUpdateEvent
struct ViewCasterUpdateEvent
{
UInt32 handle; // 00
UInt32 pad08; // 04
UInt64 unk0C; // 08 - fade node
NiNode* niNode; // 10
UInt64 unk18[(0x40-0x18)/8]; // 18
TESObjectREFR* refr; // 40
//...
};
@reg2k
reg2k / Fallout 4 No-Op Game Settings.txt
Created October 6, 2018 16:56
Fallout 4 List of No-Op Game Settings
The following game settings are never used by the game.
The settings in this list have no game code referencing them (determined statically).
bCameraShotAllowDeadzone
fAIButtonDelayOnInterrupt
fAICallCommandDistance
fAICombatFleeScoreThreshold
fAICombatNoAreaEffectAllyDistance
fAICombatNoTargetLOSPriorityMult
fAICombatSlopeDifference
@reg2k
reg2k / Fallout 4 List of No-Op INI Settings
Created October 6, 2018 17:06
Fallout 4 No-Op INI Settings.txt
The settings in this list have no game code referencing them (determined statically).
INI Pref Settings:
bShowLODInEditor:TerrainManager
bUseWaterDepth:Water
bUseWaterRefractions:Water
fAudioMasterVolume:AudioMenu
bSinglePassDirShadow:Display
bForceIgnoreSmoothness:Display
@reg2k
reg2k / PipboyMenu BGSCodeObj.txt
Created October 8, 2018 11:41
PipboyMenu BGSCodeObj
======================================
Function ID
======================================
PlaySound 0
PlaySmallTransition 1
PopulatePipboyInfoObj 2
onNewPage 3
onNewTab 4
toggleMovementToDirectional 0x28
UseStimpak 5
@reg2k
reg2k / cid_types.txt
Created April 8, 2020 07:53
Control CID Types
===========================
ID | Name
===========================
0x01 : r::CID_GAMEOBJECT
0x02 : r::CID_SCRIPTBASE
0x10 : CID_SKELETON
0x11 : CID_BLUEPRINT
0x12 : CID_SOUND_EVENT
0x13 : CID_GAME_EVENT
0x14 : CID_GAME_EVENT_HANDLER_unused