public override void OnKilled(HitInfo info) { if (this.dying) { return; } this.dying = true; this.repair.enabled = false; MotorRowboat motorRowboat = this; base.Invoke(new Action(motorRowboat.DismountAllPlayers), 10f); base.Invoke(new Action(this.ActualDeath), vehicle.boat_corpse_seconds); }
public RustPlayerPushingBoatEvent( RustPlayer player, MotorRowboat motorRowboat) : base(player) { MotorRowboat = motorRowboat; }
private void OnEntitySpawned(MotorRowboat vehicle) => HandleSpawn(vehicle);
private object?CanPushBoat(BasePlayer player, MotorRowboat boat) { var @event = new RustPlayerPushingBoatEvent(new RustPlayer(player), boat); return(EmitCancellableReturnsObject(@event)); }