Raised This Month: $ Target: $400
 0% 

[HELP] Blocking a weapon's primary attack


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kapitana
Member
Join Date: Apr 2014
Old 01-03-2016 , 13:34   [HELP] Blocking a weapon's primary attack
Reply With Quote #1

Hello AlliedModders,
I'm looking for a way to block my weapon's primary attack. That can be done either by removing it's ammo or some other method. Anyway .. I'm using zp so removing it's ammo won't work because the zp is refilling the weapon's bp ammo automatically. If you have any other solutions please share. Thank you in advance.
kapitana is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-03-2016 , 13:55   Re: [HELP] Blocking a weapon's primary attack
Reply With Quote #2

Hook Ham_Weapon_PrimaryAttack, set m_flNextPrimaryAttack offset(which is 46) on the weapon ent to 9999.9 and supercede .
__________________

Last edited by HamletEagle; 01-03-2016 at 13:55.
HamletEagle is offline
kapitana
Member
Join Date: Apr 2014
Old 01-03-2016 , 14:07   Re: [HELP] Blocking a weapon's primary attack
Reply With Quote #3

OK. Thnx for the fast answer
kapitana 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 07:34.


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