mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement/match CVehicle::HasTurret()
This commit is contained in:
parent
480bbcefe2
commit
9f0aef9d5b
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
@ -41,6 +41,7 @@ public:
|
||||
BOOL IsWrecked();
|
||||
BOOL IsDriverLocalPlayer();
|
||||
BOOL IsATrainPart();
|
||||
BOOL HasTurret();
|
||||
BOOL HasADriver();
|
||||
|
||||
void SetEngineState(BOOL bState);
|
||||
|
Loading…
Reference in New Issue
Block a user