Raised This Month: $ Target: $400
 0% 

[HELP] Weapon Speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 11-24-2015 , 13:40   Re: [HELP] Weapon Speed
Reply With Quote #1

Hmm, I did not think about it, but I think it works well in my extras.
__________________








CrazY. is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-25-2015 , 08:23   Re: [HELP] Weapon Speed
Reply With Quote #2

Quote:
Originally Posted by CrazY. View Post
Hmm, I did not think about it, but I think it works well in my extras.
Again, I never said it does not work, but the goal is to not call natives() redundantly when not needed. Hooking primary attack will spam set_pdata_float() when the attack button is being pressed when the intention is to call it only when the primary weapon actually fires. That's not an expensive function to call so it's probably fine, I'm just saying.
__________________

Last edited by Bugsy; 11-25-2015 at 08:24.
Bugsy is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 11-25-2015 , 09:17   Re: [HELP] Weapon Speed
Reply With Quote #3

I understood what you meant.
__________________








CrazY. is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 11-30-2015 , 13:07   Re: [HELP] Weapon Speed
Reply With Quote #4

but in case i use it for all weapons? would it be pretty bad? my goal is to rebalance the damage and the rate of fire of the actual cs weapons...
Depresie is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 11-30-2015 , 18:44   Re: [HELP] Weapon Speed
Reply With Quote #5

Quote:
Originally Posted by Depresie View Post
but in case i use it for all weapons? would it be pretty bad? my goal is to rebalance the damage and the rate of fire of the actual cs weapons...
I would use https://forums.alliedmods.net/showthread.php?t=54887
__________________
Bugsy is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-01-2015 , 11:44   Re: [HELP] Weapon Speed
Reply With Quote #6

btw, if i go with that method, what is the most efficient weapon to retrieve the shooter's weapon, since i want to set different weapon speed for each weapon?
Depresie is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 12-01-2015 , 19:25   Re: [HELP] Weapon Speed
Reply With Quote #7

I added the ability to do this and posted in that thread: https://forums.alliedmods.net/showpo...2&postcount=65
__________________
Bugsy is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-02-2015 , 14:29   Re: [HELP] Weapon Speed
Reply With Quote #8

oh, thanks, didnt see it thx bugsy, you saved my ass again
but can you please explain what are these "0" about? also why some weapons are added twice?

PHP Code:
    0CSW_AWPCSW_G3SG1CSW_AK47CSW_SCOUTCSW_M249CSW_M4A1CSW_SG552CSW_AUGCSW_SG550
    
CSW_M3CSW_XM1014CSW_USPCSW_MAC10CSW_UMP45CSW_FIVESEVENCSW_P90CSW_DEAGLE
    
CSW_P2280CSW_GLOCK18CSW_MP5NAVY0CSW_ELITECSW_ELITE00CSW_GALILCSW_FAMAS 
</span></span>

Last edited by Depresie; 12-02-2015 at 14:31.
Depresie is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 12-02-2015 , 18:36   Re: [HELP] Weapon Speed
Reply With Quote #9

Quote:
Originally Posted by Depresie View Post
oh, thanks, didnt see it thx bugsy, you saved my ass again
but can you please explain what are these "0" about? also why some weapons are added twice?

PHP Code:
    0CSW_AWPCSW_G3SG1CSW_AK47CSW_SCOUTCSW_M249CSW_M4A1CSW_SG552CSW_AUGCSW_SG550
    
CSW_M3CSW_XM1014CSW_USPCSW_MAC10CSW_UMP45CSW_FIVESEVENCSW_P90CSW_DEAGLE
    
CSW_P2280CSW_GLOCK18CSW_MP5NAVY0CSW_ELITECSW_ELITE00CSW_GALILCSW_FAMAS 
</span></span>
You didn't see it because I just did it and posted it based on your request.

Because the array needs to align with the eventid outputted with each weapon fire. The 0's are there as placeholders to make it align. ie. AWPs event ID is 1 so I needed to put a 0 in the first slot to make AWP exist at array index 1, instead of index 0.

Only one weapon appears twice, which is elite, because it has 2 event-ids, one for left and one for right. In the events array you will see: "events/elite_left.sc","events/elite_right.sc"
__________________

Last edited by Bugsy; 12-02-2015 at 18:37.
Bugsy 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 18:14.


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