Skip to content

Commit 2b5fd3a

Browse files
appendixisMrBlue
authored andcommitted
Add BaseAIBrain.SwitchToState hooks
- OnAIBrainStateSwitch(BaseAIBrain, BasicAIState current, BasicAIState new) - OnAIBrainStateSwitched(BaseAIBrain, BasicAIState new)
1 parent 19d93b3 commit 2b5fd3a

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

resources/Rust.opj

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20382,6 +20382,59 @@
2038220382
"BaseHookName": "OnBoomboxStationUpdate",
2038320383
"HookCategory": "Radio"
2038420384
}
20385+
},
20386+
{
20387+
"Type": "Simple",
20388+
"Hook": {
20389+
"InjectionIndex": 25,
20390+
"ReturnBehavior": 4,
20391+
"ArgumentBehavior": 4,
20392+
"ArgumentString": "this, this.CurrentState, a0",
20393+
"HookTypeName": "Simple",
20394+
"Name": "OnAIBrainStateSwitch",
20395+
"HookName": "OnAIBrainStateSwitch",
20396+
"AssemblyName": "Assembly-CSharp.dll",
20397+
"TypeName": "BaseAIBrain",
20398+
"Flagged": false,
20399+
"Signature": {
20400+
"Exposure": 0,
20401+
"Name": "SwitchToState",
20402+
"ReturnType": "System.Boolean",
20403+
"Parameters": [
20404+
"BaseAIBrain/BasicAIState",
20405+
"System.Int32"
20406+
]
20407+
},
20408+
"MSILHash": "tXnRtM/LVzwoJvJPB7lcQwXjK9Y39caJepLphFuLD8w=",
20409+
"HookCategory": "NPC"
20410+
}
20411+
},
20412+
{
20413+
"Type": "Simple",
20414+
"Hook": {
20415+
"InjectionIndex": 63,
20416+
"ReturnBehavior": 0,
20417+
"ArgumentBehavior": 4,
20418+
"ArgumentString": "this, this.CurrentState",
20419+
"HookTypeName": "Simple",
20420+
"Name": "OnAIBrainStateSwitched",
20421+
"HookName": "OnAIBrainStateSwitched",
20422+
"AssemblyName": "Assembly-CSharp.dll",
20423+
"TypeName": "BaseAIBrain",
20424+
"Flagged": false,
20425+
"Signature": {
20426+
"Exposure": 0,
20427+
"Name": "SwitchToState",
20428+
"ReturnType": "System.Boolean",
20429+
"Parameters": [
20430+
"BaseAIBrain/BasicAIState",
20431+
"System.Int32"
20432+
]
20433+
},
20434+
"MSILHash": "tXnRtM/LVzwoJvJPB7lcQwXjK9Y39caJepLphFuLD8w=",
20435+
"BaseHookName": "OnAIBrainStateSwitch",
20436+
"HookCategory": "NPC"
20437+
}
2038520438
}
2038620439
],
2038720440
"Modifiers": [

0 commit comments

Comments
 (0)