Skip to content

Commit bb2effd

Browse files
authored
Update Naval Hooks
Add: CanSmallEngineReverse - Control who can reverse engine. CanSailRotate - Control who can rotate sail CanSailBeRaised Control who can raise sail CanSailBeLowered - Control who can lower sail Changed: CanSmallEngineTurnOn - Move back a method to capture player CanSmallEngineTurnOff - Move back a method to capture player OnSpawnBoatGroup - Index so it already has the RHIBs spanwed so loot and settings can be changed on them
1 parent 231da2f commit bb2effd

File tree

1 file changed

+113
-9
lines changed

1 file changed

+113
-9
lines changed

resources/Rust.opj

Lines changed: 113 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9005,13 +9005,113 @@
90059005
"HookCategory": "Vehicle"
90069006
}
90079007
},
9008+
{
9009+
"Type": "Simple",
9010+
"Hook": {
9011+
"InjectionIndex": 11,
9012+
"ReturnBehavior": 1,
9013+
"ArgumentBehavior": 4,
9014+
"ArgumentString": "this, a0.player",
9015+
"HookTypeName": "Simple",
9016+
"Name": "CanSmallEngineReverse",
9017+
"HookName": "CanSmallEngineReverse",
9018+
"AssemblyName": "Assembly-CSharp.dll",
9019+
"TypeName": "SmallEngine",
9020+
"Flagged": false,
9021+
"Signature": {
9022+
"Exposure": 2,
9023+
"Name": "SV_ToggleReverse",
9024+
"ReturnType": "System.Void",
9025+
"Parameters": [
9026+
"BaseEntity/RPCMessage"
9027+
]
9028+
},
9029+
"MSILHash": "QGZvAOY5cLpuPLA3/KvSATwCQF5JlGm7iBLL0B67eO8=",
9030+
"HookCategory": "Naval"
9031+
}
9032+
},
9033+
{
9034+
"Type": "Simple",
9035+
"Hook": {
9036+
"InjectionIndex": 20,
9037+
"ReturnBehavior": 1,
9038+
"ArgumentBehavior": 4,
9039+
"ArgumentString": "this, a0",
9040+
"HookTypeName": "Simple",
9041+
"Name": "CanSailRotate",
9042+
"HookName": "CanSailRotate",
9043+
"AssemblyName": "Assembly-CSharp.dll",
9044+
"TypeName": "Sail",
9045+
"Flagged": false,
9046+
"Signature": {
9047+
"Exposure": 2,
9048+
"Name": "CanRotate",
9049+
"ReturnType": "System.Booleeen",
9050+
"Parameters": [
9051+
"BasePlayer"
9052+
]
9053+
},
9054+
"MSILHash": "zBpSRyG42djsatT1Iwxb1/7aKdwuNyHA59/+WI9fVxo=",
9055+
"HookCategory": "Naval"
9056+
}
9057+
},
90089058
{
90099059
"Type": "Simple",
90109060
"Hook": {
90119061
"InjectionIndex": 0,
90129062
"ReturnBehavior": 1,
90139063
"ArgumentBehavior": 4,
9014-
"ArgumentString": "this, a0, a1, a2, a3",
9064+
"ArgumentString": "this, a0",
9065+
"HookTypeName": "Simple",
9066+
"Name": "CanSailBeRaised",
9067+
"HookName": "CanSailBeRaised",
9068+
"AssemblyName": "Assembly-CSharp.dll",
9069+
"TypeName": "Sail",
9070+
"Flagged": false,
9071+
"Signature": {
9072+
"Exposure": 2,
9073+
"Name": "CanBeRaised",
9074+
"ReturnType": "System.Booleeen",
9075+
"Parameters": [
9076+
"BasePlayer"
9077+
]
9078+
},
9079+
"MSILHash": "xwD1LNP47Kt+pQksxphg/j25cntrOBym0yMrzxYqyQs=",
9080+
"HookCategory": "Naval"
9081+
}
9082+
},
9083+
{
9084+
"Type": "Simple",
9085+
"Hook": {
9086+
"InjectionIndex": 0,
9087+
"ReturnBehavior": 1,
9088+
"ArgumentBehavior": 4,
9089+
"ArgumentString": "this, a0",
9090+
"HookTypeName": "Simple",
9091+
"Name": "CanSailBeLowered",
9092+
"HookName": "CanSailBeLowered",
9093+
"AssemblyName": "Assembly-CSharp.dll",
9094+
"TypeName": "Sail",
9095+
"Flagged": false,
9096+
"Signature": {
9097+
"Exposure": 2,
9098+
"Name": "CanBeLowered",
9099+
"ReturnType": "System.Booleeen",
9100+
"Parameters": [
9101+
"BasePlayer"
9102+
]
9103+
},
9104+
"MSILHash": "SO+jqx+chzsg4o/uRLHw9A7GtEUe/nsf61GWbDxNyAo=",
9105+
"HookCategory": "Naval"
9106+
}
9107+
},
9108+
{
9109+
"Type": "Simple",
9110+
"Hook": {
9111+
"InjectionIndex": 46,
9112+
"ReturnBehavior": 1,
9113+
"ArgumentBehavior": 4,
9114+
"ArgumentString": "this, a0",
90159115
"HookTypeName": "Simple",
90169116
"Name": "OnSpawnBoatGroup",
90179117
"HookName": "OnSpawnBoatGroup",
@@ -9084,10 +9184,10 @@
90849184
{
90859185
"Type": "Simple",
90869186
"Hook": {
9087-
"InjectionIndex": 0,
9187+
"InjectionIndex": 13,
90889188
"ReturnBehavior": 1,
90899189
"ArgumentBehavior": 4,
9090-
"ArgumentString": "this",
9190+
"ArgumentString": "this, a0.player",
90919191
"HookTypeName": "Simple",
90929192
"Name": "CanSmallEngineTurnOn",
90939193
"HookName": "CanSmallEngineTurnOn",
@@ -9098,19 +9198,21 @@
90989198
"Exposure": 2,
90999199
"Name": "TurnOn",
91009200
"ReturnType": "System.Void",
9101-
"Parameters": []
9201+
"Parameters": [
9202+
"BaseEntity/RPCMessage"
9203+
]
91029204
},
9103-
"MSILHash": "Tfh2dRnPJnkfAwMq/1vTWP1ky70rYp0f2V8meE4g8Qw=",
9205+
"MSILHash": "CTLapTt4yvOy6R8DStsAc4rXfwetHy+B5KwdXpyupVU=",
91049206
"HookCategory": "Naval"
91059207
}
91069208
},
91079209
{
91089210
"Type": "Simple",
91099211
"Hook": {
9110-
"InjectionIndex": 0,
9212+
"InjectionIndex": 7,
91119213
"ReturnBehavior": 1,
91129214
"ArgumentBehavior": 4,
9113-
"ArgumentString": "this",
9215+
"ArgumentString": "this,a0.player",
91149216
"HookTypeName": "Simple",
91159217
"Name": "CanSmallEngineTurnOff",
91169218
"HookName": "CanSmallEngineTurnOff",
@@ -9121,9 +9223,11 @@
91219223
"Exposure": 2,
91229224
"Name": "TurnOff",
91239225
"ReturnType": "System.Void",
9124-
"Parameters": []
9226+
"Parameters": [
9227+
"BaseEntity/RPCMessage"
9228+
]
91259229
},
9126-
"MSILHash": "f4XZl6f/N8brHec7xHpf2NkrCT62VAEg1+AGo1UOZ6M=",
9230+
"MSILHash": "asozovzIMkVWr65N2o7PhmRDVKPB8XdfSBsqhMTdJjA=",
91279231
"HookCategory": "Naval"
91289232
}
91299233
},

0 commit comments

Comments
 (0)