Home
last modified time | relevance | path

Searched refs:time_to_target (Results 1 – 13 of 13) sorted by relevance

/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/weapon/
H A Dswarm.cpp190 float time_to_target = dist_to_target / wip->max_speed; in swarm_update_direction() local
198 if ((old_dot > 0.1f) && (time_to_target > 0.1f)) { in swarm_update_direction()
200 …target_pos += hobjp->phys_info.vel * (0.33f * wip->target_lead_scaler * MIN(time_to_target, 6.0f)); in swarm_update_direction()
203 target_pos += hobjp->phys_info.vel * MIN(time_to_target, 2.0f); in swarm_update_direction()
H A Dweapons.cpp4983 float dist_to_target, time_to_target; in weapon_home() local
4986 time_to_target = dist_to_target/max_speed; in weapon_home()
5009 if ((old_dot > 0.1f) && (time_to_target > 0.1f)) { in weapon_home()
5011 …&target_pos, &hobjp->phys_info.vel, (0.33f * wip->target_lead_scaler * MIN(time_to_target, 6.0f))); in weapon_home()
5013 vm_vec_scale_add2(&target_pos, &hobjp->phys_info.vel, MIN(time_to_target, 2.0f)); in weapon_home()
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/ai/
H A Daibig.cpp1247 float dist_to_target, dist_normal_to_target, time_to_target; in ai_big_strafe_maybe_retreat() local
1256 time_to_target = dist_normal_to_target / Pl_objp->phys_info.speed; in ai_big_strafe_maybe_retreat()
1265 …if ( !(aip->ai_flags & AIF_KAMIKAZE) && ((aip->ai_flags & AIF_TARGET_COLLISION) || (time_to_target in ai_big_strafe_maybe_retreat()
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/ai/
H A Daibig.cpp1402 float dist_to_target, dist_normal_to_target, time_to_target; in ai_big_strafe_maybe_retreat() local
1411 time_to_target = dist_normal_to_target / Pl_objp->phys_info.speed; in ai_big_strafe_maybe_retreat()
1420 …::Kamikaze]) && ((aip->ai_flags[AI::AI_Flags::Target_collision]) || (time_to_target < STRAFE_RETRE… in ai_big_strafe_maybe_retreat()
/dports/games/avp/avp-20170505/src/avp/
H A Dbh_queen.c2800 int time_to_target; in CalculateTrajectory() local
2846 time_to_target=DIV_FIXED(distance,closing_speed); in CalculateTrajectory()
2848 if(time_to_target>(3*ONE_FIXED)) in CalculateTrajectory()
2861 …result->vy=DIV_FIXED(vertical_distance,time_to_target)-MUL_FIXED(time_to_target,GRAVITY_STRENGTH/2… in CalculateTrajectory()
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/weapon/
H A Dweapons.cpp4348 float dist_to_target, time_to_target; in weapon_home() local
4351 time_to_target = dist_to_target/max_speed; in weapon_home()
4373 if ((old_dot > 0.1f) && (time_to_target > 0.1f)) { in weapon_home()
4375 …&target_pos, &hobjp->phys_info.vel, (0.33f * wip->target_lead_scaler * MIN(time_to_target, 6.0f))); in weapon_home()
4377 vm_vec_scale_add2(&target_pos, &hobjp->phys_info.vel, MIN(time_to_target, 2.0f)); in weapon_home()
/dports/misc/openhab/openhab-3.2.0/runtime/bin/
H A Dupdate.lst7 …ls. The 'time_to_target_mins' channel of the 'thermostat' Thing Type is renamed to 'time_to_target'
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/hud/
H A Dhudtarget.cpp3635 float time_to_target, target_moved_dist; in hud_calculate_lead_pos() local
3638 time_to_target = dist_to_target / wip->max_speed; in hud_calculate_lead_pos()
3640 time_to_target = 0; in hud_calculate_lead_pos()
3643 target_moved_dist = targetp->phys_info.speed * time_to_target; in hud_calculate_lead_pos()
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/hud/
H A Dhudtarget.cpp3680 float time_to_target, target_moved_dist; in hud_calculate_lead_pos() local
3683 time_to_target = dist_to_target / wip->max_speed; in hud_calculate_lead_pos()
3685 time_to_target = 0; in hud_calculate_lead_pos()
3688 target_moved_dist = targetp->phys_info.speed * time_to_target; in hud_calculate_lead_pos()
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/ship/
H A Dship.cpp10296 float time_to_target, angle_to_target; in ship_fire_primary() local
10299 time_to_target = 0.0f; in ship_fire_primary()
10303 time_to_target = dist_to_target / winfo_p->max_speed; in ship_fire_primary()
10306 vm_vec_scale_add(&predicted_target_pos, &target_position, &target_velocity_vec, time_to_target); in ship_fire_primary()
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/ship/
H A Dship.cpp11613 float time_to_target, angle_to_target; in ship_fire_primary() local
11616 time_to_target = 0.0f; in ship_fire_primary()
11620 time_to_target = dist_to_target / winfo_p->max_speed; in ship_fire_primary()
11628 vm_vec_scale_add(&predicted_target_pos, &target_position, &target_velocity_vec, time_to_target); in ship_fire_primary()
/dports/games/jfsw/jfsw-c434002/src/
H A Dweapon.c14529 time_to_target = dist/wp->xvel; in WeaponAutoAim()
14530 lead_dist = time_to_target*hp->vel; in WeaponAutoAim()
14599 time_to_target = dist/wp->xvel; in WeaponAutoAimZvel()
14600 lead_dist = time_to_target*hp->vel; in WeaponAutoAimZvel()
/dports/games/NBlood/NBlood-a1689a4/source/sw/src/
H A Dweapon.cpp14316 time_to_target = dist/wp->xvel; in WeaponAutoAim()
14317 lead_dist = time_to_target*hp->vel; in WeaponAutoAim()
14386 time_to_target = dist/wp->xvel; in WeaponAutoAimZvel()
14387 lead_dist = time_to_target*hp->vel; in WeaponAutoAimZvel()