r4839 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Oct 23 08:58:59 EDT 2008


Author: div0
Date: 2008-10-23 08:58:59 -0400 (Thu, 23 Oct 2008)
New Revision: 4839

Modified:
   trunk/data/qcsrc/server/w_seeker.qc
Log:
fix the death messages of seeker


Modified: trunk/data/qcsrc/server/w_seeker.qc
===================================================================
--- trunk/data/qcsrc/server/w_seeker.qc	2008-10-23 12:37:46 UTC (rev 4838)
+++ trunk/data/qcsrc/server/w_seeker.qc	2008-10-23 12:58:59 UTC (rev 4839)
@@ -192,6 +192,7 @@
     missile.takedamage          = DAMAGE_YES;
     missile.damageforcescale    = 4;
     missile.health              = 5;
+	missile.projectiledeathtype = WEP_SEEKER;
 
     setorigin (missile, w_shotorg);
     setmodel  (missile, "models/tagrocket.md3");
@@ -441,6 +442,7 @@
 	setorigin (missile, w_shotorg);
 	setmodel (missile, "models/hagarmissile.mdl"); // precision set below
 	setsize (missile, '0 0 0', '0 0 0');
+	missile.projectiledeathtype = WEP_SEEKER | HITTYPE_SECONDARY;
 
 	missile.effects = EF_LOWPRECISION;
 	missile.modelflags = MF_GRENADE;
@@ -497,7 +499,12 @@
     else if (req == WR_SUICIDEMESSAGE)
         w_deathtypestring = "played with tiny rockets";
     else if (req == WR_KILLMESSAGE)
-            w_deathtypestring = "was taged by";
+	{
+		if(w_deathtype & HITTYPE_SECONDARY)
+			w_deathtypestring = "ran into #'s flac";
+		else
+			w_deathtypestring = "was tagged by";
+	}
     return TRUE;
 };
 




More information about the nexuiz-commits mailing list