if(IS_CLIENT(this))
return; // don't remove it?
- .entity weaponentity = weaponentities[0];
if(!this) { return; }
if(!MUTATOR_CALLHOOK(MonsterRemove, this))
Send_Effect(EFFECT_ITEM_PICKUP, this.origin, '0 0 0', 1);
- if(this.(weaponentity)) { delete(this.(weaponentity)); }
+ for(int slot = 0; slot < MAX_WEAPONSLOTS; ++slot)
+ {
+ .entity weaponentity = weaponentities[slot];
+ if(this.(weaponentity))
+ delete(this.(weaponentity));
+ }
if(this.iceblock) { delete(this.iceblock); }
WaypointSprite_Kill(this.sprite);
delete(this);
PS(player).m_weapon = WEP_BLASTER;
W_Blaster_Attack(
player,
- weaponentities[0],
+ weaponentities[0], // TODO: unhardcode
WEP_BLASTER.m_id | HITTYPE_SECONDARY,
WEP_CVAR_SEC(vaporizer, shotangle),
WEP_CVAR_SEC(vaporizer, damage),
this.items &= ~this.items_added;
//for(int slot = 0; slot < MAX_WEAPONSLOTS; ++slot)
- //W_WeaponFrame(this, weaponentities[slot]);
+ //{
+ //.entity weaponentity = weaponentities[slot];
+ //W_WeaponFrame(this, weaponentity);
+ //}
.entity weaponentity = weaponentities[0]; // TODO
W_WeaponFrame(this, weaponentity);