mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-10 07:11:51 +00:00
Added debugging prints...
This commit is contained in:
parent
568c4e78f7
commit
6170af7519
2 changed files with 8 additions and 1 deletions
|
@ -2827,6 +2827,8 @@ void() PlayerPreThink =
|
||||||
if (trace_ent.classname != "force_field") // hack, stuck in forcefield is okay here
|
if (trace_ent.classname != "force_field") // hack, stuck in forcefield is okay here
|
||||||
self.stucktime++;
|
self.stucktime++;
|
||||||
|
|
||||||
|
printtrace(0);
|
||||||
|
|
||||||
deathmsg = DMSG_PHYSICS;
|
deathmsg = DMSG_PHYSICS;
|
||||||
if (self.stucktime >= 10) // one second until you die
|
if (self.stucktime >= 10) // one second until you die
|
||||||
{
|
{
|
||||||
|
|
5
debug.qc
5
debug.qc
|
@ -80,4 +80,9 @@ void (float oneline) printtrace =
|
||||||
RPrint ("ent: " + (trace_ent ? "yes" : "no") + sep);
|
RPrint ("ent: " + (trace_ent ? "yes" : "no") + sep);
|
||||||
RPrint ("inopen: " + ftos (trace_inopen) + sep);
|
RPrint ("inopen: " + ftos (trace_inopen) + sep);
|
||||||
RPrint ("inwater: " + ftos (trace_inwater) + "\n");
|
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.");
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue