10 FOREACH(IMPULSES,
true, it.m_id = i);
14 .void(
entity this) impulse_handle;
17 #define IMPULSE_ALIAS(alias, id) localcmd("\nalias " #alias " \"", id ,"\"\n") 19 #define IMPULSE_ALIAS(alias, id) 22 #define REGISTER_IMPULSE(id, n) _REGISTER_IMPULSE(IMP_##id, id, n) 23 #define _REGISTER_IMPULSE(id, alias, n) \ 24 REGISTER(IMPULSES, id, m_id, new_pure(Impulse)) \ 27 IMPULSE_ALIAS(alias, "impulse " #n); \ 30 #define LEGACY_IMPULSE_ID(alias, id) LEGACY_IMPULSE(alias, id, sprintf("impulse %d", IMP_##alias.impulse)) 36 LOG_FATALF(
"LEGACY_IMPULSE: would define a recursive alias for '%s', use LEGACY_IMPULSE_ID instead", s);
39 #define LEGACY_IMPULSE(alias, id, new) \ 40 STATIC_INIT(legacy_##alias) { \ 42 _impCheck(s, #alias); \ 43 IMPULSE_ALIAS(alias, s); \ 45 SHUTDOWN(legacy_##alias) { IMPULSE_ALIAS(alias, "impulse " #id); } 47 #define X(slot, imp) \ 48 REGISTER_IMPULSE(weapon_group_##slot, imp) \ 49 LEGACY_IMPULSE(weapon_group_##slot, imp, "impulse " #imp) 62 #define X(slot, dir, imp) \ 63 REGISTER_IMPULSE(weapon_priority_##slot##_##dir, imp) \ 64 LEGACY_IMPULSE(weapon_priority_##slot##_##dir, imp, "impulse " #imp) 102 REGISTER_IMPULSE(weapon_byid_##i, imp) 163 LEGACY_IMPULSE(g_waypointsprite_personal, 30, "waypoint_personal_here")
166 LEGACY_IMPULSE(g_waypointsprite_personal_p, 31, "waypoint_personal_crosshair")
169 LEGACY_IMPULSE(g_waypointsprite_personal_d, 32, "waypoint_personal_death")
172 LEGACY_IMPULSE(g_waypointsprite_team_helpme, 33, "waypoint_here_follow")
175 LEGACY_IMPULSE(g_waypointsprite_team_here, 34, "waypoint_here_here")
178 LEGACY_IMPULSE(g_waypointsprite_team_here_p, 35, "waypoint_here_crosshair")
181 LEGACY_IMPULSE(g_waypointsprite_team_here_d, 36, "waypoint_here_death")
184 LEGACY_IMPULSE(g_waypointsprite_team_danger, 37, "waypoint_danger_here")
187 LEGACY_IMPULSE(g_waypointsprite_team_danger_p, 38, "waypoint_danger_crosshair")
190 LEGACY_IMPULSE(g_waypointsprite_team_danger_d, 39, "waypoint_danger_death")
193 LEGACY_IMPULSE(g_waypointsprite_clear_personal, 47, "waypoint_clear_personal")
199 #define CHIMPULSE(id, n) _CHIMPULSE(CHIMPULSE_##id, n) 200 #define _CHIMPULSE(id, n) \ 201 REGISTER(IMPULSES, id, m_id, new_pure(Impulse)) \ REGISTRY(Weapons, 72) STATIC_INIT(WeaponPickup)
void _impCheck(string s, string alias)
REGISTRY_SORT(Notifications)
#define REGISTRY_CHECK(id)
#define REGISTER_IMPULSE(id, n)
#define REGISTER_REGISTRY(id)
#define REGISTRY_DEFINE_GET(id, null)
#define LEGACY_IMPULSE_ID(alias, id)
#define LEGACY_IMPULSE(alias, id, new)
STATIC_INIT(IMPULSES_renumber)
#define FOREACH(list, cond, body)