mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 19:53:04 +08:00
[saco] Implement/match CVehiclePool::FUNC_1001EE20; the 300 unit cutoff is a float literal and the walk is a plain int
This commit is contained in:
@@ -58,6 +58,8 @@ public:
|
||||
|
||||
float FUNC_1009F0C0(); // .text:1009F0C0
|
||||
float FUNC_1009F190(); // .text:1009F190
|
||||
char FUNC_1009FC00(VECTOR *vecStart, VECTOR *vecEnd, char a3); // .text:1009FC00
|
||||
char FUNC_1009FCE0(); // .text:1009FCE0
|
||||
BYTE FUNC_100B8340(); // .text:100B8340
|
||||
float FUNC_100B72A0(); // .text:100B72A0
|
||||
int FUNC_100B7390(); // .text:100B7390
|
||||
|
||||
@@ -189,3 +189,18 @@ short CVehiclePool::FUNC_1001EEB0(int a1, VECTOR *vecOrigin, VECTOR *vecLine)
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
char CVehiclePool::FUNC_1001EE20(VECTOR *vecStart, VECTOR *vecEnd)
|
||||
{
|
||||
for(int i = 0; i <= field_0; i++) {
|
||||
if(field_3074[i] && field_1134[i]) {
|
||||
CVehicle *pVehicle = (CVehicle *)field_1134[i];
|
||||
if(pVehicle->IsAdded() && pVehicle->FUNC_1009F190() < 300.0f
|
||||
&& !pVehicle->FUNC_1009FCE0()
|
||||
&& pVehicle->FUNC_1009FC00(vecStart, vecEnd, 1)) return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user