Skip to content

Commit 8e2e329

Browse files
committed
Waypoint related stuff + PLA_ function
1 parent 23b0101 commit 8e2e329

8 files changed

Lines changed: 53 additions & 0 deletions

File tree

ACP_Ray2.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ cd .</Command>
215215
<ClInclude Include="src\AI\AI_Const.h" />
216216
<ClInclude Include="src\AI\AI_DsgVar.h" />
217217
<ClInclude Include="src\AI\AI_Scr.h" />
218+
<ClInclude Include="src\AI\AI_Way.h" />
218219
<ClInclude Include="src\ALW\ALW.h" />
219220
<ClInclude Include="src\basedef.h" />
220221
<ClInclude Include="src\CAM\CAM.h" />

ACP_Ray2.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@
237237
<ClInclude Include="src\DNM\MEC.h">
238238
<Filter>Header Files</Filter>
239239
</ClInclude>
240+
<ClInclude Include="src\AI\AI_Way.h">
241+
<Filter>Header Files</Filter>
242+
</ClInclude>
240243
</ItemGroup>
241244
<ItemGroup>
242245
<ClCompile Include="src\AI\AI.c">

src/AI/AI.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ void (*AI_fn_vGetUltraOperatorPerso)(
3030
) = OFFSET(0x4825B0);
3131

3232
unsigned char (*AI_fn_ucGetProcedureUltraOperator)( AI_tdeProcedureId eProcId ) = OFFSET(0x482680);
33+
34+
unsigned char (*AI_fn_ucChangeComportIntell)(AI_tdstIntelligence* p_stIntelligence, AI_tdstComport* p_stComport) = OFFSET(0x481080);

src/AI/AI.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "AI_Const.h"
1111
#include "AI_DsgVar.h"
1212
#include "AI_Scr.h"
13+
#include "AI_Way.h"
1314

1415
#include "HIE/HIE_Def.h"
1516
#include "GMT/GMT.h"
@@ -81,6 +82,7 @@ ACP_FUNC void (*AI_fn_vReinitAI)( AI_tdstMind *p_stMind );
8182

8283
ACP_FUNC void (*AI_fn_vBrainAlloc)( HIE_tdstEngineObject *p_stObject );
8384

85+
ACP_FUNC unsigned char (*AI_fn_ucChangeComportIntell)( AI_tdstIntelligence *p_stIntelligence, AI_tdstComport *p_stComport);
8486

8587
/* ultra operator */
8688

src/AI/AI_Def.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ typedef struct AI_tdstGetSetParam AI_tdstGetSetParam;
1717
typedef struct AI_tdstNodeInterpret AI_tdstNodeInterpret;
1818
typedef struct AI_tdstTreeInterpret AI_tdstTreeInterpret;
1919

20+
// AI_Way.h
21+
typedef struct WP_tdstWayPoint WP_tdstWayPoint;
22+
typedef struct WP_tdstGraphNode WP_tdstGraphNode;
23+
typedef struct WP_tdstGraph WP_tdstGraph;
24+
typedef struct WP_tdstArc WP_tdstArc;
25+
typedef struct WP_tdstListOfArc WP_tdstListOfArc;
2026

2127
/* not yet defined */
2228
typedef enum AI_tdeProcedureId AI_tdeProcedureId;

src/AI/AI_Way.h

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#pragma once
2+
#include <ACP_Ray2.h>
3+
4+
typedef struct WP_tdstArc {
5+
LST_M_DynamicElementDecl(WP_tdstArc)
6+
struct WP_tdstGraphNode *m_hNode;
7+
unsigned int m_ulCapability;
8+
unsigned int m_ulCapabilityInit;
9+
int m_lWeight;
10+
int m_lWeightInit;
11+
} WP_tdstArc;
12+
13+
LST_M_DynamicListDecl(WP_tdstArc);
14+
15+
typedef struct WP_tdstListOfArc {
16+
LST_M_DynamicAnchorTo(WP_tdstArc);
17+
} WP_tdstListOfArc;
18+
19+
typedef struct WP_tdstWayPoint {
20+
struct MTH3D_tdstVector m_stVertex;
21+
float m_xRadius;
22+
struct HIE_tdstSuperObject *m_hSuperObject;
23+
} WP_tdstWayPoint;
24+
25+
typedef struct WP_tdstGraphNode {
26+
LST_M_DynamicElementDecl(WP_tdstGraphNode)
27+
struct WP_tdstWayPoint *m_hWayPoint;
28+
int m_lTypeOfWP;
29+
int m_lTypeOfWPInit;
30+
struct WP_tdstListOfArc *m_hListOfArc;
31+
} WP_tdstGraphNode;
32+
33+
LST_M_DynamicListDecl(WP_tdstGraphNode);
34+
35+
typedef struct WP_tdstGraph {
36+
LST_M_DynamicAnchorTo(WP_tdstGraphNode) m_hListOfNode;
37+
} WP_tdstGraph;

src/GAM/GAM.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ void (*GAM_fn_vStdGameAlloc)( HIE_tdstEngineObject *p_stObject ) = OFFSET(0x4131
7575
****************************************************************************/
7676

7777
void (*GAM_fn_v3dDataAlloc)( HIE_tdstEngineObject *p_stObject ) = OFFSET(0x4180F0);
78+
ACP_tdxBool(*PLA_fn_bSetNewState)(HIE_tdstSuperObject* p_stSuperObject, HIE_tdstState* h_WantedState, ACP_tdxBool _bForce, ACP_tdxBool _bHandleSkippedEventsIfRelevant) = OFFSET(0x40faa0);
7879

7980
/****************************************************************************
8081
* ZdxStuff.h

src/GAM/GAM_3dData.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,4 @@ GAM_tdst3dData;
123123
*/
124124

125125
ACP_FUNC void (*GAM_fn_v3dDataAlloc)( HIE_tdstEngineObject *p_stObject );
126+
ACP_FUNC ACP_tdxBool(*PLA_fn_bSetNewState)(HIE_tdstSuperObject *p_stSuperObject, HIE_tdstState *h_WantedState, ACP_tdxBool _bForce, ACP_tdxBool _bHandleSkippedEventsIfRelevant);

0 commit comments

Comments
 (0)