Raised This Month: $ Target: $400
 0% 

[Help] Speed UP Weapon Fire Rate F.E : P90


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
exec0d3
Member
Join Date: Apr 2009
Location: Georgia
Old 05-12-2009 , 11:29   [Help] Speed UP Weapon Fire Rate F.E : P90
Reply With Quote #1

Hello, I want to speed up weapon P90 fire rate, but I don't know how
exec0d3 is offline
Send a message via Skype™ to exec0d3
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-12-2009 , 12:29   Re: [Help] Speed UP Weapon Fire Rate F.E : P90
Reply With Quote #2

This should do the trick:
PHP Code:
RegisterHam(Ham_Weapon_PrimaryAttack"weapon_p90""fwHam_p90rof"1)
 
public 
fwHam_p90rof(entset_pdata_float(ent460.05
0.05 is the time between bullets and 46 is the primary offset, 47 is for secondary attack
__________________
Hunter-Digital is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 05-12-2009 , 12:35   Re: [Help] Speed UP Weapon Fire Rate F.E : P90
Reply With Quote #3

Quote:
Originally Posted by Hunter-Digital View Post
This should do the trick:
PHP Code:
RegisterHam(Ham_Weapon_PrimaryAttack"weapon_p90""fwHam_p90rof"1)
 
public 
fwHam_p90rof(entset_pdata_float(ent460.05
0.05 is the time between bullets and 46 is the primary offset, 47 is for secondary attack
I believe you should set 48 (m_flTimeWeaponIdle) in some cases as well. I did some tests that way long time ago, and didn't get good results. It made weapons faster suchs as shotguns, but when I tried it with rifles like AK47, it only made them slower, even I tried to set 0.0001 second.
SnoW is offline
Send a message via MSN to SnoW
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 05-12-2009 , 12:57   Re: [Help] Speed UP Weapon Fire Rate F.E : P90
Reply With Quote #4

Quote:
Originally Posted by Hunter-Digital View Post
This should do the trick:
PHP Code:
RegisterHam(Ham_Weapon_PrimaryAttack"weapon_p90""fwHam_p90rof"1)
 
public 
fwHam_p90rof(entset_pdata_float(ent460.05
0.05 is the time between bullets and 46 is the primary offset, 47 is for secondary attack
You shouldn't hook PrimaryAttack unless the offset value get reset after attacking.
Probably hook Ham_Item_Deploy or Ham_Item_AddToPlayer would be the best way.

Edit:

Or Ham_Spawn (of the weapon)
__________________

Last edited by joaquimandrade; 05-12-2009 at 13:23.
joaquimandrade is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-12-2009 , 13:50   Re: [Help] Speed UP Weapon Fire Rate F.E : P90
Reply With Quote #5

Quote:
Originally Posted by joaquimandrade View Post
You shouldn't hook PrimaryAttack unless the offset value get reset after attacking.
Probably hook Ham_Item_Deploy or Ham_Item_AddToPlayer would be the best way.

Edit:

Or Ham_Spawn (of the weapon)
well, doesn't it ? I think offsets 46 and 47 sets the next attack delay... if I set it only once the next attacks will be normal, I tested this for offfset 47 in the "block attack2" topic, after I fired the weapon, the 47 offset will get reset

Quote:
Originally Posted by hleV View Post
Shouldn't it be registered as pre and not post primary attack?
why ? I am not modifying the attack, I am modifying the NEXT attack's delay, so I just need to check when he attacks so that the next attack can be set in N seconds
__________________
Hunter-Digital is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 05-12-2009 , 13:54   Re: [Help] Speed UP Weapon Fire Rate F.E : P90
Reply With Quote #6

Quote:
Originally Posted by Hunter-Digital View Post
well, doesn't it ? I think offsets 46 and 47 sets the next attack delay... if I set it only once the next attacks will be normal, I tested this for offfset 47 in the "block attack2" topic, after I fired the weapon, the 47 offset will get reset
I'm not saying that you are wrong. I'm saying that if it doesn't get reset you shouldn't hook the Attack. If its, it is fine as you have it.
__________________
joaquimandrade is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-12-2009 , 12:32   Re: [Help] Speed UP Weapon Fire Rate F.E : P90
Reply With Quote #7

http://forums.alliedmods.net/showthread.php?p=597185
__________________
xPaw is offline
exec0d3
Member
Join Date: Apr 2009
Location: Georgia
Old 05-12-2009 , 12:48   Re: [Help] Speed UP Weapon Fire Rate F.E : P90
Reply With Quote #8

thanks all
exec0d3 is offline
Send a message via Skype™ to exec0d3
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-12-2009 , 13:30   Re: [Help] Speed UP Weapon Fire Rate F.E : P90
Reply With Quote #9

Shouldn't it be registered as pre and not post primary attack?
__________________
hleV is offline
exec0d3
Member
Join Date: Apr 2009
Location: Georgia
Old 05-13-2009 , 05:50   Re: [Help] Speed UP Weapon Fire Rate F.E : P90
Reply With Quote #10

when I do this:
PHP Code:
RegisterHam(Ham_Weapon_PrimaryAttack"weapon_p90""fwHam_p90rof"1)
 
public 
fwHam_p90rof(entset_pdata_float(ent460.05
and when I fire, (Sorry I dont know English language good) It fires like this: buf,buf,pause,pause,pause,pause,pause,buf ...
(pause = 1 Sec)

and how can I fix this problem?
exec0d3 is offline
Send a message via Skype™ to exec0d3
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 01:28.


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