Exemple #1
0
 public static void setHandling(SharedVehicle veh, CustomHandling h)
 {
     veh.Handling.Mass                         = h.Mass;
     veh.Handling.TurnMass                     = h.TurnMass;
     veh.Handling.DragCoefficient              = h.DragCoefficient;
     veh.Handling.CenterOfMass                 = h.CenterOfMass;
     veh.Handling.PercentSubmerged             = h.PercentSubmerged;
     veh.Handling.TractionMultiplier           = h.TractionMultiplier;
     veh.Handling.TractionLoss                 = h.TractionLoss;
     veh.Handling.TractionBias                 = h.TractionBias;
     veh.Handling.NumberOfGears                = h.NumberOfGears;
     veh.Handling.MaxVelocity                  = h.MaxVelocity;
     veh.Handling.EngineAcceleration           = h.EngineAcceleration;
     veh.Handling.EngineInertia                = h.EngineInertia;
     veh.Handling.DriveType                    = h.DriveType;
     veh.Handling.EngineType                   = h.EngineType;
     veh.Handling.BrakeDeceleration            = h.BrakeDeceleration;
     veh.Handling.BrakeBias                    = h.BrakeBias;
     veh.Handling.SteeringLock                 = h.SteeringLock;
     veh.Handling.SuspensionForceLevel         = h.SuspensionForceLevel;
     veh.Handling.SuspensionDamping            = h.SuspensionDamping;
     veh.Handling.SuspensionHighSpeedDamping   = h.SuspensionHighSpeedDamping;
     veh.Handling.SuspensionUpperLimit         = h.SuspensionUpperLimit;
     veh.Handling.SuspensionLowerLimit         = h.SuspensionLowerLimit;
     veh.Handling.SuspensionFrontRearBias      = h.SuspensionFrontRearBias;
     veh.Handling.SuspensionAntiDiveMultiplier = h.SuspensionAntiDiveMultiplier;
     veh.Handling.SeatOffsetDistance           = h.SeatOffsetDistance;
     veh.Handling.CollisionDamageMultiplier    = h.CollisionDamageMultiplier;
 }
Exemple #2
0
 /// <summary>
 /// Create a sirens set attached to a vehicle
 /// </summary>
 public Sirens(SharedVehicle vehicle) : base(vehicle)
 {
     type          = SirenType.dual;
     checkLOS      = true;
     useRandomiser = false;
     initialized   = false;
     count         = 1;
 }
Exemple #3
0
 /// <summary>
 /// Warp this ped into the driver seat of a vehicle
 /// </summary>
 public bool WarpIntoVehicle(SharedVehicle vehicle)
 {
     return(MtaShared.WarpPedIntoVehicle(element, vehicle.MTAElement, 0));
 }
Exemple #4
0
 /// <summary>
 /// Warp this ped into a vehicle, specifying a seat
 /// </summary>
 public bool WarpIntoVehicle(SharedVehicle vehicle, Seat seat)
 {
     return(MtaShared.WarpPedIntoVehicle(element, vehicle.MTAElement, (int)seat));
 }