CSQCModel_UnlinkEntity(veh);
Vehicle info = Vehicles_from(veh.vehicleid);
- WITHSELF(veh, info.vr_enter(info, veh));
+ info.vr_enter(info, veh);
antilag_clear(pl, CS(pl));
}
crosshair_trace(this);
w_shotdir.z = normalize(trace_endpos - org).z * 0.5;
.entity weaponentity = weaponentities[0];
- WITHSELF(vehic, wep1.wr_think(wep1, vehic, weaponentity, 1));
+ wep1.wr_think(wep1, vehic, weaponentity, 1);
}
if(autocvar_g_vehicle_racer_rocket_locktarget)
if(PHYS_INPUT_BUTTON_ATCK2(this))
{
.entity weaponentity = weaponentities[1];
- WITHSELF(vehic, wep2a.wr_think(wep2a, vehic, weaponentity, 2));
+ wep2a.wr_think(wep2a, vehic, weaponentity, 2);
vehic.delay = time + autocvar_g_vehicle_raptor_bombs_refire;
vehic.lip = time;
}
if(PHYS_INPUT_BUTTON_ATCK2(this))
{
.entity weaponentity = weaponentities[1];
- WITHSELF(vehic, wep2b.wr_think(wep2b, vehic, weaponentity, 2));
+ wep2b.wr_think(wep2b, vehic, weaponentity, 2);
vehic.delay = time + autocvar_g_vehicle_raptor_flare_refire;
vehic.lip = time;
}
setthink(e, ClientInit_CheckUpdate);
Net_LinkEntity(e, false, 0, ClientInit_SendEntity);
- WITHSELF(e, ClientInit_CheckUpdate(e));
+ ClientInit_CheckUpdate(e);
}
/*
FOREACH_ENTITY_ORDERED(IS_NOT_A_CLIENT(it), {
if (it.reset)
{
- WITHSELF(it, it.reset(it));
+ WITHSELF(it, it.reset(it)); // needs WITHSELF, as some spawnfuncs are set to .reset
continue;
}
if (it.team_saved) it.team = it.team_saved;
targ.iceblock = ice;
targ.revival_time = 0;
- WITHSELF(ice, Ice_Think(ice));
+ Ice_Think(ice);
RemoveGrapplingHook(targ);
else
it.team = NUM_TEAM_1;
- // Dubbles as teamchange
- WITHSELF(it, turret_respawn(it));
+ // Doubles as teamchange
+ turret_respawn(it);
));
}
void assault_roundstart_use_this(entity this)
{
Weapon w = Weapons_from(weapon_type);
weapon_dropevent_item = weapon_item;
- WITHSELF(player, w.event(w, player));
+ w.event(w, player);
}