fp: Add cooldowns to attacks

This commit is contained in:
2023-10-01 16:47:40 +11:00
committed by doyle
parent dce637d804
commit 00365ec86f
4 changed files with 68 additions and 37 deletions
+2
View File
@@ -169,6 +169,8 @@ struct FP_GameEntity
Dqn_V2 attack_box_offset;
bool attack_processed;
bool is_dying;
uint64_t last_attack_timestamp;
uint64_t attack_cooldown_ms;
Dqn_FArray<Dqn_V2, 8> spawner_waypoints;
FP_SentinelList<FP_GameEntityHandle> spawn_list;