diff options
author | aap <aap@papnet.eu> | 2019-07-29 19:18:03 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-07-31 14:33:27 +0200 |
commit | 5f6b235301f734b73f8307cf3e29997e7f76eac8 (patch) | |
tree | 73037842a302ae6e888e365b32e8ce74287e3f8d /src/vehicles/Vehicle.h | |
parent | 8069415427d1e1e13edb0c5a580148720fccb183 (diff) | |
parent | 1ec6979b8bc35ed7e10af6c67b1eb09882738274 (diff) |
implemented CTrain
Diffstat (limited to 'src/vehicles/Vehicle.h')
-rw-r--r-- | src/vehicles/Vehicle.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/vehicles/Vehicle.h b/src/vehicles/Vehicle.h index 262bd62c..f2e7b5d0 100644 --- a/src/vehicles/Vehicle.h +++ b/src/vehicles/Vehicle.h @@ -26,39 +26,6 @@ enum eCarLock { }; -enum eCarNodes -{ - CAR_WHEEL_RF = 1, - CAR_WHEEL_RM, - CAR_WHEEL_RB, - CAR_WHEEL_LF, - CAR_WHEEL_LM, - CAR_WHEEL_LB, - CAR_BUMP_FRONT, - CAR_BUMP_REAR, - CAR_WING_RF, - CAR_WING_RR, - CAR_DOOR_RF, - CAR_DOOR_RR, - CAR_WING_LF, - CAR_WING_LR, - CAR_DOOR_LF, - CAR_DOOR_LR, - CAR_BONNET, - CAR_BOOT, - CAR_WINDSCREEN, - NUM_CAR_NODES, -}; - -enum -{ - CAR_POS_HEADLIGHTS, - CAR_POS_TAILLIGHTS, - CAR_POS_FRONTSEAT, - CAR_POS_BACKSEAT, - CAR_POS_EXHAUST = 9, -}; - enum { BOAT_POS_FRONTSEAT @@ -311,21 +278,6 @@ static_assert(offsetof(CVehicle, m_pCurGroundEntity) == 0x1E0, "CVehicle: error" static_assert(offsetof(CVehicle, m_nAlarmState) == 0x1A0, "CVehicle: error"); static_assert(offsetof(CVehicle, m_nLastWeaponDamage) == 0x228, "CVehicle: error"); -inline uint8 GetVehDoorFlag(int32 carnode) { - switch (carnode) { - case CAR_DOOR_LF: - return 1; - case CAR_DOOR_LR: - return 2; - case CAR_DOOR_RF: - return 4; - case CAR_DOOR_RR: - return 8; - default: - return 0; - } -} - class cTransmission; class cVehicleParams |