DayZ 1.24
Loading...
Searching...
No Matches
CarController Class Reference

DEPRECATED class left for backwards compatibility, methods are available on car itself now. More...

Private Member Functions

void CarController ()
 
void ~CarController ()
 
proto float GetSteering ()
 Returns the current steering value in range <-1, 1>.
 
proto void SetSteering (float in, bool analog=false)
 
proto float GetThrustTurbo ()
 Returns the current thrust turbo modifier value in range <0, 1>.
 
proto float GetThrustGentle ()
 Returns the current thrust gentle modifier value in range <0, 1>.
 
proto float GetThrust ()
 Returns the current thrust value in range <0, 1>.
 
proto void SetThrust (float in, float gentle=0, float turbo=0)
 
proto float GetBrake ()
 Returns the current brake value in range <0, 1>.
 
proto void SetBrake (float in, float panic=0)
 
proto int GetGear ()
 Returns index of the current gear.
 
proto void ShiftUp ()
 
proto void ShiftTo (CarGear gear)
 
proto void ShiftDown ()
 

Detailed Description

DEPRECATED class left for backwards compatibility, methods are available on car itself now.

Definition at line 395 of file Car.c.

Constructor & Destructor Documentation

◆ CarController()

void CarController::CarController ( )
inlineprivate

Definition at line 397 of file Car.c.

397{}

◆ ~CarController()

void CarController::~CarController ( )
inlineprivate

Definition at line 398 of file Car.c.

398{}

Member Function Documentation

◆ GetBrake()

proto float CarController::GetBrake ( )
private

Returns the current brake value in range <0, 1>.

◆ GetGear()

proto int CarController::GetGear ( )
private

Returns index of the current gear.

◆ GetSteering()

proto float CarController::GetSteering ( )
private

Returns the current steering value in range <-1, 1>.

◆ GetThrust()

proto float CarController::GetThrust ( )
private

Returns the current thrust value in range <0, 1>.

◆ GetThrustGentle()

proto float CarController::GetThrustGentle ( )
private

Returns the current thrust gentle modifier value in range <0, 1>.

◆ GetThrustTurbo()

proto float CarController::GetThrustTurbo ( )
private

Returns the current thrust turbo modifier value in range <0, 1>.

◆ SetBrake()

proto void CarController::SetBrake ( float in,
float panic = 0 )
private

Sets the brake value.

Parameters
inshould be in range <0, 1>
panicshould be in range <0, 1>

◆ SetSteering()

proto void CarController::SetSteering ( float in,
bool analog = false )
private

Sets the steering value.

Parameters
inshould be in range <-1, 1>
analogindicates if the input value was taken from analog controller

◆ SetThrust()

proto void CarController::SetThrust ( float in,
float gentle = 0,
float turbo = 0 )
private

Sets the thrust value.

Parameters
inshould be in range <0, 1>
gentleshould be in range <0, 1>, thrust modifier
turboshould be in range <0, 1>, thrust modifier

◆ ShiftDown()

proto void CarController::ShiftDown ( )
private

◆ ShiftTo()

proto void CarController::ShiftTo ( CarGear gear)
private

◆ ShiftUp()

proto void CarController::ShiftUp ( )
private

The documentation for this class was generated from the following file: