r2781 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Jul 6 05:27:41 EDT 2007
Author: div0
Date: 2007-07-06 05:27:40 -0400 (Fri, 06 Jul 2007)
New Revision: 2781
Modified:
trunk/data/qcsrc/server/cl_impulse.qc
trunk/data/qcsrc/server/miscfunctions.qc
Log:
impulse 99 now goes to the personal waypoint (deploy using g_waypointsprite_personal), which can be cleared using g_waypointsprite_clear_personal again
(to help with speedruns)
Modified: trunk/data/qcsrc/server/cl_impulse.qc
===================================================================
--- trunk/data/qcsrc/server/cl_impulse.qc 2007-07-04 22:29:22 UTC (rev 2780)
+++ trunk/data/qcsrc/server/cl_impulse.qc 2007-07-06 09:27:40 UTC (rev 2781)
@@ -182,6 +182,14 @@
{
if(imp == 99)
{
+ if(self.waypointsprite_deployed_personal)
+ {
+ tracebox(self.waypointsprite_deployed_personal.origin, self.mins, self.maxs, self.waypointsprite_deployed_personal.origin, MOVE_WORLDONLY, self);
+ if(trace_startsolid)
+ sprint(self, "Cannot move there, cheater\n");
+ else
+ setorigin(self, self.waypointsprite_deployed_personal.origin);
+ }
self.items |= (IT_LASER | IT_UZI | IT_SHOTGUN | IT_GRENADE_LAUNCHER | IT_ELECTRO | IT_CRYLINK | IT_NEX | IT_HAGAR | IT_ROCKET_LAUNCHER);
self.ammo_shells = cvar("g_pickup_shells_max");
self.ammo_nails = cvar("g_pickup_nails_max");
Modified: trunk/data/qcsrc/server/miscfunctions.qc
===================================================================
--- trunk/data/qcsrc/server/miscfunctions.qc 2007-07-04 22:29:22 UTC (rev 2780)
+++ trunk/data/qcsrc/server/miscfunctions.qc 2007-07-06 09:27:40 UTC (rev 2781)
@@ -72,7 +72,7 @@
tracebox(e.origin, e.mins, e.maxs, e.origin, MOVE_WORLDONLY, e);
if(trace_startsolid)
{
- dprint("could not get out of solid (", vtos(o), ")");
+ dprint("could not get out of solid (", vtos(o), ")\n");
return;
}
}
More information about the nexuiz-commits
mailing list