Skip to content

Commit a3d5d9a

Browse files
k1lly0uads102003
authored andcommitted
Add OnCorpsePopulate hook for Rust.Ai.Gen2 (#569)
1 parent 71b2ee2 commit a3d5d9a

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

resources/Rust.opj

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22523,6 +22523,58 @@
2252322523
"BaseHookName": "CanBeTargeted [GunTrap] [patch]",
2252422524
"HookCategory": "Player"
2252522525
}
22526+
},
22527+
{
22528+
"Type": "Simple",
22529+
"Hook": {
22530+
"InjectionIndex": 51,
22531+
"ReturnBehavior": 4,
22532+
"ArgumentBehavior": 4,
22533+
"ArgumentString": "this.Owner, l1",
22534+
"HookTypeName": "Simple",
22535+
"Name": "OnCorpsePopulate [Rust.Ai.Gen2.State_Dead]",
22536+
"HookName": "OnCorpsePopulate",
22537+
"AssemblyName": "Assembly-CSharp.dll",
22538+
"TypeName": "Rust.Ai.Gen2.State_Dead",
22539+
"Flagged": false,
22540+
"Signature": {
22541+
"Exposure": 0,
22542+
"Name": "StartRagdoll",
22543+
"ReturnType": "System.Void",
22544+
"Parameters": []
22545+
},
22546+
"MSILHash": "0DMd2CBY5HJKEMuuxTeguhqDr6mxoz2jwSeBk5v8SmU=",
22547+
"HookCategory": "NPC"
22548+
}
22549+
},
22550+
{
22551+
"Type": "Modify",
22552+
"Hook": {
22553+
"InjectionIndex": 57,
22554+
"RemoveCount": 2,
22555+
"Instructions": [
22556+
{
22557+
"OpCode": "bne_un_s",
22558+
"OpType": "Instruction",
22559+
"Operand": 121
22560+
}
22561+
],
22562+
"HookTypeName": "Modify",
22563+
"Name": "OnCorpsePopulate [Rust.Ai.Gen2.State_Dead] [Patch]",
22564+
"HookName": "OnCorpsePopulate",
22565+
"AssemblyName": "Assembly-CSharp.dll",
22566+
"TypeName": "Rust.Ai.Gen2.State_Dead",
22567+
"Flagged": false,
22568+
"Signature": {
22569+
"Exposure": 0,
22570+
"Name": "StartRagdoll",
22571+
"ReturnType": "System.Void",
22572+
"Parameters": []
22573+
},
22574+
"MSILHash": "0DMd2CBY5HJKEMuuxTeguhqDr6mxoz2jwSeBk5v8SmU=",
22575+
"BaseHookName": "OnCorpsePopulate [Rust.Ai.Gen2.State_Dead]",
22576+
"HookCategory": "NPC"
22577+
}
2252622578
}
2252722579
],
2252822580
"Modifiers": [

0 commit comments

Comments
 (0)