Skip to content
Snippets Groups Projects

Monster loot off-switch

Merged Dr. Jaska requested to merge drjaska/monster-loot-offswitch into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -977,7 +977,7 @@ void Monster_Dead(entity this, entity attacker, float gibbed)
@@ -977,7 +977,7 @@ void Monster_Dead(entity this, entity attacker, float gibbed)
Monster mon = this.monsterdef;
Monster mon = this.monsterdef;
mon.mr_death(mon, this);
mon.mr_death(mon, this);
if(this.candrop && this.weapon)
if(this.candrop && this.weapon && autocvar_g_monsters_drop)
{
{
.entity weaponentity = weaponentities[0]; // TODO: unhardcode
.entity weaponentity = weaponentities[0]; // TODO: unhardcode
W_ThrowNewWeapon(this, this.weapon, 0, this.origin, randomvec() * 150 + '0 0 325', weaponentity);
W_ThrowNewWeapon(this, this.weapon, 0, this.origin, randomvec() * 150 + '0 0 325', weaponentity);
Loading