Open SpannerSpammer opened 11 years ago
@SpannerSpammer item_battery is not really used on any stock tfc maps to give armor, "item_armor1-3" are used instead, which is the reason why it's not implemented properly for TFC. I can see however it's useful to have this working properly for maps that has been ported from half-life.
@alfred-valve This is easily fixed by adding a class stat check like so:
pPlayer->TeamFortress_CheckClassStats();
In the gamerules function:
PlayerGotItem( CBasePlayer *pPlayer, CItem *pItem )
This call will make sure that the armor value will not exceed the classes individual limits.
To quote the TFC FGD file entry for this entity:
This bug has existed since the beginning of TFC and it has never been fixed.