Skip to content

Commit

Permalink
Merge pull request #99 from altmp/ALTV-278
Browse files Browse the repository at this point in the history
ALTV-278 Vehicle handling additions
  • Loading branch information
OlegTrofimov authored Aug 8, 2024
2 parents defcd54 + cb2ebe2 commit b1ced94
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
7 changes: 7 additions & 0 deletions objects/IVehicle.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@ namespace alt
virtual void SetWheelTyreWidth(uint8_t wheel, float value) = 0;
virtual uint32_t GetWheelSurfaceMaterial(uint8_t wheel) const = 0;

virtual bool GetWheelDynamicFlag(uint8_t wheel, uint32_t flag) const = 0;
virtual void SetWheelDynamicFlag(uint8_t wheel, uint32_t flag, bool state) = 0;
virtual bool GetWheelConfigFlag(uint8_t wheel, uint32_t flag) const = 0;
virtual void SetWheelConfigFlag(uint8_t wheel, uint32_t flag, bool state) = 0;

virtual float GetEngineTemperature() const = 0;
virtual void SetEngineTemperature(float value) = 0;
virtual float GetFuelLevel() const = 0;
Expand All @@ -298,6 +303,8 @@ namespace alt
virtual void ResetDashboardLights() = 0;
virtual float GetSuspensionHeight() const = 0;
virtual void SetSuspensionHeight(float value) = 0;

virtual void SetupTransmission() = 0;
#endif // ALT_CLIENT_API
};
} // namespace alt
12 changes: 8 additions & 4 deletions script-objects/IHandlingData.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ namespace alt
virtual float GetPercentSubmerged() const = 0;
virtual float GetPercentSubmergedRatio() const = 0;
virtual float GetDriveBiasFront() const = 0;
virtual float GetAcceleration() const = 0;
virtual float GetDriveBiasRear() const = 0;
virtual float GetAcceleration() const = 0; // Deprecated(wrong name), use GetDriveBiasRear()
virtual uint32_t GetInitialDriveGears() const = 0;
virtual float GetDriveInertia() const = 0;
virtual float GetClutchChangeRateScaleUpShift() const = 0;
virtual float GetClutchChangeRateScaleDownShift() const = 0;
virtual float GetInitialDriveForce() const = 0;
virtual float GetDriveMaxFlatVel() const = 0;
virtual float GetDriveMaxFlatVel() const = 0; // Deprecated(wrong name), use GetInitialDriveMaxVel()
virtual float GetInitialDriveMaxVel() const = 0;
virtual float GetInitialDriveMaxFlatVel() const = 0;
virtual float GetBrakeForce() const = 0;
virtual float GetunkFloat4() const = 0;
Expand Down Expand Up @@ -87,13 +89,15 @@ namespace alt
virtual void SetPercentSubmerged(float val) = 0;
virtual void SetPercentSubmergedRatio(float val) = 0;
virtual void SetDriveBiasFront(float val) = 0;
virtual void SetAcceleration(float val) = 0;
virtual void SetDriveBiasRear(float val) = 0;
virtual void SetAcceleration(float val) = 0; // Deprecated(wrong name), use SetDriveBiasRear()
virtual void SetInitialDriveGears(uint32_t val) = 0;
virtual void SetDriveInertia(float val) = 0;
virtual void SetClutchChangeRateScaleUpShift(float val) = 0;
virtual void SetClutchChangeRateScaleDownShift(float val) = 0;
virtual void SetInitialDriveForce(float val) = 0;
virtual void SetDriveMaxFlatVel(float val) = 0;
virtual void SetDriveMaxFlatVel(float val) = 0; // Deprecated(wrong name), use SetInitialDriveMaxVel()
virtual void SetInitialDriveMaxVel(float val) = 0;
virtual void SetInitialDriveMaxFlatVel(float val) = 0;
virtual void SetBrakeForce(float val) = 0;
virtual void SetunkFloat4(float val) = 0;
Expand Down

0 comments on commit b1ced94

Please sign in to comment.