DayZ 1.26
DayZ Explorer by KGB
|
Base native class for all motorized wheeled vehicles. Подробнее...
Защищенные члены | |
override event | GetOwnerStateType () |
override event | GetMoveType () |
proto native float | GetThrottle () |
Returns the actual throttle value in range <0, 1>. | |
proto native void | SetThrottle (float value) |
Sets the future throttle value. | |
proto native float | GetSteering () |
Returns the actual steering value in range <-1, 1>. | |
proto native void | SetSteering (float value) |
Sets the future steering value. | |
proto native int | GetGearCount () |
Returns the number of gears. | |
proto native int | GetNeutralGear () |
Returns the index of the neutral gear. | |
proto native int | GetGear () |
Returns the index of the future gear, -1 if there is no engine. | |
proto native int | GetCurrentGear () |
Returns the index of the current gear, -1 if there is no engine. | |
proto native int | GetClutch () |
Returns the value of how much the clutch is disengaged. | |
proto native void | ShiftUp () |
Shifts the future gear up, triggering gearbox simulation. | |
proto native void | ShiftTo (int gear) |
Shifts the future gear to selected gear, triggering gearbox simulation. | |
proto native void | ShiftDown () |
Shifts the future gear down, triggering gearbox simulation. | |
proto native bool | HasEngine () |
Returns if there is an engine. | |
proto native float | EngineGetRPMMin () |
Returns engine's min operating rpm. | |
proto native float | EngineGetRPMIdle () |
Returns engine's idle rpm before engine stalls. | |
proto native float | EngineGetRPMMax () |
Returns engine's max rpm before engine blows up. | |
proto native float | EngineGetRPMRedline () |
Returns engine's maximal working rpm without damaging the engine. | |
proto native float | EngineGetRPM () |
Returns engine's rpm value. | |
proto native bool | EngineIsOn () |
Returns true when engine is running, false otherwise. | |
proto native void | EngineStart () |
Starts the engine. | |
proto native void | EngineStop () |
Stops the engine. | |
proto native vector | PropellerGetPosition () |
Returns the propeller position in local space. | |
proto native float | PropellerGetAngularVelocity () |
Returns the angular velocity of the propeller. | |
proto native float | GetFluidCapacity (BoatFluid fluid) |
proto native float | GetFluidFraction (BoatFluid fluid) |
proto native void | Leak (BoatFluid fluid, float amount) |
Removes from the specified fluid the specified amount. | |
proto native void | LeakAll (BoatFluid fluid) |
Removes all the specified fluid from vehicle. | |
proto native void | Fill (BoatFluid fluid, float amount) |
Adds to the specified fluid the specified amount. | |
void | OnInput (float dt) |
bool | OnBeforeEngineStart () |
void | OnEngineStart () |
void | OnEngineStop () |
void | OnGearChanged (int newGear, int oldGear) |
void | OnFluidChanged (BoatFluid fluid, float newValue, float oldValue) |
float | OnSound (BoatSoundCtrl ctrl, float oldValue) |
Base native class for all motorized wheeled vehicles.
Base native class for helicopter.
|
inlineprivate |
Перекрестные ссылки ARGB(), Debug::DrawBox() и Shape.
Returns engine's maximal working rpm without damaging the engine.
Returns engine's maximal working rpm without damaging the engine.
Adds to the specified fluid the specified amount.
Adds to the specified fluid the specified amount.
|
private |
Returns gearbox mode. This is useful when car has automatic gearbox.
|
private |
Returns gearbox type. See CarGearboxType enum for more info.
|
private |
DEPRECATED, left for backwards compatibility, the methods of this class are now directly accessible on Car itself.
Returns the index of the current gear, -1 if there is no engine.
Returns tank capacity for the specified vehicle's fluid.
fluid | the specified fluid type |
Returns tank capacity for the specified vehicle's fluid.
fluid | the specified fluid type |
Returns fraction value (in range <0, 1>) of the current state of the specified vehicle's fluid.
[in] | fluid | the specified fluid type |
Returns fraction value (in range <0, 1>) of the current state of the specified vehicle's fluid.
[in] | fluid | the specified fluid type |
Returns the index of the future gear, -1 if there is no engine.
Перекрестные ссылки BoatOwnerState.
|
inlineprivate |
Returns the current speed of the vehicle in km/h. Value is absolute.
Перекрестные ссылки Math::AbsFloat().
Returns the current thrust gentle modifier value in range <0, 1>.
Returns the current thrust turbo modifier value in range <0, 1>.
|
inlineprivate |
Используется в EntityAI::DebugFreeAreaAtDoor() и EntityAI::IsAreaAtDoorFree().
Removes from the specified fluid the specified amount.
Removes from the specified fluid the specified amount.
Removes all the specified fluid from vehicle.
|
inlineprotected |
Is called every time the game wants to start the engine.
|
inlineprivate |
Is called every time the game wants to start the engine.
Is called every time when vehicle collides with other object.
[in] | zoneName | configured vehicle's zone that was hit |
[in] | localPos | position where the vehicle was hit in vehicle's space |
[in] | other | object with which the vehicle is colliding |
[in] | data | contact properties |
|
inlineprotected |
Is called every time the engine starts.
|
inlineprivate |
Is called every time the engine starts.
|
inlineprotected |
Is called every time the engine stops.
|
inlineprivate |
Is called every time the engine stops.
Is called every time when the specified vehicle's fluid level changes. This callback is called on owner only.
[in] | fluid | fluid identifier, |
[in] | newValue | new fluid level |
[in] | oldValue | previous fluid level before change |
Is called every time when the specified vehicle's fluid level changes eg. when vehicle is consuming fuel.
[in] | fluid | fluid identifier, |
[in] | newValue | new fluid level |
[in] | oldValue | previous fluid level before change |
Is called every time when the simulation changed gear.
[in] | newGear | new gear level |
[in] | oldGear | previous gear level before gear shift |
Is called every time when the simulation changed gear.
[in] | newGear | new gear level |
[in] | oldGear | previous gear level before gear shift |
Called every physics simulation step before inputs are applied.
Is called after every input simulation step.
Note that the player character and other systems can always change the internal state. It is highly recommended to store state of custom inputs elsewhere and call Setters here.
[in] | dt | frame time in seconds |
|
inlineprotected |
Is called every sound simulation step. In this callback, user can modify behaviour of sound controllers.
[in] | ctrl | sound controller identifier, |
[in] | oldValue | already computed value by the game code |
|
inlineprivate |
Is called every sound simulation step. In this callback, user can modify behaviour of sound controllers.
[in] | ctrl | sound controller identifier, |
[in] | oldValue | already computed value by the game code |
Is called every game frame.
[in] | dt | frame time in seconds |
Returns the angular velocity of the propeller.
Returns the propeller position in local space.
Sets the brake value.
in | should be in range <0, 1> |
panic | should be in range <0, 1> |
Sets if brakes should activate without a driver present
Sets the handbrake value.
in | should be in range <0, 1> |
Sets the steering value.
in | should be in range <-1, 1> |
analog | indicates if the input value was taken from analog controller |
Sets the thrust value.
in | should be in range <0, 1> |
gentle | should be in range <0, 1>, thrust modifier |
turbo | should be in range <0, 1>, thrust modifier |
Shifts the future gear down, triggering gearbox simulation.
Shifts the future gear to selected gear, triggering gearbox simulation.
Returns the raw angular velocity of the wheel, unstable value
[in] | wheelIdx | index of the wheel, they are counted from left-front to rear-right |
Returns the normal of contact in world space, only valid if there was an actual contact
[in] | wheelIdx | index of the wheel, they are counted from left-front to rear-right |
Returns the position of contact in world space, only valid if there was an actual contact
[in] | wheelIdx | index of the wheel, they are counted from left-front to rear-right |
Returns the direction pointing forwards that the wheel is facing
[in] | wheelIdx | index of the wheel, they are counted from left-front to rear-right |
Returns the entity attached that represents the wheel
[in] | wheelIdx | index of the wheel, they are counted from left-front to rear-right |
|
private |
Returns the surface that the wheel is nearby
[in] | wheelIdx | index of the wheel, they are counted from left-front to rear-right |
|
private |
Returns the state that the wheel is in with water
[in] | wheelIdx | index of the wheel, they are counted from left-front to rear-right |
Returns true if given wheel is making any contact
[in] | wheelIdx | index of the wheel, they are counted from left-front to rear-right |
Returns true if any of the wheels are locked in terms of its movement.
Returns true if given wheel is locked in terms of its movement.
[in] | wheelIdx | index of the wheel, they are counted from left-front to rear-right |