*/
-cvar_t sv_debugmove = {CVAR_NOTIFY, "sv_debugmove", "0"};
-cvar_t sv_areagrid_mingridsize = {CVAR_NOTIFY, "sv_areagrid_mingridsize", "64"};
+cvar_t sv_debugmove = {CVAR_NOTIFY, "sv_debugmove", "0", "disables collision detection optimizations for debugging purposes"};
+cvar_t sv_areagrid_mingridsize = {CVAR_NOTIFY, "sv_areagrid_mingridsize", "64", "minimum areagrid cell size, smaller values work better for lots of small objects, higher values for large objects"};
void SV_AreaStats_f(void);
{
Cvar_RegisterVariable(&sv_debugmove);
Cvar_RegisterVariable(&sv_areagrid_mingridsize);
- Cmd_AddCommand("sv_areastats", SV_AreaStats_f);
+ Cmd_AddCommand("sv_areastats", SV_AreaStats_f, "prints information on culling grid system");
Collision_Init();
}
ent->fields.server->absmax[2] += 1;
}
- //if (ent->fields.server->solid == SOLID_NOT)
- // return;
-
SV_LinkEdict_AreaGrid(ent);
// if touch_triggers, touch all entities at this node and descend for more
- if (touch_triggers)
+ if (touch_triggers && ent->fields.server->solid != SOLID_NOT)
SV_TouchAreaGrid(ent);
}