Added debugging prints...

This commit is contained in:
Finny Merrill 2003-12-09 20:16:51 +00:00
parent 568c4e78f7
commit 6170af7519
2 changed files with 8 additions and 1 deletions

View File

@ -2827,6 +2827,8 @@ void() PlayerPreThink =
if (trace_ent.classname != "force_field") // hack, stuck in forcefield is okay here
self.stucktime++;
printtrace(0);
deathmsg = DMSG_PHYSICS;
if (self.stucktime >= 10) // one second until you die
{

View File

@ -80,4 +80,9 @@ void (float oneline) printtrace =
RPrint ("ent: " + (trace_ent ? "yes" : "no") + sep);
RPrint ("inopen: " + ftos (trace_inopen) + sep);
RPrint ("inwater: " + ftos (trace_inwater) + "\n");
if (trace_ent.solid == SOLID_NOT)
RPrint ("SV_Move on crack: clipped on SOLID_NOT.");
else if (trace_ent.solid == SOLID_TRIGGER)
RPrint ("SV_Move on crack: clipped on SOLID_TRIGGER.");
};