Advertisement
Tkap1

Untitled

Sep 7th, 2022
1,132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.12 KB | None | 0 0
  1.  
  2. struct s_projectiles
  3. {
  4.     int current_gen;
  5.     int max_index_plus_one;
  6.  
  7.     b8 active[max_projectiles];
  8.  
  9.     int gen[max_projectiles];
  10.     int crit_count[max_projectiles];
  11.     int times_pierced[max_projectiles];
  12.     int max_pierces[max_projectiles];
  13.     int times_chained[max_projectiles];
  14.     int max_chains[max_projectiles];
  15.     int armor_pen[max_projectiles];
  16.  
  17.     float damage[max_projectiles];
  18.     float chain_range[max_projectiles];
  19.  
  20.     // @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
  21.     // very far away don't miss the enemy due to their speed vs the enemy speed.
  22.     s_enemy_ref target[max_projectiles];
  23.  
  24.     s_tower_ref source[max_projectiles];
  25.  
  26.     int chain_lightning_chains[max_projectiles];
  27.     s_stat chain_lightning_damage[max_projectiles];
  28.  
  29.  
  30.     s_v3 pos[max_projectiles];
  31.     s_v3 dir[max_projectiles];
  32.     s_v3 size[max_projectiles];
  33.  
  34. #ifdef IS_CLIENT
  35.     s_v4 color[max_projectiles];
  36. #endif // IS_CLIENT
  37.  
  38.     s_sarray<s_buff_apply_data, e_buff_count> buffs_to_apply[max_projectiles];
  39.     s_sarray<s_enemy_ref, max_enemies_hit> already_hit[max_projectiles];
  40. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement