Skip to content

Commit 5d0e6ca

Browse files
committed
Switch OnStructureDemolish hooks to use patchers bool in arg string
1 parent 51e15d5 commit 5d0e6ca

1 file changed

Lines changed: 2 additions & 72 deletions

File tree

resources/Rust.opj

Lines changed: 2 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@
686686
"InjectionIndex": 10,
687687
"ReturnBehavior": 1,
688688
"ArgumentBehavior": 4,
689-
"ArgumentString": "this, a0.player, null",
689+
"ArgumentString": "this, a0.player, true",
690690
"HookTypeName": "Simple",
691691
"Name": "OnStructureDemolish [immediate = true]",
692692
"HookName": "OnStructureDemolish",
@@ -1995,7 +1995,7 @@
19951995
"InjectionIndex": 11,
19961996
"ReturnBehavior": 1,
19971997
"ArgumentBehavior": 4,
1998-
"ArgumentString": "this, a0.player, null",
1998+
"ArgumentString": "this, a0.player, false",
19991999
"HookTypeName": "Simple",
20002000
"Name": "OnStructureDemolish [immediate = false]",
20012001
"HookName": "OnStructureDemolish",
@@ -4977,76 +4977,6 @@
49774977
"HookCategory": "_Patches"
49784978
}
49794979
},
4980-
{
4981-
"Type": "Modify",
4982-
"Hook": {
4983-
"InjectionIndex": 15,
4984-
"RemoveCount": 1,
4985-
"Instructions": [
4986-
{
4987-
"OpCode": "ldc_i4_0",
4988-
"OpType": "None"
4989-
},
4990-
{
4991-
"OpCode": "box",
4992-
"OpType": "Type",
4993-
"Operand": "mscorlib|System.Boolean"
4994-
}
4995-
],
4996-
"HookTypeName": "Modify",
4997-
"Name": "OnStructureDemolish [false, patch]",
4998-
"HookName": "OnStructureDemolish [false, patch]",
4999-
"AssemblyName": "Assembly-CSharp.dll",
5000-
"TypeName": "StabilityEntity",
5001-
"Flagged": false,
5002-
"Signature": {
5003-
"Exposure": 0,
5004-
"Name": "DoDemolish",
5005-
"ReturnType": "System.Void",
5006-
"Parameters": [
5007-
"BaseEntity/RPCMessage"
5008-
]
5009-
},
5010-
"MSILHash": "tZXpEHCmtScT1FBIYwAcysBagsi7z8uIVr1IS9lPunc=",
5011-
"BaseHookName": "OnStructureDemolish [immediate = false]",
5012-
"HookCategory": "_Patches"
5013-
}
5014-
},
5015-
{
5016-
"Type": "Modify",
5017-
"Hook": {
5018-
"InjectionIndex": 14,
5019-
"RemoveCount": 1,
5020-
"Instructions": [
5021-
{
5022-
"OpCode": "ldc_i4_1",
5023-
"OpType": "None"
5024-
},
5025-
{
5026-
"OpCode": "box",
5027-
"OpType": "Type",
5028-
"Operand": "mscorlib|System.Boolean"
5029-
}
5030-
],
5031-
"HookTypeName": "Modify",
5032-
"Name": "OnStructureDemolish [true, patch]",
5033-
"HookName": "OnStructureDemolish [true, patch]",
5034-
"AssemblyName": "Assembly-CSharp.dll",
5035-
"TypeName": "StabilityEntity",
5036-
"Flagged": false,
5037-
"Signature": {
5038-
"Exposure": 0,
5039-
"Name": "DoImmediateDemolish",
5040-
"ReturnType": "System.Void",
5041-
"Parameters": [
5042-
"BaseEntity/RPCMessage"
5043-
]
5044-
},
5045-
"MSILHash": "O/1gpHnA2EYRF53Tw7g59IWiue7rIIySuls/wgGJpsY=",
5046-
"BaseHookName": "OnStructureDemolish [immediate = true]",
5047-
"HookCategory": "_Patches"
5048-
}
5049-
},
50504980
{
50514981
"Type": "Simple",
50524982
"Hook": {

0 commit comments

Comments
 (0)