Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct s_projectiles
- {
- int current_gen;
- int max_index_plus_one;
- b8 active[max_projectiles];
- int gen[max_projectiles];
- int crit_count[max_projectiles];
- int times_pierced[max_projectiles];
- int max_pierces[max_projectiles];
- int times_chained[max_projectiles];
- int max_chains[max_projectiles];
- int armor_pen[max_projectiles];
- float damage[max_projectiles];
- float chain_range[max_projectiles];
- // @Note(tkap, 01/06/2022): Used to influence the direction to go slightly towards the target. This is done so that projectiles that are shot from
- // very far away don't miss the enemy due to their speed vs the enemy speed.
- s_enemy_ref target[max_projectiles];
- s_tower_ref source[max_projectiles];
- int chain_lightning_chains[max_projectiles];
- s_stat chain_lightning_damage[max_projectiles];
- s_v3 pos[max_projectiles];
- s_v3 dir[max_projectiles];
- s_v3 size[max_projectiles];
- #ifdef IS_CLIENT
- s_v4 color[max_projectiles];
- #endif // IS_CLIENT
- s_sarray<s_buff_apply_data, e_buff_count> buffs_to_apply[max_projectiles];
- s_sarray<s_enemy_ref, max_enemies_hit> already_hit[max_projectiles];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement