it.debug_trace_button = btn;
if (!btn || skip) continue;
FOREACH_ENTITY(true, {
- it.solid_prev = it.solid;
+ it.solid_prev = it.solid;
it.solid = SOLID_BBOX;
});
vector forward = '0 0 0'; vector right = '0 0 0'; vector up = '0 0 0';
vector pos = it.origin + it.view_ofs;
traceline(pos, pos + forward * max_shot_distance, MOVE_NORMAL, it);
FOREACH_ENTITY(true, {
- it.solid = it.solid_prev;
- it.solid_prev = 0;
+ it.solid = it.solid_prev;
+ it.solid_prev = 0;
});
entity e = trace_ent;
int i = etof(e);
return ammoitems;
}
-.float old_solid;
+.int solid_prev;
string formatmessage(entity this, string msg)
{
float p, p1, p2;
if (p < 0)
break;
-
+
if(!traced)
{
IL_EACH(g_items, true,
{
- it.old_solid = it.solid;
+ it.solid_prev = it.solid;
it.solid = SOLID_BSP;
});
WarpZone_crosshair_trace(this);
IL_EACH(g_items, true,
{
- it.solid = it.old_solid;
+ it.solid = it.solid_prev;
+ it.solid_prev = 0;
});
cursor = trace_endpos;
cursor_ent = trace_ent;