Module dpmod: Change committed

havoc at icculus.org havoc at icculus.org
Sat Jul 12 07:40:50 EDT 2003


Commiter   : havoc
CVSROOT    : /cvs/cvsroot/twilight
Module     : dpmod
Commit time: 2003-07-12 11:40:50 UTC

Log message:

frags and obit messages for monsters in deathmatch

Modified files:
     qc/client.qc

------=MIME.823e7da894f8e65175dc21990f8d396b
Content-Type: text/plain; name="dpmod.20030712.114050.havoc.diff"
Content-Disposition: attachment; filename="dpmod.20030712.114050.havoc.diff"
Content-Transfer-Encoding: 8bit

Index: dpmod/qc/client.qc
diff -u dpmod/qc/client.qc:1.8 dpmod/qc/client.qc:1.9
--- dpmod/qc/client.qc:1.8	Sat Jul 12 06:02:55 2003
+++ dpmod/qc/client.qc	Sat Jul 12 07:40:40 2003
@@ -1595,7 +1595,10 @@
 		dtype = DTYPE_WORLD;
 	}
 	else if ((targ.flags & FL_MONSTER) && attacker.classname == "player")
+	{
+		ChangeFrags(attacker, 1);
 		dtype = DTYPE_PLAYER;
+	}
 	else if (targ.classname == "player" && attacker.classname == "player")
 	{
 		ChangeFrags(attacker, 1);
@@ -1604,7 +1607,7 @@
 	else
 		dtype = DTYPE_OTHER;
 
-	if (targ.doobits/* || (targ.flags & FL_MONSTER)*/)
+	if (targ.doobits || (deathmatch && (targ.flags & FL_MONSTER)))
 	{
 		newmis = spawn();
 		newmis.classname = "obituaryentity";


More information about the twilight-commits mailing list