r4173 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Aug 24 11:54:53 EDT 2008


Author: div0
Date: 2008-08-24 11:54:53 -0400 (Sun, 24 Aug 2008)
New Revision: 4173

Modified:
   trunk/data/qcsrc/server/g_hook.qc
Log:
count hook-pulling as push (for "Who pushed me?")


Modified: trunk/data/qcsrc/server/g_hook.qc
===================================================================
--- trunk/data/qcsrc/server/g_hook.qc	2008-08-24 15:30:57 UTC (rev 4172)
+++ trunk/data/qcsrc/server/g_hook.qc	2008-08-24 15:54:53 UTC (rev 4173)
@@ -170,6 +170,8 @@
 					self.owner.velocity = self.owner.velocity - dv * 0.5;
 					self.aiment.velocity = self.aiment.velocity - dv * 0.5;
 					self.aiment.flags = self.aiment.flags - (self.aiment.flags & FL_ONGROUND);
+					self.aiment.pusher = self.owner;
+					self.aiment.pushltime = time + cvar("g_maxpushtime");
 				}
 			}
 		}




More information about the nexuiz-commits mailing list