fp: Add mobbing behaviour to surround club terry

This commit is contained in:
2023-09-29 21:42:27 +10:00
parent 378ef2959b
commit 158fcb12fe
5 changed files with 133 additions and 80 deletions
+11 -2
View File
@@ -16,6 +16,7 @@ enum FP_GameEntityFlag
FP_GameEntityFlag_MobSpawnerWaypoint = 1 << 8,
FP_GameEntityFlag_AggrosWhenNearTerry = 1 << 9,
FP_GameEntityFlag_Attackable = 1 << 10,
FP_GameEntityFlag_RespondsToClubTerry = 1 << 11,
};
enum FP_GameShapeType
@@ -151,8 +152,8 @@ struct FP_GameEntity
Dqn_V2 attack_box_size;
Dqn_V2 attack_box_offset;
bool attack_processed;
bool is_dying;
bool attack_processed;
bool is_dying;
Dqn_FArray<Dqn_V2, 8> spawner_waypoints;
FP_SentinelList<FP_GameEntityHandle> spawn_list;
@@ -235,3 +236,11 @@ struct FP_GameAStarNode
Dqn_V2I came_from;
bool non_traversable;
};
struct FP_GameFindClosestEntityResult
{
FP_GameEntityHandle entity;
Dqn_f32 dist_squared;
Dqn_V2 pos;
};