r4343 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Sep 4 10:38:03 EDT 2008
Author: div0
Date: 2008-09-04 10:38:03 -0400 (Thu, 04 Sep 2008)
New Revision: 4343
Modified:
trunk/data/qcsrc/server/portals.qc
Log:
if someone teleports, recharge the portal's health
Modified: trunk/data/qcsrc/server/portals.qc
===================================================================
--- trunk/data/qcsrc/server/portals.qc 2008-09-04 14:11:04 UTC (rev 4342)
+++ trunk/data/qcsrc/server/portals.qc 2008-09-04 14:38:03 UTC (rev 4343)
@@ -135,6 +135,7 @@
// reset fade counter
teleporter.portal_wants_to_vanish = 0;
teleporter.fade_time = time + 15;
+ teleporter.enemy.health = 300;
}
float Portal_FindSafeOrigin(entity portal)
@@ -372,7 +373,7 @@
own.portal_in = portal;
if(own.portal_out)
Portal_Connect(own.portal_in, own.portal_out);
- return 1;
+ return 2;
}
float Portal_SetOutPortal(entity own, entity portal)
{
More information about the nexuiz-commits
mailing list