}\r
\r
if (item.health)\r
- if (player.health < item.max_health)\r
{\r
- pickedup = TRUE;\r
if(item.dmg) // consumable item\r
- Item_Consumable_Spawn(self, player);\r
- else\r
{\r
+ if(player.stomach_load + item.dmg <= player.stomach_maxload)\r
+ {\r
+ pickedup = TRUE;\r
+ Item_Consumable_Spawn(self, player);\r
+ }\r
+ }\r
+ else if (player.health < item.max_health)\r
+ {\r
+ pickedup = TRUE;\r
player.health = min(player.health + item.health, item.max_health);\r
player.pauserothealth_finished = max(player.pauserothealth_finished, time + cvar("g_balance_pause_health_rot"));\r
}\r