Raised This Month: $51 Target: $400
 12% 

Weapon Restriction


Post New Thread Reply   
 
Thread Tools Display Modes
<GG>Damn
New Member
Join Date: Mar 2006
Old 03-19-2006 , 04:48   A bug
Reply With Quote #21

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.
<GG>Damn is offline
xlkiller
Member
Join Date: Jul 2004
Location: FRANCE
Old 06-20-2010 , 08:50   Re: Weapon Restriction
Reply With Quote #22

Fix It please !
xlkiller is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode