GLOBAL void TP_Msg_KillMe_f (void) { extern cvar_t tp_name_rl, tp_name_lg; MSGPART point = ""; MSGPART kill_me = "{&cb1akill me [&cfff}{%l}{&cf2a]&cfff}"; MSGPART weapon = ""; MSGPART weapon_ammo = ""; MSGPART extra_rockets = ""; MSGPART extra_cells = ""; if (DEAD()) return; TP_FindPoint(); if (INPOINT(teammate)) point = va ("{&c0b0%s&cfff} ", Macro_PointName()); // Saying teammate kill me isn't much help. Only report if you can say e.g. Up2 Kill Me! if (HOLD_RL()) { weapon = tp_name_rl.string; weapon_ammo = ":$rockets "; } else if (HOLD_LG()) { weapon = tp_name_lg.string; weapon_ammo = ":$cells "; } if (!HOLD_RL() && HAVE_ROCKETS()) extra_rockets = "{&cf13r&cfff}:$rockets "; // see below comment if (!HOLD_LG() && HAVE_CELLS()) extra_cells = "{&c2aac&cfff}:$cells"; //the "r" and "c" are hard-coded to have the same colors as tp_name_rl and tp_name_lg. Not sure if this is a good idea //since the user can change those colors and then it won't match up TP_Send_TeamSay("%s%s %s%s%s%s", point, kill_me, weapon, weapon_ammo, extra_rockets, extra_cells); }
GLOBAL void TP_Msg_Lost_f (void) { MSGPART quad = ""; MSGPART over = ""; MSGPART dropped_or_lost = ""; MSGPART location_enemy = " {&cf00[&cfff}{%d}{&cf00]&cfff} {%E}"; extern cvar_t tp_name_quad; if (DEAD()) { if (HAVE_QUAD()) { quad = tp_name_quad.string; over = " over "; location_enemy = "{&cf00[&cfff}{%d}{&cf00]&cfff} {%E}"; } else dropped_or_lost = "{&cf00lost&cfff}"; if (HOLD_RL() || HOLD_LG()) { dropped_or_lost = "{&cf00DROPPED} $weapon"; location_enemy = " {&cf00[&cfff}{%d}{&cf00]&cfff} {%E}"; } } else dropped_or_lost = "{&cf00lost&cfff}"; TP_Send_TeamSay("%s%s%s%s", quad, over, dropped_or_lost, location_enemy); }
GLOBAL void TP_Msg_Lost_f (void) { // Even though tp_msgreport is the same thing as this when dead, it's still useful to have tp_msglost for reporting last lost location after respawning MSGPART msg1 = ""; MSGPART msg2 = ""; if (DEAD()) { if (HAVE_QUAD()) { msg1 = tp_ib_name_quad " over "; } if (HOLD_RL() || HOLD_LG() || HOLD_GL()) // gl could be useful too { msg2 = "{&cf00lost&cfff} " COLORED(f0f,$weapon) " $[{%d}$] %E"; } else { msg2 = "{&cf00lost&cfff} $[{%d}$] %E"; } } else // if currently alive, then report last death location msg1 = "{&cf00lost&cfff} $[{%d}$] %E"; TP_Send_TeamSay("%s%s", msg1, msg2); }