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; }
/// <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; }
/// <summary> /// Warp this ped into the driver seat of a vehicle /// </summary> public bool WarpIntoVehicle(SharedVehicle vehicle) { return(MtaShared.WarpPedIntoVehicle(element, vehicle.MTAElement, 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)); }