Searched refs:time_to_enemy (Results 1 – 7 of 7) sorted by relevance
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/ai/ |
H A D | aibig.cpp | 1035 float time_to_enemy; in ai_big_chase() local 1038 …time_to_enemy = dist_normal_to_enemy / fl_abs(vm_vec_dot(&Pl_objp->phys_info.vel, &aip->big_attack… in ai_big_chase() 1041 time_to_enemy = 100.0f; in ai_big_chase() 1045 time_to_enemy = dist_normal_to_enemy / Pl_objp->phys_info.speed; in ai_big_chase() 1048 time_to_enemy = 100.0f; in ai_big_chase() 1053 …if ((dist_normal_to_enemy < ATTACK_COLLIDE_AVOID_DIST + speed_dist) || (time_to_enemy < ATTACK_COL… in ai_big_chase() 1059 …} else if ((dist_normal_to_enemy < ATTACK_COLLIDE_SLOW_DIST) || (time_to_enemy < ATTACK_COLLIDE_SL… in ai_big_chase()
|
H A D | aicode.cpp | 3420 float time_to_enemy; in compute_time_to_enemy() local 3436 time_to_enemy = dist_to_enemy/pl_speed; in compute_time_to_enemy() 3438 time_to_enemy = 1.0f; in compute_time_to_enemy() 3445 time_to_enemy = (float) (dist_to_enemy/(pl_speed * scale + max_laser_speed * (1.0f - scale))); in compute_time_to_enemy() 3447 time_to_enemy = 2.0f; in compute_time_to_enemy() 3449 time_to_enemy = (float) (dist_to_enemy/max_laser_speed); in compute_time_to_enemy() 3451 return time_to_enemy + flFrametime; in compute_time_to_enemy() 8131 float dist_to_enemy, time_to_enemy; in ai_chase() local 8212 time_to_enemy = compute_time_to_enemy(dist_to_enemy, Pl_objp, En_objp); in ai_chase()
|
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/ai/ |
H A D | aibig.cpp | 1195 float time_to_enemy; in ai_big_chase() local 1198 …time_to_enemy = dist_normal_to_enemy / fl_abs(vm_vec_dot(&Pl_objp->phys_info.vel, &aip->big_attack… in ai_big_chase() 1201 time_to_enemy = 100.0f; in ai_big_chase() 1205 time_to_enemy = dist_normal_to_enemy / Pl_objp->phys_info.speed; in ai_big_chase() 1208 time_to_enemy = 100.0f; in ai_big_chase() 1213 …if ((dist_normal_to_enemy < ATTACK_COLLIDE_AVOID_DIST + speed_dist) || (time_to_enemy < ATTACK_COL… in ai_big_chase() 1219 …} else if ((dist_normal_to_enemy < ATTACK_COLLIDE_SLOW_DIST) || (time_to_enemy < ATTACK_COLLIDE_SL… in ai_big_chase()
|
H A D | aicode.cpp | 3529 float time_to_enemy; in compute_time_to_enemy() local 3545 time_to_enemy = dist_to_enemy/pl_speed; in compute_time_to_enemy() 3547 time_to_enemy = 1.0f; in compute_time_to_enemy() 3554 time_to_enemy = (float) (dist_to_enemy/(pl_speed * scale + max_laser_speed * (1.0f - scale))); in compute_time_to_enemy() 3556 time_to_enemy = 2.0f; in compute_time_to_enemy() 3558 time_to_enemy = (float) (dist_to_enemy/max_laser_speed); in compute_time_to_enemy() 3560 return time_to_enemy + flFrametime; in compute_time_to_enemy()
|
/dports/games/wesnoth/wesnoth-1.14.17/data/ai/lua/ |
H A D | generic_recruit_engine.lua | 728 local time_to_enemy = cost / wesnoth.unit_types[recruit_id].max_moves 729 local move_score = 1 / (time_to_enemy * unit_cost^0.5) 731 local eta = math.ceil(time_to_enemy)
|
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/hud/ |
H A D | hudtarget.cpp | 3732 float time_to_enemy; in polish_predicted_target_pos() local 3755 time_to_enemy = dist_to_enemy/weapon_speed; in polish_predicted_target_pos() 3756 vm_vec_scale_add(predicted_enemy_pos, enemy_pos, &enemy_vel, time_to_enemy); in polish_predicted_target_pos() 3758 …le_add(predicted_enemy_pos, predicted_enemy_pos, &enemy_acc, (time_to_enemy * time_to_enemy / 2) *… in polish_predicted_target_pos()
|
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/hud/ |
H A D | hudtarget.cpp | 3775 float time_to_enemy; in polish_predicted_target_pos() local 3791 time_to_enemy = dist_to_enemy/weapon_speed; in polish_predicted_target_pos() 3792 vm_vec_scale_add(predicted_enemy_pos, enemy_pos, &enemy_vel, time_to_enemy); in polish_predicted_target_pos()
|