Raised This Month: $ Target: $400
 0% 

Shoot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 08-10-2011 , 08:01   Shoot
Reply With Quote #1

How can i block gun shoot and make a my own shoot?
usaexelent is offline
Send a message via Skype™ to usaexelent
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-10-2011 , 08:04   Re: Shoot
Reply With Quote #2

Quote:
Originally Posted by usaexelent View Post
How can i block gun shoot and make a my own shoot?
Yes you can block weapon fire but not the anim if i recall correctly

hook Ham_Item_Primary_Attack and return HAM_SUPERCEDE

as for making your own fire you mean a custom gun?? usually they take on the rule of another gun like the M203 super M4 uses the M4... it will let you have an AK or any other weapon and still buy the Super M4 but if you have the regular m4 you have to drop it before you can buy it.
Doc-Holiday is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-10-2011 , 09:26   Re: Shoot
Reply With Quote #3

Quote:
Originally Posted by Doc-Holiday View Post
not the anim if i recall correctly
Yes you can, just not with the method you are using.
If you set m_flNextPrimaryAttack, m_flNextSecondaryAttack, and m_flTimeWeaponIdle in item deploy (and in reload if necessary), then player cannot shoot the weapon and the animation won't flicker like it does superceding Ham_Weapon_PrimaryAttack.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-10-2011 , 09:38   Re: Shoot
Reply With Quote #4

that will also stop the silencer anim?

Do you have the offset values?? only one i have is
83 - m_flNextAttack

Last edited by Doc-Holiday; 08-10-2011 at 09:53.
Doc-Holiday is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-10-2011 , 10:01   Re: Shoot
Reply With Quote #5

Quote:
Originally Posted by Doc-Holiday View Post
that will also stop the silencer anim?
Yes, because secondary attack is disabled, therefore you cannot attempt to silence/unsilence the weapon.

Quote:
Originally Posted by Doc-Holiday View Post
Do you have the offset values?? only one i have is
83 - m_flNextAttack
The offsets are for the weapon itself, not the player.
http://wiki.amxmodx.org/CBasePlayerWeapon_(CS)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 08-10-2011 , 10:40   Re: Shoot
Reply With Quote #6

Is there any tutorial for this thing?
usaexelent is offline
Send a message via Skype™ to usaexelent
bibu
Veteran Member
Join Date: Sep 2010
Old 08-10-2011 , 11:52   Re: Shoot
Reply With Quote #7

For what?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 08-10-2011 , 12:43   Re: Shoot
Reply With Quote #8

For blocking shoot and making your own shoot.I don't know maybe with Trace Line.
usaexelent is offline
Send a message via Skype™ to usaexelent
bibu
Veteran Member
Join Date: Sep 2010
Old 08-10-2011 , 12:47   Re: Shoot
Reply With Quote #9

Read posts 2 & 3 ?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 08-10-2011 , 14:03   Re: Shoot
Reply With Quote #10

This is what i found after 5 mins of searching
https://forums.alliedmods.net/showthread.php?t=41265
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
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 03:28.


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