From d804109724b23d66dd660d065c3616f61656385a Mon Sep 17 00:00:00 2001 From: "Mr. Blue" Date: Thu, 5 Dec 2024 16:59:10 +0100 Subject: [PATCH] Add OnNpcTarget hook --- resources/Rust.opj | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/resources/Rust.opj b/resources/Rust.opj index 3c68ee595..cf07ed683 100644 --- a/resources/Rust.opj +++ b/resources/Rust.opj @@ -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": [