[saco] Implement/match CVehicle::HasTurret()

This commit is contained in:
RD42 2024-08-20 23:18:41 +08:00
parent 480bbcefe2
commit 9f0aef9d5b
2 changed files with 13 additions and 0 deletions

View File

@ -185,3 +185,15 @@ BOOL CVehicle::IsATrainPart()
//-----------------------------------------------------------
BOOL CVehicle::HasTurret()
{
int nModel = GetModelIndex();
return (nModel == 432 || // Tank
nModel == 564 || // RC Tank
nModel == 407 || // Firetruck
nModel == 601 // Swatvan
);
}
//-----------------------------------------------------------

View File

@ -41,6 +41,7 @@ public:
BOOL IsWrecked();
BOOL IsDriverLocalPlayer();
BOOL IsATrainPart();
BOOL HasTurret();
BOOL HasADriver();
void SetEngineState(BOOL bState);