.entity tag_entity;
#endif
-#ifndef MENUQC
+#ifdef GAMEQC
.bool debug;
.int sv_entnum;
REGISTER_NET_TEMP(net_debug)
}
#endif
-#ifndef MENUQC
+#ifdef GAMEQC
/**
* 0: off
* 1: on
}
}
+#ifdef DEBUGTRACE
REGISTER_STAT(TRACE_ENT, int)
#ifdef SVQC
bool autocvar_debugtrace;
vector forward = '0 0 0'; vector right = '0 0 0'; vector up = '0 0 0';
MAKEVECTORS(makevectors, it.v_angle, forward, right, up);
vector pos = it.origin + it.view_ofs;
- traceline(pos, pos + forward * MAX_SHOT_DISTANCE, MOVE_NORMAL, it);
+ traceline(pos, pos + forward * max_shot_distance, MOVE_NORMAL, it);
FOREACH_ENTITY(true, {
it.solid = it.solid_prev;
it.solid_prev = 0;
IL_PUSH(g_drawables_2d, e);
}
#endif
+#endif
GENERIC_COMMAND(find, "Search through entities for matching classname")
{
{
case CMD_REQUEST_COMMAND:
{
- FOREACH_ENTITY_CLASS_ORDERED(argv(1), true, LOG_INFOF("%i (%s)\n", it, it.classname));
+ int entcnt = 0;
+ FOREACH_ENTITY_CLASS_ORDERED(argv(1), true,
+ {
+ LOG_INFOF("%i (%s)\n", it, it.classname);
+ ++entcnt;
+ });
+ if(entcnt)
+ LOG_INFOF("Found %d entities\n", entcnt);
return;
}