set g_monsters_miniboss_chance 5
set g_monsters_miniboss_healthboost 100
set g_monsters_forcedrop 0 "Force all monsters to drop this item on death. Use g_monsters_drop_* cvars to change forced drop item"
+set g_monsters_drop_time 10 "Amount of time before monster's dropped loot disappears"
set g_monsters_drop_type armor "Type of item to drop when forced. Possible values are: health, armor, ammo"
set g_monsters_drop_size medium "Size of the item monsters drop. Possible health/amor values are: small, medium, large. Possible ammo values are: shells, bullets, cells, rockets"
set g_monsters_owners 1 "Monsters will not attack their owners in team matches if set to 1"
float autocvar_g_monsters_miniboss_chance;
float autocvar_g_monsters_miniboss_healthboost;
float autocvar_g_monsters_forcedrop;
+float autocvar_g_monsters_drop_time;
string autocvar_g_monsters_drop_type;
string autocvar_g_monsters_drop_size;
float autocvar_g_monsters_teams;
{
self.monster_delayedattack();
- self.think = SUB_Remove;
- self.nextthink = time + 5;
self.gravity = 1;
self.velocity = randomvec() * 175 + '0 0 325';
self.touch = M_Item_Touch;
- SUB_SetFade(self, time + 5, 1);
+ SUB_SetFade(self, time + autocvar_g_monsters_drop_time, 1);
}
void Monster_DropItem (string itype, string itemsize)
self = oldself;
return FALSE;
}
- SUB_SetFade(self, time + 5, 1);
+ SUB_SetFade(self, time + autocvar_g_monsters_drop_time, 1);
self = oldself;