[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:
ricardoofnl
2026-09-04 21:16:24 +07:00
parent 80b6155fd6
commit a6dc7e699d
2 changed files with 17 additions and 0 deletions
+2
View File
@@ -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
+15
View File
@@ -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;
}
//----------------------------------------------------