Things to hook
Summary
Published: Mar 31 2024 by mana vortex Last documented edit: Mar 31 2024 by mana vortex
This page lists things that you can hook into (straight from the code of Addicted, thanks Roms1383 for the contribution!)
If you want to see an example, check How to create a hook -> Example
Player Actions
After the player is spawned:
@wrapMethod(PlayerPuppet)
protected cb func OnMakePlayerVisibleAfterSpawn(evt: ref<EndGracePeriodAfterSpawn>) -> Bool { }When a status effect is applied or removed
@wrapMethod(PlayerPuppet)
protected cb func OnStatusEffectApplied(evt: ref<ApplyStatusEffectEvent>) -> Bool
protected cb func OnStatusEffectRemoved(evt: ref<RemoveStatusEffect>) -> BoolWhen the player does something
@wrapMethod(PlayerPuppet)
protected cb func OnAction(action: ListenerAction, consumer: ListenerActionConsumer) -> BoolWhen the player interacts with an item
@wrapMethod(ItemActionsHelper)
public final static func ProcessItemAction(gi: GameInstance, executor: wref<GameObject>, itemData: wref<gameItemData>, actionID: TweakDBID, fromInventory: Bool) -> Bool
public final static func ProcessItemAction(gi: GameInstance, executor: wref<GameObject>, itemData: wref<gameItemData>, actionID: TweakDBID, fromInventory: Bool, quantity: Int32) -> BoolWhen the player consumes a quickslot item
When the player consumes an item from backpack
When the player equips/unequips an item
When the player equips Cyberware at a Ripperdoc
Different menus
In the character creator
On equipment preview
Photo mode
ESC menu
Weapon selection wheel (?)
When receiving a message
???
???
When showing/hiding a custom popup
BackpackMainGameController
CraftingGarmentItemPreviewGameController
EquipmentSystemPlayerData
gameuiInGameMenuGameController
gameuiInventoryGameController
gameuiPhotoModeMenuController
PhotoModeMenuListItem
inkInventoryPuppetPreviewGameController
InventoryItemDisplayController
InventoryItemModeLogicController
PhotoModePlayerEntityComponent
QuestTrackerGameController
UIInventoryItem
WardrobeSetPreviewGameController
ComputerInkGameController (already wrapped by Virtual Atelier)
Check for it with this annotation:
ComputerControllerPS (already wrapped by Virtual Atelier)
ComputerMenuButtonController (already wrapped by Virtual Atelier)
BrowserController (already wrapped by Virtual Atelier)
Consumables
When the consumable cooldown is over:
When the player heals themselves
When the player uses a consumable
Other stuff
When you skip time
Last updated
Was this helpful?