Home
last modified time | relevance | path

Searched refs:target_objp (Results 1 – 24 of 24) sorted by relevance

/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/hud/
H A Dhudtargetbox.cpp334 object *target_objp; in render() local
363 switch ( target_objp->type ) { in render()
365 renderTargetShip(target_objp); in render()
559target_objp->instance].team_name, Ships[target_objp->instance].secondary_team_name, Ships[target_o… in renderTargetShip()
627 save_pos = target_objp->pos; in renderTargetShip()
628 target_objp->pos = obj_pos; in renderTargetShip()
630 target_objp->pos = save_pos; in renderTargetShip()
802 viewed_obj = target_objp; in renderTargetWeapon()
811 viewer_obj = target_objp; in renderTargetWeapon()
1379 object *target_objp; in render() local
[all …]
H A Dhudtargetbox.h114 void renderTargetShip(object *target_objp);
115 void renderTargetWeapon(object *target_objp);
116 void renderTargetDebris(object *target_objp);
117 void renderTargetAsteroid(object *target_objp);
118 void renderTargetJumpNode(object *target_objp);
124 void renderTargetShipInfo(object *target_objp);
175 int hud_targetbox_subsystem_in_view(object *target_objp, int *sx, int *sy);
H A Dhudlock.cpp439 object *target_objp; in hud_lock_on_subsys_ok() local
451 vm_vec_add2(&subobj_pos, &target_objp->pos); in hud_lock_on_subsys_ok()
1018 lock_world_pos = target_objp->pos; in hud_lock_update_lock_pos()
1036 if ( target_objp->type == OBJ_SHIP ) { in hud_lock_get_new_lock_pos()
1037 target_shipp = &Ships[target_objp->instance]; in hud_lock_get_new_lock_pos()
1049 lock_world_pos = target_objp->pos; in hud_lock_get_new_lock_pos()
1095 lock_world_pos = target_objp->pos; in hud_lock_get_new_lock_pos()
1105 object *target_objp; in hud_lock_determine_lock_point() local
1123 hud_lock_update_lock_pos(target_objp); in hud_lock_determine_lock_point()
1143 hud_lock_update_lock_pos(target_objp); in hud_lock_determine_lock_point()
[all …]
H A Dhudtarget.cpp1430 object *A, *target_objp; in hud_target_missile() local
1444 target_objp = &Objects[aip->target_objnum]; in hud_target_missile()
1445 …if ( target_objp->type == OBJ_WEAPON && Weapon_info[Weapons[target_objp->instance].weapon_info_ind… in hud_target_missile()
1446 end = missile_obj_return_address(Weapons[target_objp->instance].missile_list_index); in hud_target_missile()
2442 int object_targetable_in_reticle(object *target_objp) in object_targetable_in_reticle() argument
2447 if (target_objp == Player_obj ) { in object_targetable_in_reticle()
2451 obj_type = target_objp->type; in object_targetable_in_reticle()
2459 if(jnp->GetSCPObject() == target_objp) in object_targetable_in_reticle()
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/hud/
H A Dhudtargetbox.cpp360 object *target_objp; in render() local
389 switch ( target_objp->type ) { in render()
391 renderTargetShip(target_objp); in render()
664 save_pos = target_objp->pos; in renderTargetShip()
665 target_objp->pos = obj_pos; in renderTargetShip()
667 target_objp->pos = save_pos; in renderTargetShip()
842 viewed_obj = target_objp; in renderTargetWeapon()
851 viewer_obj = target_objp; in renderTargetWeapon()
1432 object *target_objp; in render() local
1919 object *target_objp; in showTargetData() local
[all …]
H A Dhudtargetbox.h113 void renderTargetShip(object *target_objp);
114 void renderTargetWeapon(object *target_objp);
115 void renderTargetDebris(object *target_objp);
116 void renderTargetAsteroid(object *target_objp);
117 void renderTargetJumpNode(object *target_objp);
123 void renderTargetShipInfo(object *target_objp);
176 int hud_targetbox_subsystem_in_view(object *target_objp, int *sx, int *sy);
H A Dhudlock.cpp493 object *target_objp; in hud_lock_on_subsys_ok() local
505 vm_vec_add2(&subobj_pos, &target_objp->pos); in hud_lock_on_subsys_ok()
729 if ( target_objp->type == OBJ_SHIP ) { in hud_lock_acquire_current_target()
1996 lock_world_pos = target_objp->pos; in hud_lock_update_lock_pos()
2014 if ( target_objp->type == OBJ_SHIP ) { in hud_lock_get_new_lock_pos()
2027 lock_world_pos = target_objp->pos; in hud_lock_get_new_lock_pos()
2073 lock_world_pos = target_objp->pos; in hud_lock_get_new_lock_pos()
2083 object *target_objp; in hud_lock_determine_lock_point() local
2101 hud_lock_update_lock_pos(target_objp); in hud_lock_determine_lock_point()
2121 hud_lock_update_lock_pos(target_objp); in hud_lock_determine_lock_point()
[all …]
H A Dhudtarget.cpp1441 object *A, *target_objp; in hud_target_missile() local
1455 target_objp = &Objects[aip->target_objnum]; in hud_target_missile()
1456 …if ( target_objp->type == OBJ_WEAPON && Weapon_info[Weapons[target_objp->instance].weapon_info_ind… in hud_target_missile()
1457 end = missile_obj_return_address(Weapons[target_objp->instance].missile_list_index); in hud_target_missile()
2387 int object_targetable_in_reticle(object *target_objp) in object_targetable_in_reticle() argument
2392 if (target_objp == Player_obj ) { in object_targetable_in_reticle()
2396 obj_type = target_objp->type; in object_targetable_in_reticle()
2404 if(jnp->GetSCPObject() == target_objp) in object_targetable_in_reticle()
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/ai/
H A Daibig.cpp372 object *target_objp; in ai_big_maybe_follow_subsys_path() local
380 target_objp = &Objects[aip->target_objnum]; in ai_big_maybe_follow_subsys_path()
543 if (vm_vec_dist(&Pl_objp->pos, &target_objp->pos) > target_objp->radius * 2.0f + 2000.0f) in ai_new_maybe_reposition_attack_subsys()
563 vec3d tgt2pl = Pl_objp->pos - target_objp->pos; in ai_new_maybe_reposition_attack_subsys()
564 vec3d tgt2subsys = gsubpos - target_objp->pos; in ai_new_maybe_reposition_attack_subsys()
585 world_goal_pos += target_objp->pos; in ai_new_maybe_reposition_attack_subsys()
603 world_goal_pos += target_objp->pos; in ai_new_maybe_reposition_attack_subsys()
612 world_goal_pos += target_objp->pos; in ai_new_maybe_reposition_attack_subsys()
1565 object *target_objp; in ai_big_strafe_glide_attack() local
1568 target_objp = &Objects[aip->target_objnum]; in ai_big_strafe_glide_attack()
[all …]
H A Daicode.cpp367 target_signature = target_objp->signature; in is_preferred_weapon()
5820 object* target_objp = &Objects[so->objnum]; in ai_do_multilock() local
5821 ship* target_ship = &Ships[target_objp->instance]; in ai_do_multilock()
5851 if (primary_target == target_objp) in ai_do_multilock()
6220 int compute_num_homing_objects(object *target_objp) in compute_num_homing_objects() argument
6228 if (Weapons[objp->instance].homing_object == target_objp) { in compute_num_homing_objects()
6267 float compute_incoming_payload(object *target_objp) in compute_incoming_payload() argument
6277 if (Weapons[objp->instance].homing_object == target_objp) { in compute_incoming_payload()
8270 vm_vec_avg(goal_pos, &attack_objp->pos, &target_objp->pos); in ai_chase_big_approach_set_goal()
8285 …get_tangent_point(goal_pos, attack_objp, &target_objp->pos, attack_objp->radius + target_objp->rad… in ai_chase_big_circle_set_goal()
[all …]
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/ai/
H A Daibig.cpp369 object *target_objp; in ai_big_maybe_follow_subsys_path() local
372 target_objp = &Objects[aip->target_objnum]; in ai_big_maybe_follow_subsys_path()
380 polymodel *pm_t = model_get( Ship_info[Ships[target_objp->instance].ship_info_index].model_num ); in ai_big_maybe_follow_subsys_path()
425 …min_dot = (target_objp->phys_info.fspeed > 5.0f?MIN_DOT_TO_ATTACK_MOVING_SUBSYS:MIN_DOT_TO_ATTACK_… in ai_big_maybe_follow_subsys_path()
462 …min_dot = (target_objp->phys_info.fspeed > 5.0f?MIN_DOT_TO_ATTACK_MOVING_SUBSYS:MIN_DOT_TO_ATTACK_… in ai_big_maybe_follow_subsys_path()
1404 object *target_objp; in ai_big_strafe_glide_attack() local
1407 target_objp = &Objects[aip->target_objnum]; in ai_big_strafe_glide_attack()
1427 target_ship_dist = vm_vec_dist(&target_objp->pos, &Pl_objp->pos); in ai_big_strafe_glide_attack()
1434 vm_vec_sub(&targetToAttacker, &Pl_objp->pos, &target_objp->pos); in ai_big_strafe_glide_attack()
1437 …vm_vec_random_in_circle(&tangentPoint, &target_objp->pos, &orient, target_objp->radius + GLIDE_STR… in ai_big_strafe_glide_attack()
[all …]
H A Daicode.cpp345 int is_preferred_weapon(int weapon_num, object *firer_objp, object *target_objp) in is_preferred_weapon() argument
356 target_signature = target_objp->signature; in is_preferred_weapon()
5899 int compute_num_homing_objects(object *target_objp) in compute_num_homing_objects() argument
5907 if (Weapons[objp->instance].homing_object == target_objp) { in compute_num_homing_objects()
5946 float compute_incoming_payload(object *target_objp) in compute_incoming_payload() argument
5956 if (Weapons[objp->instance].homing_object == target_objp) { in compute_incoming_payload()
7795 vm_vec_avg(goal_pos, &attack_objp->pos, &target_objp->pos); in ai_chase_big_approach_set_goal()
7810 …get_tangent_point(goal_pos, attack_objp, &target_objp->pos, attack_objp->radius + target_objp->rad… in ai_chase_big_circle_set_goal()
7838 vm_vec_sub(&vec_to_target, &attack_objp->pos, &target_objp->pos); in ai_chase_big_get_separations()
7883 vm_vec_scale_add(goal_pos, &target_objp->pos, &target_objp->orient.vec.fvec, dist); in ai_chase_big_parallel_set_goal()
[all …]
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/network/
H A Dmulti_obj.cpp914 object *target_objp; in multi_oo_unpack_data() local
925 target_objp = multi_get_network_object( target_signature ); in multi_oo_unpack_data()
926 if ( target_objp == NULL ){ in multi_oo_unpack_data()
929 Ai_info[shipp->ai_index].target_objnum = OBJ_INDEX(target_objp); in multi_oo_unpack_data()
H A Dmultimsgs.cpp3049 object* objp, *target_objp; in process_secondary_fired_packet() local
3136 target_objp = multi_get_network_object( target_signature ); in process_secondary_fired_packet()
3137 if ( target_objp != NULL ) { in process_secondary_fired_packet()
3138 aip->target_objnum = OBJ_INDEX(target_objp); in process_secondary_fired_packet()
3140 if ( (t_subsys != -1) && (target_objp->type == OBJ_SHIP) ) { in process_secondary_fired_packet()
4309 object *objp, *target_objp; in process_player_order_packet() local
4373 target_objp = multi_get_network_object( target_signature ); in process_player_order_packet()
4374 if ( target_objp == NULL ) { in process_player_order_packet()
4380 Assert( target_objp != NULL ); in process_player_order_packet()
4389 if ( target_objp ) { in process_player_order_packet()
[all …]
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/weapon/
H A Dweapons.cpp250 extern int compute_num_homing_objects(object *target_objp);
5510 auto target_objp = wp->homing_object; in weapon_process_post() local
5511 if (target_objp == nullptr && wp->target_num != -1) { in weapon_process_post()
5512 target_objp = &Objects[wp->target_num]; in weapon_process_post()
5515 if (target_objp != nullptr) in weapon_process_post()
5517 …vm_vec_scale_add(&wp->lssm_target_pos, &target_objp->pos, &target_objp->phys_info.vel, (float)wip-… in weapon_process_post()
5534 object* target_objp=wp->homing_object; in weapon_process_post() local
5539 …ndom_in_circle(&warpin, &wp->lssm_target_pos, &target_objp->orient, wip->lssm_warpin_radius + targ… in weapon_process_post()
9170 if (target_objp->type != OBJ_SHIP) in weapon_multilock_can_lock_on_target()
9173 if (hud_target_invalid_awacs(target_objp)) in weapon_multilock_can_lock_on_target()
[all …]
H A Dweapon.h767 bool weapon_multilock_can_lock_on_target(object* shooter, object* target_objp, weapon_info* wip, fl…
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/network/
H A Dmulti_obj.cpp2020 object *target_objp; in multi_oo_unpack_data() local
2043 target_objp = multi_get_network_object( target_signature ); in multi_oo_unpack_data()
2049 if ( umode == 255 || target_objp == nullptr ){ in multi_oo_unpack_data()
2056 waypoint* destination = find_waypoint_with_instance(target_objp->instance); in multi_oo_unpack_data()
2064 Ai_info[shipp->ai_index].target_objnum = OBJ_INDEX(target_objp); in multi_oo_unpack_data()
2065 Ai_info[shipp->ai_index].goals[0].target_name = Ships[target_objp->instance].ship_name; in multi_oo_unpack_data()
H A Dmultimsgs.cpp3177 object* objp, *target_objp; in process_secondary_fired_packet() local
3260 target_objp = multi_get_network_object( target_net_signature ); in process_secondary_fired_packet()
3261 if ( target_objp != NULL ) { in process_secondary_fired_packet()
3262 aip->target_objnum = OBJ_INDEX(target_objp); in process_secondary_fired_packet()
3264 if ( (t_subsys != -1) && (target_objp->type == OBJ_SHIP) ) { in process_secondary_fired_packet()
4461 object *objp, *target_objp; in process_player_order_packet() local
4525 target_objp = multi_get_network_object( target_net_signature ); in process_player_order_packet()
4526 if ( target_objp == NULL ) { in process_player_order_packet()
4532 Assert( target_objp != NULL ); in process_player_order_packet()
4541 if ( target_objp ) { in process_player_order_packet()
[all …]
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/patches/
H A Dcolonial_hud.patch3663 switch ( target_objp->type ) {
3665 renderTargetShip(target_objp);
3671 void HudGaugeTargetBox::renderTargetShip(object *target_objp)
3688 …model_render( target_sip->model_num_hud, &target_objp->orient, &obj_pos, flags | MR_LOCK_DETAIL | …
3690 …model_render( target_sip->model_num, &target_objp->orient, &obj_pos, flags | MR_LOCK_DETAIL | MR_A…
3696 ship_model_stop( target_objp );
3717 …submodel_render( debrisp->model_num, debrisp->submodel_num, &target_objp->orient, &obj_pos, flags …
3759 …model_render(Asteroid_info[asteroidp->asteroid_type].model_num[pof], &target_objp->orient, &obj_po…
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/weapon/
H A Dweapons.cpp134 extern int compute_num_homing_objects(object *target_objp);
4767 object* target_objp=wp->homing_object; in weapon_process_post() local
4772 …ndom_in_circle(&warpin, &wp->lssm_target_pos, &target_objp->orient, wip->lssm_warpin_radius + targ… in weapon_process_post()
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/parse/
H A Dsexp.cpp16805 auto target_objp = ship_entry->objp; in sexp_facing() local
16817 vm_vec_sub(&v2, &target_objp->pos, &Player_obj->pos); in sexp_facing()
16858 auto target_objp = oswpt.objp; in sexp_is_facing() local
16876 if (sexp_retail_distance3(origin_objp, target_objp) > threshold) { in sexp_is_facing()
16884 vm_vec_sub(&v2, &target_objp->pos, &origin_objp->pos); in sexp_is_facing()
17829 object *target_objp = &Objects[target_shipp->objnum]; in ship_copy_damage() local
17843 target_objp->hull_strength = source_objp->hull_strength; in ship_copy_damage()
17849 target_objp->shield_quadrant[i] = source_objp->shield_quadrant[i]; in ship_copy_damage()
23299 auto target_objp = ship_entry->objp; in sexp_call_ssm_strike() local
23300 auto start = &target_objp->pos; in sexp_call_ssm_strike()
[all …]
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/playerman/
H A Dplayercontrol.cpp1582 int hud_targetbox_subsystem_in_view(object *target_objp, int *sx, int *sy); in player_inspect_cap_subsys_cargo()
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/playerman/
H A Dplayercontrol.cpp1765 int hud_targetbox_subsystem_in_view(object *target_objp, int *sx, int *sy); in player_inspect_cap_subsys_cargo()
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/parse/
H A Dsexp.cpp15130 object *origin_objp, *target_objp; in sexp_is_facing() local
15161 target_objp = oswpt.objp; in sexp_is_facing()
15169 if (node > 0 && (sexp_distance3(origin_objp, target_objp) > eval_num(node))) { in sexp_is_facing()
15176 vm_vec_sub(&v2, &target_objp->pos, &origin_objp->pos); in sexp_is_facing()
16294 object *target_objp = &Objects[target_shipp->objnum]; in ship_copy_damage() local
16308 target_objp->hull_strength = source_objp->hull_strength; in ship_copy_damage()
16312 for (i = 0; i < MIN(target_objp->n_quadrants, source_objp->n_quadrants); i++) in ship_copy_damage()
16313 target_objp->shield_quadrant[i] = source_objp->shield_quadrant[i]; in ship_copy_damage()