/dports/games/dxx-rebirth/dxx-rebirth_20211220-src/similar/main/ |
H A D | powerup.cpp | 269 void pickup(player_flags &powerup_flags) const in pickup() 271 powerup_flags |= player_flag; in pickup() 282 void pickup(player_flags &powerup_flags) const in pickup() 296 void pickup(player_flags &powerup_flags) const in pickup() 309 void pickup(player_flags &powerup_flags) const in pickup() 311 process(powerup_flags); in pickup() 316 powerup_flags |= active in process() 351 process(powerup_flags); in pickup() 355 powerup_flags |= PLAYER_FLAGS_QUAD_LASERS; in process() 370 auto &powerup_flags = player_info.powerup_flags; in player_hit_powerup() local [all …]
|
H A D | gamecntl.cpp | 379 if (Controls.state.energy_to_shield && (player_info.powerup_flags & PLAYER_FLAGS_CONVERTER)) in do_weapon_n_item_stuff() 1398 auto &pl_flags = player_info.powerup_flags; in HandleTestKey() 1734 player_info.powerup_flags |= PLAYER_FLAGS_QUAD_LASERS; in FinalCheats() 1753 player_info.powerup_flags |= PLAYER_FLAGS_QUAD_LASERS; in FinalCheats() 1792 player_info.powerup_flags |= PLAYER_FLAGS_QUAD_LASERS; in FinalCheats() 1806 player_info.powerup_flags |= PLAYER_FLAGS_BLUE_KEY | PLAYER_FLAGS_RED_KEY | PLAYER_FLAGS_GOLD_KEY; in FinalCheats() 1812 auto &pl_flags = player_info.powerup_flags; in FinalCheats() 1826 auto &pl_flags = player_info.powerup_flags; in FinalCheats() 1982 menu_bit_wrapper_t(pl_info.powerup_flags, {}) in cheat_menu_bit_invulnerability() 2005 menu_bit_wrapper_t(pl_info.powerup_flags, {}) in cheat_menu_bit_cloak() [all …]
|
H A D | ai.cpp | 955 if (!(player_info.powerup_flags & PLAYER_FLAGS_CLOAKED)) in do_ai_robot_hit_attack() 1076 const auto powerup_flags = player_info.powerup_flags; in ai_fire_laser_at_player() local 1110 if (powerup_flags & PLAYER_FLAGS_CLOAKED) { in ai_fire_laser_at_player() 1671 const auto powerup_flags = player_info.powerup_flags; in compute_vis_and_vec() local 1672 if (powerup_flags & PLAYER_FLAGS_CLOAKED) in compute_vis_and_vec() 1825 const player_flags powerup_flags, in ai_door_is_openable() argument 3004 if (!(powerup_flags & PLAYER_FLAGS_CLOAKED) || in init_ai_frame() 3005 (powerup_flags & PLAYER_FLAGS_HEADLIGHT_ON) || in init_ai_frame() 3285 if (!(player_info.powerup_flags & PLAYER_FLAGS_CLOAKED)) in do_ai_frame() 3376 if (player_info.powerup_flags & PLAYER_FLAGS_CLOAKED) { in do_ai_frame() [all …]
|
H A D | collide.cpp | 180 if (player_info.powerup_flags & static_cast<PLAYER_FLAG>(w.keys)) in collide_robot_and_wall() 420 if (!(player_info.powerup_flags & PLAYER_FLAGS_INVULNERABLE)) in collide_player_and_wall() 1425 auto &pl_flags = player_info.powerup_flags; in do_final_boss_hacks() 1993 if (player_info.powerup_flags & PLAYER_FLAGS_QUAD_LASERS) in drop_player_eggs() 1996 if (player_info.powerup_flags & PLAYER_FLAGS_CLOAKED) in drop_player_eggs() 2000 if (player_info.powerup_flags & PLAYER_FLAGS_MAP_ALL) in drop_player_eggs() 2003 if (player_info.powerup_flags & PLAYER_FLAGS_AFTERBURNER) in drop_player_eggs() 2006 if (player_info.powerup_flags & PLAYER_FLAGS_AMMO_RACK) in drop_player_eggs() 2009 if (player_info.powerup_flags & PLAYER_FLAGS_CONVERTER) in drop_player_eggs() 2012 if (player_info.powerup_flags & PLAYER_FLAGS_HEADLIGHT) in drop_player_eggs() [all …]
|
H A D | gameseq.cpp | 509 player_info.powerup_flags = {}; in init_player_stats_game() 587 auto &powerup_flags = player_info.powerup_flags; in init_player_stats_level() local 588 powerup_flags &= ~(PLAYER_FLAGS_INVULNERABLE | PLAYER_FLAGS_CLOAKED); in init_player_stats_level() 590 powerup_flags &= ~(PLAYER_FLAGS_MAP_ALL); in init_player_stats_level() 598 powerup_flags |= all_keys; in init_player_stats_level() 600 powerup_flags &= ~all_keys; in init_player_stats_level() 640 …player_info.powerup_flags &= ~(PLAYER_FLAGS_QUAD_LASERS | PLAYER_FLAGS_CLOAKED | PLAYER_FLAGS_INVU… in init_player_stats_new_ship() 649 player_info.powerup_flags |= map_granted_flags_to_player_flags(GrantedItems); in init_player_stats_new_ship() 656 player_info.powerup_flags |= PLAYER_FLAGS_INVULNERABLE; in init_player_stats_new_ship() 1525 auto &pl_flags = player_info.powerup_flags; in do_cloak_invul_secret_stuff() [all …]
|
H A D | newdemo.cpp | 1960 if (player_info.powerup_flags & PLAYER_FLAGS_CLOAKED) { in newdemo_read_demo_start() 2651 player_info.powerup_flags = old_player_flags; in newdemo_read_frame_information() 2670 player_info.powerup_flags = new_player_flags; in newdemo_read_frame_information() 2876 player_info.powerup_flags &= ~PLAYER_FLAGS_CLOAKED; in newdemo_read_frame_information() 2879 player_info.powerup_flags |= PLAYER_FLAGS_CLOAKED; in newdemo_read_frame_information() 2897 player_info.powerup_flags |= PLAYER_FLAGS_CLOAKED; in newdemo_read_frame_information() 2900 player_info.powerup_flags &= ~PLAYER_FLAGS_CLOAKED; in newdemo_read_frame_information() 3264 player_info.powerup_flags &= ~PLAYER_FLAGS_CLOAKED; in newdemo_read_frame_information() 3463 player_info.powerup_flags |= PLAYER_FLAGS_CLOAKED; in newdemo_goto_end() 3508 if (player_info.powerup_flags & PLAYER_FLAGS_CLOAKED) { in newdemo_goto_end() [all …]
|
H A D | multi.cpp | 512 player_info.powerup_flags &= clear_flags; in multi_endlevel_score() 1599 auto &powerup_flags = obj->ctype.player_info.powerup_flags; in multi_do_fire() local 1601 powerup_flags |= PLAYER_FLAGS_QUAD_LASERS; in multi_do_fire() 1603 powerup_flags &= ~PLAYER_FLAGS_QUAD_LASERS; in multi_do_fire() 1806 player_info.powerup_flags &= ~PLAYER_FLAGS_FLAG; in multi_do_player_deres() 2050 player_info.powerup_flags |= PLAYER_FLAGS_CLOAKED; in multi_do_cloak() 2702 if (player_info.powerup_flags & PLAYER_FLAGS_CLOAKED) in multi_send_player_deres() 4496 player_info.powerup_flags &=~(PLAYER_FLAGS_FLAG); in DropOrb() 4518 if (!(player_info.powerup_flags & PLAYER_FLAGS_FLAG)) in DropFlag() 4537 player_info.powerup_flags &=~(PLAYER_FLAGS_FLAG); in DropFlag() [all …]
|
H A D | lighting.cpp | 162 if (obj.ctype.player_info.powerup_flags & PLAYER_FLAGS_HEADLIGHT_ON) { in apply_light() 297 if (objp.ctype.player_info.powerup_flags & PLAYER_FLAGS_HEADLIGHT_ON) in compute_player_light_emission_intensity() 581 if (player_info.powerup_flags & PLAYER_FLAGS_HEADLIGHT) { in toggle_headlight_active() 582 player_info.powerup_flags ^= PLAYER_FLAGS_HEADLIGHT_ON; in toggle_headlight_active()
|
H A D | gauges.cpp | 1157 const auto player_key_flags = player_info.powerup_flags; in hud_show_keys() 1284 if (! (player_info.powerup_flags & PLAYER_FLAGS_AFTERBURNER)) in hud_show_afterburner() 1758 if (player_info.powerup_flags & PLAYER_FLAGS_QUAD_LASERS) in hud_show_weapons() 2587 if (player_info.powerup_flags & PLAYER_FLAGS_QUAD_LASERS) in draw_weapon_info_sub() 2961 if (player_info.powerup_flags & PLAYER_FLAGS_AFTERBURNER) in sb_draw_afterburner() 3504 const auto &pl_flags = objp->ctype.player_info.powerup_flags; in show_HUD_names() 3750 auto &pl_flags = player_info.powerup_flags; in render_gauges() 3785 if (player_info.powerup_flags & PLAYER_FLAGS_INVULNERABLE) in render_gauges() 3794 newdemo_record_player_flags(player_info.powerup_flags.get_player_flags()); in render_gauges() 3796 draw_keys_state(hudctx, player_info.powerup_flags).draw_all_cockpit_keys(); in render_gauges() [all …]
|
H A D | fuelcen.cpp | 745 if (player_info.powerup_flags & PLAYER_FLAGS_FLAG) 747 player_info.powerup_flags &= ~PLAYER_FLAGS_FLAG; 766 player_info.powerup_flags &= ~PLAYER_FLAGS_FLAG;
|
H A D | controls.cpp | 112 if (player_info.powerup_flags & PLAYER_FLAGS_AFTERBURNER) in read_flying_controls()
|
H A D | weapon.cpp | 966 const auto max = PLAYER_MAX_AMMO(player_info.powerup_flags, Secondary_ammo_max[weapon_index]); in pick_up_secondary() 1177 const auto max = PLAYER_MAX_AMMO(player_info.powerup_flags, VULCAN_AMMO_MAX); in pick_up_vulcan_ammo() 1512 if ((player_info.powerup_flags & PLAYER_FLAGS_QUAD_LASERS) && !GrantedItems.has_quad_laser()) in DropCurrentWeapon() 1596 player_info.powerup_flags &= ~PLAYER_FLAGS_QUAD_LASERS; in DropCurrentWeapon()
|
H A D | game.cpp | 1060 auto &pl_flags = player_info.powerup_flags; in do_cloak_stuff() 1080 auto &pl_flags = player_info.powerup_flags; in do_invulnerable_stuff() 1123 const auto have_afterburner = player_info.powerup_flags & PLAYER_FLAGS_AFTERBURNER; in do_afterburner_stuff() 1948 init_ai_frame(player_info.powerup_flags, Controls); in GameProcessFrame() 1951 auto &pl_flags = player_info.powerup_flags; in GameProcessFrame()
|
H A D | state.cpp | 728 pl_rw->flags = pl_info.powerup_flags.get_player_flags(); in state_player_to_player_rw() 763 …if (!(pl_info.powerup_flags & PLAYER_FLAGS_CLOAKED) || pl_info.cloak_time - GameTime64 < F1_0*(-18… in state_player_to_player_rw() 767 …if (!(pl_info.powerup_flags & PLAYER_FLAGS_INVULNERABLE) || pl_info.invulnerable_time - GameTime64… in state_player_to_player_rw() 797 pl_info.powerup_flags = player_flags(pl_rw->flags); in state_player_rw_to_player() 1985 pl_info.powerup_flags |= (plrobj.ctype.player_info.powerup_flags & in state_restore_all_sub() 2490 Netgame.net_player_flags[i] = pi.powerup_flags; in state_restore_all_sub()
|
H A D | laser.cpp | 722 …D1 && is_laser_weapon_type(weapon_type) && (parent->ctype.player_info.powerup_flags & PLAYER_FLAGS… in Laser_create_new() 1003 …if ((objp == get_local_player().objnum) && (objp->ctype.player_info.powerup_flags & PLAYER_FLAGS_C… in object_is_trackable() 1145 if (curobjp->ctype.player_info.powerup_flags & PLAYER_FLAGS_CLOAKED) in find_homing_object_complete() 1830 if (player_info.powerup_flags & PLAYER_FLAGS_QUAD_LASERS) in do_laser_firing_player() 2179 if (curobjp->ctype.player_info.powerup_flags & PLAYER_FLAGS_CLOAKED) in create_smart_children()
|
H A D | cntrlcen.cpp | 395 …const auto &player_pos = (player_info.powerup_flags & PLAYER_FLAGS_CLOAKED) ? Believed_player_pos … in do_controlcen_frame()
|
H A D | object.cpp | 419 auto &player_flags = obj->ctype.player_info.powerup_flags; in draw_polygon_object() 447 if (obj->type==OBJ_PLAYER && (obj->ctype.player_info.powerup_flags & PLAYER_FLAGS_CLOAKED)) in draw_polygon_object() 1344 player_info.powerup_flags &= ~PLAYER_FLAGS_INVULNERABLE; in dead_player_end() 1481 player_info.powerup_flags &= ~PLAYER_FLAGS_HEADLIGHT_ON; in dead_player_frame()
|
H A D | automap.cpp | 995 …_segment_visibility(LevelUniqueAutomapState, plrobj.ctype.player_info.powerup_flags & PLAYER_FLAGS… in recompute_automap_segment_visibility() 1570 …if ((cheats.fullautomap || player_info.powerup_flags & PLAYER_FLAGS_MAP_ALL) && !LevelUniqueAutoma… in add_segment_edges()
|
H A D | wall.cpp | 1119 wall_hit_process_t wall_hit_process(const player_flags powerup_flags, const vmsegptridx_t seg, cons… in wall_hit_process() argument 1171 if (!(powerup_flags & static_cast<PLAYER_FLAG>(w->keys))) in wall_hit_process()
|
H A D | aipath.cpp | 366 #define AI_DOOR_OPENABLE_PLAYER_FLAGS player_info.powerup_flags, in create_path_points()
|
H A D | fireball.cpp | 1011 …if ((player_info.powerup_flags & PLAYER_FLAGS_QUAD_LASERS) || weapon_nearby(vcobjptridx, vcsegptr,… in maybe_replace_powerup_with_energy()
|
/dports/games/dxx-rebirth/dxx-rebirth_20211220-src/common/main/ |
H A D | fwd-player.h | 39 #define PLAYER_MAX_AMMO(powerup_flags,BASE) ((powerup_flags & PLAYER_FLAGS_AMMO_RACK) ? BASE * 2 : … argument 51 #define PLAYER_MAX_AMMO(powerup_flags,BASE) (static_cast<void>(powerup_flags), BASE) argument
|
H A D | ai.h | 259 …st vmobjptr_t &robot, const vcsegidx_t &start_seg, const player_flags powerup_flags, std::array<se… in create_bfs_list() argument 261 return create_bfs_list(robot, start_seg, powerup_flags, bfs_list.data(), N); in create_bfs_list()
|
H A D | object.h | 135 player_flags powerup_flags; member
|
/dports/games/dxx-rebirth/dxx-rebirth_20211220-src/d2x-rebirth/main/ |
H A D | escort.cpp | 207 return ai_door_is_openable(robot, powerup_flags, segp, sidenum); in segment_is_reachable() 261 if (segment_is_reachable(robot, cursegp, i, powerup_flags)) { in create_bfs_list() 882 const auto powerup_flags = player_info.powerup_flags; in escort_create_path_to_goal() local 899 goal_seg = escort_get_goal_segment(objp, OBJ_CNTRLCEN, -1, powerup_flags); in escort_create_path_to_goal() 916 const auto &&ef = exists_fuelcen_in_mine(objp->segnum, powerup_flags); in escort_create_path_to_goal() 930 goal_seg = escort_get_goal_segment(objp, OBJ_POWERUP, -1, powerup_flags); in escort_create_path_to_goal() 933 goal_seg = escort_get_goal_segment(objp, OBJ_ROBOT, -1, powerup_flags); in escort_create_path_to_goal() 936 goal_seg = escort_get_goal_segment(objp, OBJ_HOSTAGE, -1, powerup_flags); in escort_create_path_to_goal() 1571 auto &plr_flags = playerobjp->ctype.player_info.powerup_flags; in maybe_steal_flag_item() 2009 next_goal = escort_set_goal_object(plrobj.ctype.player_info.powerup_flags); in do_escort_menu() [all …]
|