void monster_item_spawn()
{
self.monster_delayedattack();
-
- self.think = monster_item_spawn;
- self.nextthink = time + 0.1;
+
+ self.think = SUB_Remove;
+ self.nextthink = time + 5;
self.gravity = 1;
self.velocity = randomvec() * 175 + '0 0 325';
self.touch = M_Item_Touch;
case "large": e.monster_delayedattack = spawnfunc_item_armor_big; break;
case "medium": e.monster_delayedattack = spawnfunc_item_armor_medium; break;
case "small": e.monster_delayedattack = spawnfunc_item_armor_small; break;
- default: break;
}
break; // break here?
}
case "large": e.monster_delayedattack = spawnfunc_item_health_large; break;
case "medium": e.monster_delayedattack = spawnfunc_item_health_medium; break;
case "small": e.monster_delayedattack = spawnfunc_item_health_small; break;
- default: break;
}
break; // break here?
}
case "rockets": e.monster_delayedattack = spawnfunc_item_rockets; break;
case "bullets":
case "nails": e.monster_delayedattack = spawnfunc_item_bullets; break;
- default: break;
}
break;
}
- default: break;
}
if(g_minstagib)
float monster_isvalidtarget (entity targ, entity ent)
{
if(!targ || !ent)
- return FALSE; // this check should fix a crash
+ return FALSE; // someone doesn't exist
if(time < game_starttime)
return FALSE; // monsters do nothing before the match has started
-#ifndef MENUQC
// size
const vector DEMON_MIN = '-32 -32 -24';
const vector DEMON_MAX = '32 32 24';
// model
string DEMON_MODEL = "models/monsters/demon.mdl";
-#endif
-
#ifdef SVQC
// cvars
float autocvar_g_monster_demon;
-#ifndef MENUQC
// size
const vector DOG_MAX = '16 16 12';
const vector DOG_MIN = '-16 -16 -24';
// model
string DOG_MODEL = "models/monsters/dog.dpm";
-#endif
-
#ifdef SVQC
// cvars
float autocvar_g_monster_dog;
-#ifndef MENUQC
// size
const vector FISH_MIN = '-16 -16 -24';
const vector FISH_MAX = '16 16 16';
// model
string FISH_MODEL = "models/monsters/fish.mdl";
-#endif
-
#ifdef SVQC
// cvars
float autocvar_g_monster_fish;
-#ifndef MENUQC
// size
const vector HELLKNIGHT_MIN = '-16 -16 -24';
const vector HELLKNIGHT_MAX = '16 16 32';
// model
string HELLKNIGHT_MODEL = "models/monsters/hknight.mdl";
-#endif
-
#ifdef SVQC
// cvars
float autocvar_g_monster_hellknight;
-#ifndef MENUQC
// size
const vector KNIGHT_MIN = '-16 -16 -24';
const vector KNIGHT_MAX = '16 16 32';
// model
string KNIGHT_MODEL = "models/monsters/knight.mdl";
-#endif
-
#ifdef SVQC
// cvars
float autocvar_g_monster_knight;
-#ifndef MENUQC
// size
const vector OGRE_MIN = '-36 -36 -20';
const vector OGRE_MAX = '36 36 50';
// model
string OGRE_MODEL = "models/monsters/ogre.dpm";
-#endif
-
#ifdef SVQC
// cvars
float autocvar_g_monster_ogre;
-#ifndef MENUQC
// size
const vector SHALRATH_MIN = '-36 -36 -24';
const vector SHALRATH_MAX = '36 36 50';
// model
string SHALRATH_MODEL = "models/monsters/mage.dpm";
-#endif
-
#ifdef SVQC
// cvars
float autocvar_g_monster_shalrath;
-#ifndef MENUQC
// size
const vector SHAMBLER_MIN = '-32 -32 -24';
const vector SHAMBLER_MAX = '32 32 50';
// model
string SHAMBLER_MODEL = "models/monsters/shambler.mdl";
-#endif
-
#ifdef SVQC
// cvars
float autocvar_g_monster_shambler;
-#ifndef MENUQC
// size
const vector SOLDIER_MIN = '-16 -16 -30';
const vector SOLDIER_MAX = '16 16 24';
// model
string SOLDIER_MODEL = "models/monsters/soldier.zym";
-#endif
-
#ifdef SVQC
// cvars
float autocvar_g_monster_soldier;
-#ifndef MENUQC
// size
const vector SPIDER_MIN = '-18 -18 -25';
const vector SPIDER_MAX = '18 18 30';
// model
string SPIDER_MODEL = "models/monsters/spider.dpm";
-#endif
-
#ifdef SVQC
// cvars
float autocvar_g_monster_spider;
-#ifndef MENUQC
// size
const vector TARBABY_MIN = '-16 -16 -24';
const vector TARBABY_MAX = '16 16 16';
// model
string TARBABY_MODEL = "models/monsters/tarbaby.mdl";
-#endif
-
#ifdef SVQC
// cvars
float autocvar_g_monster_tarbaby;
-#ifndef MENUQC
// size
const vector WIZARD_MIN = '-16 -16 -45';
const vector WIZARD_MAX = '16 16 16';
// model
string WIZARD_MODEL = "models/monsters/wizard.mdl";
-#endif
-
#ifdef SVQC
// cvars
float autocvar_g_monster_wizard;
-#ifndef MENUQC
// size
const vector ZOMBIE_MIN = '-18 -18 -25';
const vector ZOMBIE_MAX = '18 18 47';
// model
string ZOMBIE_MODEL = "models/monsters/zombie.dpm";
-#endif
-
#ifdef SVQC
// cvars
float autocvar_g_monster_zombie;