DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс CarController

DEPRECATED class left for backwards compatibility, methods are available on car itself now. Подробнее...

Закрытые члены

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 ()
 

Подробное описание

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

Конструктор(ы)

◆ CarController()

void CarController ( )
inlineprivate
457{}

◆ ~CarController()

void ~CarController ( )
inlineprivate
458{}

Методы

◆ GetBrake()

proto float GetBrake ( )
private

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

◆ GetGear()

proto int GetGear ( )
private

Returns index of the current gear.

◆ GetSteering()

proto float GetSteering ( )
private

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

◆ GetThrust()

proto float GetThrust ( )
private

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

◆ GetThrustGentle()

proto float GetThrustGentle ( )
private

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

◆ GetThrustTurbo()

proto float GetThrustTurbo ( )
private

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

◆ SetBrake()

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

Sets the brake value.

Аргументы
inshould be in range <0, 1>
panicshould be in range <0, 1>

◆ SetSteering()

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

Sets the steering value.

Аргументы
inshould be in range <-1, 1>
analogindicates if the input value was taken from analog controller

◆ SetThrust()

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

Sets the thrust value.

Аргументы
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 ShiftDown ( )
private

◆ ShiftTo()

proto void ShiftTo ( CarGear gear)
private

◆ ShiftUp()

proto void ShiftUp ( )
private

Объявления и описания членов класса находятся в файле: