pickedup = TRUE;
player.superweapons_finished = max(player.superweapons_finished, time) + item.superweapons_finished;
}
- if (item.max_health)
- {
- pickedup = TRUE;
- // extra life powerup handled by mutators
- }
:skip
return;
if (self.owner == other)
return;
- if(MUTATOR_CALLHOOK(ItemTouch))
- return;
+
+ switch(MUTATOR_CALLHOOK(ItemTouch))
+ {
+ case MUT_ITEMTOUCH_RETURN: { return; }
+ case MUT_ITEMTOUCH_PICKUP: { goto pickup; }
+ }
if (self.classname == "droppedweapon")
{
return;
}
+ :pickup
+
other.last_pickup = time;
pointparticles(particleeffectnum("item_pickup"), self.origin, '0 0 0', 1);