From 47580b448ab882b25d6d78f1a74134ae11f33496 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 | 171 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 171 insertions(+) diff --git a/resources/Rust.opj b/resources/Rust.opj index e778c3536..5a7493ace 100644 --- a/resources/Rust.opj +++ b/resources/Rust.opj @@ -19779,6 +19779,32 @@ "HookCategory": "Player" } }, + { + "Type": "Simple", + "Hook": { + "InjectionIndex": 8, + "ReturnBehavior": 1, + "ArgumentBehavior": 4, + "ArgumentString": "this,a0.read.Vector3()", + "HookTypeName": "Simple", + "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": "Simple", "Hook": { @@ -20460,6 +20486,56 @@ "MSILHash": "+/sLy4QRladVS1YSd5e4/fjVg5VG+tMbVPnhNw1FdiY=", "HookCategory": "Entity" } + }, + { + "Type": "Modify", + "Hook": { + "InjectionIndex": 19, + "RemoveCount": 0, + "Instructions": [ + { + "OpCode": "ldarg_1", + "OpType": "None" + }, + { + "OpCode": "ldfld", + "OpType": "Field", + "Operand": "Assembly-CSharp|BaseEntity/RPCMessage|read" + }, + { + "OpCode": "ldc_i4", + "OpType": "Int32", + "Operand": "13" + }, + { + "OpCode": "conv_i8", + "OpType": "None" + }, + { + "OpCode": "callvirt", + "OpType": "Method", + "Operand": "mscorlib|System.IO.Stream|set_Position" + } + ], + "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 +23153,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 +49631,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",