15 for (; head; head = head.chain)
17 if (!
IS_DEAD(head) && !
STAT(FROZEN, head) && !head.vehicle)
19 head_dist2 =
vlen2(head.WarpZone_findradius_dist);
20 if (head_dist2 < best_dist2)
22 best_dist2 = head_dist2;
29 vector my_org = player.origin;
30 vector my_vel = player.velocity;
31 vector my_ang = player.angles;
32 vector their_org = closest.origin;
33 vector their_vel = closest.velocity;
34 vector their_ang = closest.angles;
40 setorigin(player, their_org);
41 setorigin(closest, my_org);
43 closest.velocity = my_vel;
44 closest.angles = my_ang;
47 closest.v_angle = closest.angles;
50 closest.fixangle =
true;
51 closest.oldorigin = my_org;
52 closest.oldvelocity = my_vel;
53 player.velocity = their_vel;
54 player.angles = their_ang;
57 player.v_angle = player.angles;
60 player.fixangle =
true;
61 player.oldorigin = their_org;
62 player.oldvelocity = their_vel;
65 closest.pusher = player;
69 Send_Effect(EFFECT_ELECTRO_COMBO, their_org,
'0 0 0', 1);
70 Send_Effect(EFFECT_ELECTRO_COMBO, my_org,
'0 0 0', 1);
87 PAR(_(
"The %s buff allows you to press %s to switch places with a nearby enemy once."),
COLORED_NAME(
this),
strcat(
"^3", _(
"drop weapon"),
"^7"));
88 PAR(_(
"A common usage of this buff is to jump over the map's void, then swap with an enemy, to cause them to fall into the void."));
89 PAR(_(
"The range that the buff works over is limited, so sometimes it may do nothing if there are no enemies nearby."));
void bot_aim_reset(entity this)
#define MUTATOR_CALLHOOK(id,...)
#define MUTATOR_HOOKFUNCTION(...)
#define MUTATOR_RETURNVALUE
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define COLORED_NAME(this)
#define PHYS_INPUT_BUTTON_CHAT(s)
float autocvar_g_maxpushtime
void Send_Effect(entity eff, vector eff_loc, vector eff_vel, int eff_cnt)
entity WarpZone_FindRadius(vector org, float rad, bool needlineofsight)
@ STATUSEFFECT_REMOVE_NORMAL
Effect is being removed by a function, calls regular removal mechanics.
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))
#define METHOD(cname, name, prototype)
void Drop_Special_Items(entity player)
#define sound(e, c, s, v, a)
bool StatusEffects_active(StatusEffect this, entity actor)
#define PAR(...)
Adds an individually translatable paragraph to PAGE_TEXT without having to deal with strcat and sprin...
void buff_RemoveAll(entity actor, int removal_type)
float autocvar_g_buffs_swapper_range
#define IS_BOT_CLIENT(v)
want: (IS_CLIENT(v) && !IS_REAL_CLIENT(v))