Exemple #1
0
 public override void Accepted(CharacterEntity character, Seat seat)
 {
     base.Accepted(character, seat);
     // TODO: Track players entering/exiting view!
     FlagEntityPacketOut fepo = new FlagEntityPacketOut(this, EntityFlag.HELO_TILT_MOD, TiltMod);
     TheRegion.SendToVisible(lPos, fepo);
 }
Exemple #2
0
 public VehicleEntity(string vehicle, Region tregion)
     : base("vehicles/" + vehicle + "_base", tregion)
 {
     vehName = vehicle;
     SetMass(1500);
     DriverSeat = new Seat(this, Location.UnitZ * 2);
     Seats = new List<Seat>();
     Seats.Add(DriverSeat);
 }
Exemple #3
0
 public override void Accepted(CharacterEntity character, Seat seat)
 {
     base.Accepted(character, seat);
     character.Desolidify();
 }
Exemple #4
0
 public override void SeatKicked(CharacterEntity character, Seat seat)
 {
     base.SeatKicked(character, seat);
     character.Solidify();
 }
Exemple #5
0
 public override void SeatKicked(CharacterEntity character, Seat seat)
 {
     base.SeatKicked(character, seat);
     character.Solidify();
 }
Exemple #6
0
 public override void Accepted(CharacterEntity character, Seat seat)
 {
     base.Accepted(character, seat);
     character.Desolidify();
 }
Exemple #7
0
        public virtual void SeatKicked(CharacterEntity character, Seat seat)
        {
            LoseControlOfVehiclePacketOut gcovpo = new LoseControlOfVehiclePacketOut(character, this);

            TheRegion.SendToVisible(lPos, gcovpo);
        }
Exemple #8
0
        public virtual void Accepted(CharacterEntity character, Seat seat)
        {
            GainControlOfVehiclePacketOut gcovpo = new GainControlOfVehiclePacketOut(character, this);

            TheRegion.SendToVisible(lPos, gcovpo);
        }
Exemple #9
0
 public virtual void Accepted(CharacterEntity character, Seat seat)
 {
     GainControlOfVehiclePacketOut gcovpo = new GainControlOfVehiclePacketOut(character, this);
     TheRegion.SendToVisible(lPos, gcovpo);
     // TODO: handle players coming into/out-of view of the vehicle + driver!
 }
Exemple #10
0
 public virtual void SeatKicked(CharacterEntity character, Seat seat)
 {
     LoseControlOfVehiclePacketOut gcovpo = new LoseControlOfVehiclePacketOut(character, this);
     TheRegion.SendToVisible(lPos, gcovpo);
 }