-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FrankensteinTable #538
FrankensteinTable #538
Conversation
Adding two hooks to allow cancellation of wake or sleep for FrankensteinPet.
Is there a reason you're using Modify hooks instead of simple hooks? And please make sure you're adding the hooks in the right place. You're currently adding them to the Rust.Clans.Local dll not Assembly-CSharp |
Made all the necessary changes. |
Manually merged with changes, thanks! - OnFrankensteinPetWake(FrankensteinTable, BasePlayer)
- OnFrankensteinPetSleep(FrankensteinPet, FrankensteinTable, BasePlayer) |
Can the arguments be swapped? So it would be OnFrankensteinPetSleep(FrankensteinTable, BasePlayer, FrankensteinPet). |
Generally speaking the subject described in the hook should come first, in this case that's the FrankensteinPet |
Adding two hooks to enable tracking and, if necessary, cancellation of wake or sleep actions for FrankensteinPet.
In vanilla, these actions are not restricted, even within another player's building privilege area.
1. The OnWakeFrankenstein hook allows tracking the wake of FrankensteinPet and, if necessary, canceling the awakening.
Code before:
Code after:
2. The OnSleepFrankenstein hook allows tracking the sleep of FrankensteinPet and, if necessary, cancelling the sleep action.
Code before:
Code after: