private void OnPlayerJump(On.Celeste.Player.orig_Jump orig, Celeste.Player self, bool particles, bool playSfx) { if (Settings.Enabled && self.InControl) { ApplyRules(self.Scene, "Jump"); } orig(self, particles, playSfx); }
public static void Jump(On.Celeste.Player.orig_Jump orig_Jump, Player self, bool particles = true, bool playSfx = true) { // Console.WriteLine("PlayerJump"); if (!Settings.Enabled) { orig_Jump(self, particles, playSfx); } }
private static void Player_Jump(On.Celeste.Player.orig_Jump orig, Player self, bool particles, bool playSfx) { Logger.Log("ExampleMod", "Just before Player.Jump()"); // We can call the original method at any point in the hook. orig(self, particles, playSfx); Logger.Log("ExampleMod", "Just after Player.Jump()"); }
private void modJump(On.Celeste.Player.orig_Jump orig, Celeste.Player self, bool particles, bool playSfx) { orig(self, particles, playSfx); forceUltra(self); }