Skip to content

Commit 7b44e8f

Browse files
committed
Revert "plane trail enabled"
This reverts commit d1db22e.
1 parent d1db22e commit 7b44e8f

File tree

7 files changed

+0
-35
lines changed

7 files changed

+0
-35
lines changed

Client/game_sa/CVehicleSA.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2343,14 +2343,3 @@ bool CVehicleSA::SetWindowOpenFlagState(unsigned char ucWindow, bool bState)
23432343
}
23442344
return bReturn;
23452345
}
2346-
2347-
2348-
bool CVehicleSA::SetSmoke(bool state)
2349-
{
2350-
auto pInterface = static_cast<CPlaneSAInterface*>(GetInterface());
2351-
2352-
pInterface->m_bSmokeEjectorEnabled = state;
2353-
2354-
return true;
2355-
}
2356-

Client/game_sa/CVehicleSA.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,8 +692,6 @@ class CVehicleSA : public virtual CVehicle, public virtual CPhysicalSA
692692
static void SetVehiclesSunGlareEnabled(bool bEnabled);
693693
static bool GetVehiclesSunGlareEnabled();
694694

695-
bool SetSmoke(bool state);
696-
697695
private:
698696
static void SetAutomobileDummyPosition(CAutomobileSAInterface* automobile, eVehicleDummies dummy, const CVector& position);
699697

Client/mods/deathmatch/logic/CClientVehicle.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,12 +1615,6 @@ bool CClientVehicle::SetRotorSpeed(float fSpeed)
16151615
}
16161616
}
16171617

1618-
bool CClientVehicle::SetPlaneSmoke(bool state)
1619-
{
1620-
if (m_pVehicle && m_eVehicleType == CLIENTVEHICLE_PLANE)
1621-
return m_pVehicle->SetSmoke(state);
1622-
}
1623-
16241618
bool CClientVehicle::SetWheelsRotation(float fRot1, float fRot2, float fRot3, float fRot4) noexcept
16251619
{
16261620
if (!m_pVehicle)

Client/mods/deathmatch/logic/CClientVehicle.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,6 @@ class CClientVehicle : public CClientStreamElement
547547

548548
CVector GetEntryPoint(std::uint32_t entryPointIndex);
549549

550-
bool SetPlaneSmoke(bool state);
551-
552550
protected:
553551
void ConvertComponentRotationBase(const SString& vehicleComponent, CVector& vecInOutRotation, EComponentBaseType inputBase, EComponentBaseType outputBase);
554552
void ConvertComponentPositionBase(const SString& vehicleComponent, CVector& vecInOutPosition, EComponentBaseType inputBase, EComponentBaseType outputBase);

Client/mods/deathmatch/logic/luadefs/CLuaVehicleDefs.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ void CLuaVehicleDefs::LoadFunctions()
156156
{"setVehicleWheelScale", ArgumentParser<SetVehicleWheelScale>},
157157
{"setVehicleModelWheelSize", ArgumentParser<SetVehicleModelWheelSize>},
158158
{"spawnVehicleFlyingComponent", ArgumentParser<SpawnVehicleFlyingComponent>},
159-
{"setPlaneTrailEnabled", ArgumentParser<SetPlaneSmoke>},
160159
};
161160

162161
// Add functions
@@ -4341,13 +4340,3 @@ bool CLuaVehicleDefs::SpawnVehicleFlyingComponent(CClientVehicle* const vehicle,
43414340

43424341
return vehicle->SpawnFlyingComponent(partNodeIndex, collisionType, removalTime.value_or(-1));
43434342
}
4344-
4345-
bool CLuaVehicleDefs::SetPlaneSmoke(CClientVehicle* vehicle, bool state)
4346-
{
4347-
4348-
if (vehicle->GetModel() == 512 || vehicle->GetModel() == 513) // Support Cropduster and Stuntplane
4349-
{
4350-
return vehicle->SetPlaneSmoke(state);
4351-
}
4352-
return false;
4353-
}

Client/mods/deathmatch/logic/luadefs/CLuaVehicleDefs.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,4 @@ class CLuaVehicleDefs : public CLuaDefs
181181
LUA_DECLARE(GetVehicleComponents);
182182

183183
static bool SpawnVehicleFlyingComponent(CClientVehicle* const vehicle, std::uint8_t nodeIndex, std::optional<std::uint8_t> componentCollisionType, std::optional<std::uint32_t> removalTime);
184-
185-
static bool SetPlaneSmoke(CClientVehicle* vehicle, bool state);
186184
};

Client/sdk/game/CVehicle.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ class CVehicle : public virtual CPhysical
221221
virtual void SetAdjustablePropertyValue(unsigned short usAdjustableProperty) = 0;
222222
virtual void SetHeliRotorSpeed(float fSpeed) = 0;
223223
virtual void SetPlaneRotorSpeed(float fSpeed) = 0;
224-
virtual bool SetSmoke(bool state) = 0;
225224
virtual bool SetVehicleWheelRotation(float fRot1, float fRot2, float fRot3, float fRot4) noexcept = 0;
226225
virtual void SetTaxiLightOn(bool bLightState) = 0;
227226
virtual void SetExplodeTime(unsigned long ulTime) = 0;

0 commit comments

Comments
 (0)