Skip to content

Commit

Permalink
Add OnNpcTarget hook
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBlue committed Dec 5, 2024
1 parent f23b2a2 commit d804109
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions resources/Rust.opj
Original file line number Diff line number Diff line change
Expand Up @@ -21235,6 +21235,31 @@
"BaseHookName": "OnRfListenerRemoved",
"HookCategory": "Radio"
}
},
{
"Type": "Simple",
"Hook": {
"InjectionIndex": 15,
"ReturnBehavior": 4,
"ArgumentBehavior": 4,
"ArgumentString": "this.GetBaseEntity(), a0",
"HookTypeName": "Simple",
"Name": "OnNpcTarget [SenseComponent]",
"HookName": "OnNpcTarget",
"AssemblyName": "Assembly-CSharp.dll",
"TypeName": "Rust.Ai.Gen2.SenseComponent",
"Flagged": false,
"Signature": {
"Exposure": 2,
"Name": "CanTarget",
"ReturnType": "System.Boolean",
"Parameters": [
"BaseEntity"
]
},
"MSILHash": "1IFiFqiPi/UAOwFf2XHRsTyhryQEa4oAooUITmm0s6k=",
"HookCategory": "NPC"
}
}
],
"Modifiers": [
Expand Down

0 comments on commit d804109

Please sign in to comment.