90 void pushNetworkState(
float engine_rpm,
float acc,
float clutch,
int gear,
bool running,
bool contact,
char auto_mode,
char auto_select = -1);
Binding of RoR::EngineSim; A land vehicle engine + transmission.
float getClutchTime() const
Time (in seconds) the clutch takes to apply ('engoption' attr #5)
autoswitch getAutoShift()
float getGearRatio(int pos)
-1=R, 0=N, 1... ('engine' attrs #5[R],#6[N],#7[1]...)
float getMaxIdleMixture() const
Maximum throttle to maintain the idle RPM ('engoption' attr #9)
void autoShiftSet(autoswitch mode)
float getIdleRPM() const
('engoption' attr #8)
void stopEngine()
stall engine
void setClutch(float clutch)
bool hasContact()
Ignition.
void shift(int val)
Changes gear by a relative offset. Plays sounds.
void setManualClutch(float val)
void offStart()
Quick start of vehicle engine.
float getEngineInertia() const
('engoption' attr #1)
float getPostShiftClock()
void setHydroPump(float work)
float getBrakingTorque() const
void setGearRange(int v)
low level gear changing (bypasses shifting logic)
void setGear(int v)
low level gear changing (bypasses shifting logic)
float getShiftDownRPM() const
Shift down RPM ('engine' attr #1)
void setAutoMode(SimGearboxMode mode)
float getAccToHoldRPM()
estimate required throttle input to hold the current rpm
float getAutoShiftBehavior()
SimGearboxMode getAutoMode()
void pushNetworkState(float engine_rpm, float acc, float clutch, int gear, bool running, bool contact, char auto_mode, char auto_select=-1)
int getKickdownDelayCounter()
float getDiffRatio() const
Global gear ratio ('engine' attr #4)
float getShiftUpRPM() const
Shift up RPM ('engine' attr #2)
int getNumGearsRanges() const
void startEngine()
Quick engine start. Plays sounds.
char getEngineType() const
't' = truck (default), 'c' = car, 'e' = electric car ('engoption' attr #2)
void toggleContact()
Ignition.
float getPostShiftTime() const
Time (in seconds) until full torque is transferred ('engoption' attr #6)
float getShiftTime() const
Time (in seconds) that it takes to shift ('engoption' attr #4)
void shiftTo(int val)
Changes gear to given value. Plays sounds.
float getMinIdleMixture() const
Minimum throttle to maintain the idle RPM ('engoption' attr #10)
void setTCaseRatio(float ratio)
Set current transfer case gear (reduction) ratio.
void autoSetAcc(float val)
float getEnginePower(float rpm)
float getStallRMP() const
('engoption' attr #7)
void setWheelSpin(float rpm)
int getUpshiftDelayCounter()
float getWheelSpin()
Current wheel RPM.
float getClutchForce() const
('engoption' attr #3)
float getEngineTorque() const
Torque in N/m ('engine' attr #3)
Pseudo-namespace; it doesn't exist in code or script runtime, only in this documentation.
autoswitch
Binding of RoR::autoswitch, used with Script2Game::EngineClass.