From 035db52397b634c3b5b3f54bd46a4158540c5bb9 Mon Sep 17 00:00:00 2001 From: bmgjet <50484759+bmgjet@users.noreply.github.com> Date: Tue, 26 Mar 2024 19:40:24 +1300 Subject: [PATCH] Add OnMetalDetectorFlagRequest and exposure changes - OnMetalDetectorFlagRequest(BaseMetalDetector, Vector3) Exposures BaseMetalDetector::nearestSource LockOnLauncher::lockRange LockOnLauncher::lockConeDot LockOnLauncher::timeToLock LockOnLauncher::timeToLoseLock --- resources/Rust.opj | 196 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 196 insertions(+) diff --git a/resources/Rust.opj b/resources/Rust.opj index e778c3536..b3f16680b 100644 --- a/resources/Rust.opj +++ b/resources/Rust.opj @@ -20460,6 +20460,107 @@ "MSILHash": "+/sLy4QRladVS1YSd5e4/fjVg5VG+tMbVPnhNw1FdiY=", "HookCategory": "Entity" } + }, + { + "Type": "Modify", + "Hook": { + "InjectionIndex": 8, + "RemoveCount": 0, + "Instructions": [ + { + "OpCode": "ldarg_1", + "OpType": "None" + }, + { + "OpCode": "ldfld", + "OpType": "Field", + "Operand": "Assembly-CSharp|BaseEntity/RPCMessage|read" + }, + { + "OpCode": "callvirt", + "OpType": "Method", + "Operand": "Facepunch.Network|Network.NetRead|Vector3" + }, + { + "OpCode": "stloc_1", + "OpType": "None" + }, + { + "OpCode": "ldstr", + "OpType": "String", + "Operand": "OnMetalDetectorFlagRequest" + }, + { + "OpCode": "ldarg_0", + "OpType": "None" + }, + { + "OpCode": "ldloc_1", + "OpType": "None" + }, + { + "OpCode": "ldloc_0", + "OpType": "None" + }, + { + "OpCode": "call", + "OpType": "Method", + "Operand": "Oxide.Core|Oxide.Core.Interface|CallHook(System.String,System.Object,System.Object,System.Object)" + }, + { + "OpCode": "brfalse_s", + "OpType": "Instruction", + "Operand": 8 + }, + { + "OpCode": "ret", + "OpType": "None" + } + ], + "HookTypeName": "Modify", + "Name": "OnMetalDetectorFlagRequest", + "HookName": "OnMetalDetectorFlagRequest", + "HookDescription": "", + "AssemblyName": "Assembly-CSharp.dll", + "TypeName": "BaseMetalDetector", + "Flagged": false, + "Signature": { + "Exposure": 0, + "Name": "RPC_RequestFlag", + "ReturnType": "System.Void", + "Parameters": [ + "BaseEntity/RPCMessage" + ] + }, + "MSILHash": "eSPtIv/vd+ukDV5VnEjrDXVh+IKNBoMl08nuFWzAE+A=", + "HookCategory": "Player" + } + }, + { + "Type": "Modify", + "Hook": { + "InjectionIndex": 27, + "RemoveCount": 4, + "Instructions": [], + "HookTypeName": "Modify", + "Name": "OnMetalDetectorFlagRequest [patch]", + "HookName": "OnMetalDetectorFlagRequest [patch]", + "HookDescription": "", + "AssemblyName": "Assembly-CSharp.dll", + "TypeName": "BaseMetalDetector", + "Flagged": false, + "Signature": { + "Exposure": 0, + "Name": "RPC_RequestFlag", + "ReturnType": "System.Void", + "Parameters": [ + "BaseEntity/RPCMessage" + ] + }, + "MSILHash": "eSPtIv/vd+ukDV5VnEjrDXVh+IKNBoMl08nuFWzAE+A=", + "BaseHookName": "OnMetalDetectorFlagRequest", + "HookCategory": "Player" + } } ], "Modifiers": [ @@ -23077,6 +23178,25 @@ }, "MSILHash": "" }, + { + "Name": "BaseMetalDetector::nearestSource", + "AssemblyName": "Assembly-CSharp.dll", + "TypeName": "BaseMetalDetector", + "Type": 0, + "TargetExposure": [ + 2 + ], + "Flagged": false, + "Signature": { + "Exposure": [ + 0 + ], + "Name": "nearestSource", + "FullTypeName": "IMetalDetectable BaseMetalDetector::nearestSource", + "Parameters": [] + }, + "MSILHash": "" + }, { "Name": "SamSite::lockOnTime", "AssemblyName": "Assembly-CSharp.dll", @@ -49536,6 +49656,82 @@ }, "MSILHash": "" }, + { + "Name": "LockOnLauncher::lockRange", + "AssemblyName": "Assembly-CSharp.dll", + "TypeName": "LockOnLauncher", + "Type": 0, + "TargetExposure": [ + 2 + ], + "Flagged": false, + "Signature": { + "Exposure": [ + 0 + ], + "Name": "lockRange", + "FullTypeName": "System.Single LockOnLauncher::lockRange", + "Parameters": [] + }, + "MSILHash": "" + }, + { + "Name": "LockOnLauncher::lockConeDot", + "AssemblyName": "Assembly-CSharp.dll", + "TypeName": "LockOnLauncher", + "Type": 0, + "TargetExposure": [ + 2 + ], + "Flagged": false, + "Signature": { + "Exposure": [ + 0 + ], + "Name": "lockConeDot", + "FullTypeName": "System.Single LockOnLauncher::lockConeDot", + "Parameters": [] + }, + "MSILHash": "" + }, + { + "Name": "LockOnLauncher::timeToLock", + "AssemblyName": "Assembly-CSharp.dll", + "TypeName": "LockOnLauncher", + "Type": 0, + "TargetExposure": [ + 2 + ], + "Flagged": false, + "Signature": { + "Exposure": [ + 0 + ], + "Name": "timeToLock", + "FullTypeName": "System.Single LockOnLauncher::timeToLock", + "Parameters": [] + }, + "MSILHash": "" + }, + { + "Name": "LockOnLauncher::timeToLoseLock", + "AssemblyName": "Assembly-CSharp.dll", + "TypeName": "LockOnLauncher", + "Type": 0, + "TargetExposure": [ + 2 + ], + "Flagged": false, + "Signature": { + "Exposure": [ + 0 + ], + "Name": "timeToLoseLock", + "FullTypeName": "System.Single LockOnLauncher::timeToLoseLock", + "Parameters": [] + }, + "MSILHash": "" + }, { "Name": "IOEntity::_processQueues", "AssemblyName": "Assembly-CSharp.dll",