From 0d02c729dab9f0f2517d3b3d181ef82b966dc3c6 Mon Sep 17 00:00:00 2001 From: IIIaKa Date: Mon, 30 Dec 2024 21:54:29 +0500 Subject: [PATCH] Add OnPlayerVanish and OnPlayerUnvanish hooks (#541) --- resources/Rust.opj | 51 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/resources/Rust.opj b/resources/Rust.opj index 1c28e3cb9..a90de10a6 100644 --- a/resources/Rust.opj +++ b/resources/Rust.opj @@ -53667,6 +53667,57 @@ "BaseHookName": "OnClanLogoChanged", "HookCategory": "Clan" } + }, + { + "Type": "Simple", + "Hook": { + "InjectionIndex": 48, + "ReturnBehavior": 0, + "ArgumentBehavior": 4, + "ArgumentString": "l0", + "HookTypeName": "Simple", + "Name": "OnPlayerVanish", + "HookName": "OnPlayerVanish", + "AssemblyName": "Assembly-CSharp.dll", + "TypeName": "ConVar.Debugging", + "Flagged": false, + "Signature": { + "Exposure": 2, + "Name": "invis", + "ReturnType": "System.Void", + "Parameters": [ + "ConsoleSystem/Arg" + ] + }, + "MSILHash": "IzdN5chchqSU/SzhkwmVml/q0gPr+p3c6D+Ldw1JS3U=", + "HookCategory": "Player" + } + }, + { + "Type": "Simple", + "Hook": { + "InjectionIndex": 92, + "ReturnBehavior": 0, + "ArgumentBehavior": 4, + "ArgumentString": "l0", + "HookTypeName": "Simple", + "Name": "OnPlayerUnvanish", + "HookName": "OnPlayerUnvanish", + "AssemblyName": "Assembly-CSharp.dll", + "TypeName": "ConVar.Debugging", + "Flagged": false, + "Signature": { + "Exposure": 2, + "Name": "invis", + "ReturnType": "System.Void", + "Parameters": [ + "ConsoleSystem/Arg" + ] + }, + "MSILHash": "IzdN5chchqSU/SzhkwmVml/q0gPr+p3c6D+Ldw1JS3U=", + "BaseHookName": "OnPlayerVanish", + "HookCategory": "Player" + } } ], "Modifiers": [