Hopefully the author has not yet abandoned this plugin. The bug I found in HL2DM (and I'm lead to believe this bug is mod-independent), is that the top weapon in each slot is checked, instead of each weapon in each slot. This means that you can't block weapon_357 without blocking weapon_pistol along with it. This is because of
Code:
CBaseCombatWeapon *pWeapon = pPlayer->Weapon_GetSlot(i);
So I tried messing with the code and tried
Code:
CBaseCombatWeapon *pWeapon = pPlayer->GetWeapon(i);
among others. But it's giving me an unresolved external symbol error, namely
Code:
restrict_mm error LNK2019: unresolved external symbol "public: class CBaseCombatWeapon * __thiscall CBaseCombatCharacter::GetWeapon(int)const " (?GetWeapon@CBaseCombatCharacter@@QBEPAVCBaseCombatWeapon@@H@Z) referenced in function "public: void __thiscall restrictWeapons::checkClient(int)" (?checkClient@restrictWeapons@@QAEXH@Z)
and at this point I'm kinda stumped.
If the author can fix this, or if anyone can help with the unresolved external, it would be greatly appreciated.
<GG>Damn.