mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-18 22:49:23 +00:00
Peds
This commit is contained in:
parent
32c5723b91
commit
d5d1c7ec5f
12 changed files with 354 additions and 55 deletions
|
@ -3,5 +3,27 @@
|
|||
#include "main.h"
|
||||
#include "PedRoutes.h"
|
||||
|
||||
WRAPPER int16 CRouteNode::GetRouteThisPointIsOn(int16) { EAXJMP(0x4EE7A0); }
|
||||
WRAPPER CVector CRouteNode::GetPointPosition(int16) { EAXJMP(0x4EE780); }
|
||||
CRouteNode (&gaRoutes)[NUMPEDROUTES] = *(CRouteNode(*)[NUMPEDROUTES]) * (uintptr*)0x62E090;
|
||||
|
||||
int16
|
||||
CRouteNode::GetRouteThisPointIsOn(int16 point)
|
||||
{
|
||||
return gaRoutes[point].m_route;
|
||||
}
|
||||
|
||||
// Actually GetFirstPointOfRoute
|
||||
int16
|
||||
CRouteNode::GetRouteStart(int16 route)
|
||||
{
|
||||
for (int i = 0; i < NUMPEDROUTES; i++) {
|
||||
if (route == gaRoutes[i].m_route)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
CVector
|
||||
CRouteNode::GetPointPosition(int16 point)
|
||||
{
|
||||
return gaRoutes[point].m_pos;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue