(ti_on_presentation_load,[
(set_fixed_point_multiplier, 1000),
(create_mesh_overlay, reg0, "mesh_mp_ingame_menu"),
(position_set_x, pos1, 250),
(position_set_y, pos1, 80),
(overlay_set_position, reg0, pos1),
(position_set_x, pos1, 1000),
(position_set_y, pos1, 1000),
(overlay_set_size, reg0, pos1),
(str_clear, s0),
(create_text_overlay, "$g_presentation_obj_show_players_1", s0, tf_scrollable_style_2),
(position_set_x, pos1, 285),
(position_set_y, pos1, 125),
(overlay_set_position, "$g_presentation_obj_show_players_1", pos1),
(position_set_x, pos1, 405),
(position_set_y, pos1, 500),
(overlay_set_area_size, "$g_presentation_obj_show_players_1", pos1),
(set_container_overlay, "$g_presentation_obj_show_players_1"),
#(assign, ":cur_y", 450),
(multiplayer_get_my_player, ":my_player_no"),
(assign, ":cur_y", 10),
(get_max_players, ":num_players"),
(try_for_range, ":player_no", 1, ":num_players"), #0 is server no need to write it
(player_is_active, ":player_no"),
(assign, ":continue", 0),
(try_begin),
(neq, "$g_multiplayer_players_list_action_type", 5),
(neq, "$g_multiplayer_players_list_action_type", 6),
(assign, ":continue", 1),
(else_try),
(eq, "$g_multiplayer_players_list_action_type", 5),
(neq, ":player_no", ":my_player_no"),
(player_get_is_muted, ":is_muted", ":player_no"),
(eq, ":is_muted", 0),
(assign, ":continue", 1),
(else_try),
(eq, "$g_multiplayer_players_list_action_type", 6),
(neq, ":player_no", ":my_player_no"),
(player_get_is_muted, ":is_muted", ":player_no"),
(eq, ":is_muted", 1),
(assign, ":continue", 1),
(try_end),
(eq, ":continue", 1),
(val_add, ":cur_y", escape_menu_item_height),
(try_end),
(create_text_overlay, reg0, "str_choose_a_player", 0),
(overlay_set_color, reg0, 0xFFFFFF),
(position_set_x, pos1, 0),
(position_set_y, pos1, ":cur_y"),
(overlay_set_position, reg0, pos1),
(val_sub, ":cur_y", escape_menu_item_height),
(get_max_players, ":num_players"),
(try_for_range, ":player_no", 1, ":num_players"), #0 is server no need to write it
(player_is_active, ":player_no"),
(player_set_slot, ":player_no", slot_player_button_index, -1),
(assign, ":continue", 0),
(try_begin),
(neq, "$g_multiplayer_players_list_action_type", 5),
(neq, "$g_multiplayer_players_list_action_type", 6),
(assign, ":continue", 1),
(else_try),
(eq, "$g_multiplayer_players_list_action_type", 5),
(neq, ":player_no", ":my_player_no"),
(player_get_is_muted, ":is_muted", ":player_no"),
(eq, ":is_muted", 0),
(assign, ":continue", 1),
(else_try),
(eq, "$g_multiplayer_players_list_action_type", 6),
(neq, ":player_no", ":my_player_no"),
(player_get_is_muted, ":is_muted", ":player_no"),
(eq, ":is_muted", 1),
(assign, ":continue", 1),
(try_end),
##LWBR
(try_begin),#Can't use admin cheats on other admins
(is_between, "$g_multiplayer_players_list_action_type", lwbr_player_list__last, lwbr_player_list__slay + 1),
(multiplayer_get_my_player, ":my_player_no"),
(neq, ":player_no", ":my_player_no"),
(player_is_admin, ":player_no"),
(assign, ":continue", 0),
(try_end),
(try_begin),#you can give gold or heal another admin as you wish
(this_or_next|eq, "$g_multiplayer_players_list_action_type", lwbr_player_list__heal),
(eq, "$g_multiplayer_players_list_action_type", lwbr_player_list__last, lwbr_player_list__gold),
(this_or_next|eq, "$g_multiplayer_players_list_action_type", lwbr_player_list__heal),
(gt, "$g_lwbr_give_gold", 0),#can't remove gold from other admins
(assign, ":continue", 1),
(try_end),
(try_begin),#These cheats do not work on spectators
(this_or_next|eq, "$g_multiplayer_players_list_action_type", lwbr_player_list__swap_team),
(eq, "$g_multiplayer_players_list_action_type", lwbr_player_list__spec),
(player_get_team_no, ":team", ":player_no"),
(eq, ":team", 2),
(assign, ":continue", 0),
(try_end),
(try_begin),#These cheats require a living valid agent
(this_or_next|eq, "$g_multiplayer_players_list_action_type", lwbr_player_list__slay),
(this_or_next|eq, "$g_multiplayer_players_list_action_type", lwbr_player_list__freeze),
(this_or_next|eq, "$g_multiplayer_players_list_action_type", lwbr_player_list__heal),
(this_or_next|eq, "$g_multiplayer_players_list_action_type", lwbr_player_list__invul),
(this_or_next|eq, "$g_multiplayer_players_list_action_type", lwbr_player_list__freeze),
(this_or_next|eq, "$g_multiplayer_players_list_action_type", lwbr_player_list__tp_player_to),#can't tp bodies
(eq, "$g_multiplayer_players_list_action_type", lwbr_player_list__fadeout),
(player_get_agent_id, ":agent", ":player_no"),
(try_begin),
(neg|agent_is_active, ":agent"),
(assign, ":continue", 0),
(try_end),
(try_begin),
(agent_is_active, ":agent"),
(neg|agent_is_alive, ":agent"),
(assign, ":continue", 0),
(try_end),
(try_end),
(try_begin),#These cheats require a dead valid agent
#(this_or_next|eq, "$g_multiplayer_players_list_action_type", lwbr_player_list__),
(eq, "$g_multiplayer_players_list_action_type", lwbr_player_list__respawn),
(player_get_agent_id, ":agent", ":player_no"),
(try_begin),
(neg|agent_is_active, ":agent"),
(assign, ":continue", 0),
(try_end),
(try_begin),
(agent_is_active, ":agent"),
(agent_is_alive, ":agent"),
(assign, ":continue", 0),
(try_end),
(try_end),
(try_begin),#These cheats require a valid agent
#(this_or_next|eq, "$g_multiplayer_players_list_action_type", lwbr_player_list__),
(eq, "$g_multiplayer_players_list_action_type", lwbr_player_list__tp_to_player),#you can tp to the bodies
(player_get_agent_id, ":agent", ":player_no"),
(try_begin),
(neg|agent_is_active, ":agent"),
(assign, ":continue", 0),
(try_end),
(try_end),
##LWBR
(eq, ":continue", 1),
(str_store_player_username, s0, ":player_no"),
(create_button_overlay, ":overlay_id", s0, 0),
(overlay_set_color, ":overlay_id", 0xFFFFFF),
(position_set_x, pos1, 130),
(position_set_y, pos1, ":cur_y"),
(overlay_set_position, ":overlay_id", pos1),
(val_sub, ":cur_y", escape_menu_item_height),
(player_set_slot, ":player_no", slot_player_button_index, ":overlay_id"),
(try_end),
##LWBR
(assign, "$lwbr_overlay1", -1),
(assign, "$lwbr_overlay2", -1),
(assign, "$lwbr_overlay3", -1),
(assign, "$lwbr_overlay4", -1),
(assign, "$lwbr_overlay5", -1),
(try_begin),
(eq, "$g_multiplayer_players_list_action_type", lwbr_player_list__tp_to_player),
(create_game_button_overlay, "$lwbr_overlay2", "@Team 1 Spawn", 0),
(overlay_set_color, "$lwbr_overlay2", 0xFFFFFF),
(position_set_x, pos1, 130),
(position_set_y, pos1, ":cur_y"),
(overlay_set_position, "$lwbr_overlay2", pos1),
(val_sub, ":cur_y", escape_menu_item_height),
(create_game_button_overlay, "$lwbr_overlay3", "@Team 2 Spawn", 0),
(overlay_set_color, "$lwbr_overlay3", 0xFFFFFF),
(position_set_x, pos1, 130),
(position_set_y, pos1, ":cur_y"),
(overlay_set_position, "$lwbr_overlay3", pos1),
(val_sub, ":cur_y", escape_menu_item_height),
(try_end),
(try_begin),
(neq, "$g_multiplayer_players_list_action_type", lwbr_player_list__tp_to_player),
#
(create_game_button_overlay, "$lwbr_overlay1", "@All players", 0),
(overlay_set_color, "$lwbr_overlay1", 0xFFFFFF),
(position_set_x, pos1, 130),
(position_set_y, pos1, ":cur_y"),
(overlay_set_position, "$lwbr_overlay1", pos1),
(val_sub, ":cur_y", escape_menu_item_height),
#
(create_game_button_overlay, "$lwbr_overlay4", "@Team 1", 0),
(overlay_set_color, "$lwbr_overlay4", 0xFFFFFF),
(position_set_x, pos1, 130),
(position_set_y, pos1, ":cur_y"),
(overlay_set_position, "$lwbr_overlay4", pos1),
(val_sub, ":cur_y", escape_menu_item_height),
#
(create_game_button_overlay, "$lwbr_overlay5", "@Team 2", 0),
(overlay_set_color, "$lwbr_overlay5", 0xFFFFFF),
(position_set_x, pos1, 130),
(position_set_y, pos1, ":cur_y"),
(overlay_set_position, "$lwbr_overlay5", pos1),
(val_sub, ":cur_y", escape_menu_item_height),
(try_end),
##LWBR
(presentation_set_duration, 999999),
]),