Skip to content

Commit

Permalink
Add CanLootEntity hook to WorldItems
Browse files Browse the repository at this point in the history
- CanLootEntity(BasePlayer, WorldItem)
  • Loading branch information
MrBlue committed Oct 2, 2024
1 parent 5a47d0f commit 9105692
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions resources/Rust.opj
Original file line number Diff line number Diff line change
Expand Up @@ -21229,6 +21229,32 @@
"BaseHookName": "OnVendingShopOpen [TravellingVendor]",
"HookCategory": "Vending"
}
},
{
"Type": "Simple",
"Hook": {
"InjectionIndex": 37,
"ReturnBehavior": 1,
"ArgumentBehavior": 4,
"ArgumentString": "L1, this",
"HookTypeName": "Simple",
"Name": "CanLootEntity",
"HookName": "CanLootEntity",
"HookDescription": "Called when a player tries to loot a WorldItem",
"AssemblyName": "Assembly-CSharp.dll",
"TypeName": "WorldItem",
"Flagged": false,
"Signature": {
"Exposure": 0,
"Name": "RPC_OpenLoot",
"ReturnType": "System.Void",
"Parameters": [
"BaseEntity/RPCMessage"
]
},
"MSILHash": "xtzIj9GyuX8f+qgh462mLQoAM0ti3Sy8IFUWTiBntbw=",
"HookCategory": "Entity"
}
}
],
"Modifiers": [
Expand Down

0 comments on commit 9105692

Please sign in to comment.