REGISTER_GAMETYPE(_("Last Man Standing"),lms,g_lms,LMS,"timelimit=20 lives=9 leadlimit=0")
#define g_lms IS_GAMETYPE(LMS)
-REGISTER_GAMETYPE(_("Tower Defense"),td,g_td,TD,"timelimit=0 pointlimit=10 leadlimit=0")
+REGISTER_GAMETYPE(_("Tower Defense"),td,g_td,TD,"timelimit=0 pointlimit=1 leadlimit=0")
#define g_td IS_GAMETYPE(TD)
REGISTER_GAMETYPE(_("Arena"),arena,g_arena,ARENA,"timelimit=20 pointlimit=10 leadlimit=0")
self.bot_attack = FALSE;
self.ammo_fuel = bound(20, 20 * self.level, 100);
self.target_range = 300;
- self.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_BOTCLIP | DPCONTENTS_CORPSE | DPCONTENTS_MONSTERCLIP;
+ self.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_BOTCLIP | DPCONTENTS_MONSTERCLIP;
return FALSE;
}
if(IS_PLAYER(self.enemy))
self.enemy = world;
+
+ float tr = 100;
+
+ if not(self.enemy)
+ if(monster_target.flags & FL_GENERATOR)
+ if(monster_target.health <= 0)
+ tr = 250;
if not(self.enemy) // don't change targets while attacking
- if(vlen(monster_target.origin - self.origin) <= 100)
+ if(vlen(monster_target.origin - self.origin) <= tr)
{
if(monster_target.target2)
{
{
self.monster_attack = FALSE;
self.bot_attack = FALSE;
+ self.solid = SOLID_CORPSE;
if(self.newfuel)
{
if(g_td)
{
ActivateTeamplay();
- fraglimit_override = 0; // not supported by TD
- leadlimit_override = 0;
+ leadlimit_override = 0; // not supported by TD
timelimit_override = 0;
MUTATOR_ADD(gamemode_towerdefense);
}