Home
last modified time | relevance | path

Searched refs:current_bank_adjusted (Results 1 – 4 of 4) sorted by relevance

/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/ai/
H A Daibig.cpp952 int current_bank_adjusted = MAX_SHIP_PRIMARY_BANKS + current_bank; in ai_big_maybe_fire_weapons() local
955 if (swip->burst_shots > swp->burst_counter[current_bank_adjusted]) { in ai_big_maybe_fire_weapons()
957 swp->burst_counter[current_bank_adjusted]++; in ai_big_maybe_fire_weapons()
961 swp->burst_counter[current_bank_adjusted] = Random::next(swip->burst_shots); in ai_big_maybe_fire_weapons()
963 swp->burst_counter[current_bank_adjusted] = 0; in ai_big_maybe_fire_weapons()
965 swp->burst_seed[current_bank_adjusted] = Random::next(); in ai_big_maybe_fire_weapons()
968 if (swip->burst_shots > swp->burst_counter[current_bank_adjusted]) { in ai_big_maybe_fire_weapons()
970 swp->burst_counter[current_bank_adjusted]++; in ai_big_maybe_fire_weapons()
974 swp->burst_counter[current_bank_adjusted] = Random::next(swip->burst_shots); in ai_big_maybe_fire_weapons()
976 swp->burst_counter[current_bank_adjusted] = 0; in ai_big_maybe_fire_weapons()
[all …]
H A Daicode.cpp9327 int current_bank_adjusted = MAX_SHIP_PRIMARY_BANKS + current_bank; in ai_chase() local
9330 if (swip->burst_shots > swp->burst_counter[current_bank_adjusted]) { in ai_chase()
9332 swp->burst_counter[current_bank_adjusted]++; in ai_chase()
9336 swp->burst_counter[current_bank_adjusted] = Random::next(swip->burst_shots); in ai_chase()
9338 swp->burst_counter[current_bank_adjusted] = 0; in ai_chase()
9340 swp->burst_seed[current_bank_adjusted] = Random::next(); in ai_chase()
9343 if (swip->burst_shots > swp->burst_counter[current_bank_adjusted]) { in ai_chase()
9345 swp->burst_counter[current_bank_adjusted]++; in ai_chase()
9349 swp->burst_counter[current_bank_adjusted] = Random::next(swip->burst_shots); in ai_chase()
9351 swp->burst_counter[current_bank_adjusted] = 0; in ai_chase()
[all …]
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/ai/
H A Daibig.cpp796 int current_bank_adjusted = MAX_SHIP_PRIMARY_BANKS + current_bank; in ai_big_maybe_fire_weapons() local
799 if (swip->burst_shots > swp->burst_counter[current_bank_adjusted]) { in ai_big_maybe_fire_weapons()
801 swp->burst_counter[current_bank_adjusted]++; in ai_big_maybe_fire_weapons()
805 swp->burst_counter[current_bank_adjusted] = myrand() % swip->burst_shots; in ai_big_maybe_fire_weapons()
807 swp->burst_counter[current_bank_adjusted] = 0; in ai_big_maybe_fire_weapons()
811 if (swip->burst_shots > swp->burst_counter[current_bank_adjusted]) { in ai_big_maybe_fire_weapons()
813 swp->burst_counter[current_bank_adjusted]++; in ai_big_maybe_fire_weapons()
817 swp->burst_counter[current_bank_adjusted] = myrand() % swip->burst_shots; in ai_big_maybe_fire_weapons()
819 swp->burst_counter[current_bank_adjusted] = 0; in ai_big_maybe_fire_weapons()
H A Daicode.cpp8822 int current_bank_adjusted = MAX_SHIP_PRIMARY_BANKS + current_bank; in ai_chase() local
8825 if (swip->burst_shots > swp->burst_counter[current_bank_adjusted]) { in ai_chase()
8827 swp->burst_counter[current_bank_adjusted]++; in ai_chase()
8831 swp->burst_counter[current_bank_adjusted] = myrand() % swip->burst_shots; in ai_chase()
8833 swp->burst_counter[current_bank_adjusted] = 0; in ai_chase()
8837 if (swip->burst_shots > swp->burst_counter[current_bank_adjusted]) { in ai_chase()
8839 swp->burst_counter[current_bank_adjusted]++; in ai_chase()
8843 swp->burst_counter[current_bank_adjusted] = myrand() % swip->burst_shots; in ai_chase()
8845 swp->burst_counter[current_bank_adjusted] = 0; in ai_chase()