Raised This Month: $ Target: $400
 0% 

Weapon maxspeed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
m0v3
Member
Join Date: May 2009
Old 08-12-2009 , 11:24   Weapon maxspeed
Reply With Quote #1

Can anyone tell me how can I get the maxspeed player can run while carying specific weapon ? For example i give weapon ID and function gives me the maxspeed ?
m0v3 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-12-2009 , 11:26   Re: Weapon maxspeed
Reply With Quote #2

get_user_maxspeed
__________________

Last edited by Arkshine; 08-12-2009 at 11:32.
Arkshine is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-12-2009 , 11:31   Re: Weapon maxspeed
Reply With Quote #3

Arkshine was mean, get_user_maxspeed, not give_
__________________
xPaw is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-12-2009 , 11:33   Re: Weapon maxspeed
Reply With Quote #4

what are you talking about ?
__________________
Arkshine is offline
vato loco [GE-S]
Veteran Member
Join Date: Oct 2006
Location: Germany
Old 08-12-2009 , 12:17   Re: Weapon maxspeed
Reply With Quote #5

here is a plugin by SchlumPF
so you can take a look on his code
or use the plugin how erver !!!

Weapon Utilitys

Description
This plugin allows players to get weapons with all different maxspeeds, show them their current maxspeed on changing weapons and remove the weapon-pickup-sound.

PLUGIN HERE -> http://xtreme-jumps.eu/e107_plugins/...pic.php?105955
__________________

Last edited by vato loco [GE-S]; 08-12-2009 at 12:22.
vato loco [GE-S] is offline
m0v3
Member
Join Date: May 2009
Old 08-12-2009 , 12:24   Re: Weapon maxspeed
Reply With Quote #6

'get_user_maxspeed' gives current... And I want the default. This function gives the speed , but it can be modified tu any value , and I want to get the speed what it shoult be , without any modifications.
m0v3 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-12-2009 , 12:26   Re: Weapon maxspeed
Reply With Quote #7

http://wiki.alliedmods.net/CS_Weapons_Information
__________________
Arkshine is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 08-12-2009 , 12:49   Re: Weapon maxspeed
Reply With Quote #8

Here you go chief. I put this together for a plugin I am working on.
PHP Code:
//To use just pass the CSW_* weapon ID
g_fMaxSpeedget_user_weaponid ) ];

new const 
Floatg_fMaxSpeed[] = 
{
    
0.0,   
    
250.0//p228
    
0.0,   //shield
    
260.0//scout
    
250.0//hegrenade
    
240.0//xm1014
    
250.0//c4
    
250.0//mac10
    
240.0//aug
    
250.0//smoke
    
250.0//elite
    
250.0//fiveseven
    
250.0//ump45
    
210.0//sg550
    
240.0//galil
    
240.0//famas
    
250.0//usp
    
250.0//glock
    
210.0//awp
    
250.0//mp5navy
    
220.0//m249
    
230.0//m3
    
230.0//m4a1
    
250.0//tmp
    
210.0//g3sg1
    
250.0//flash
    
250.0//deagle
    
235.0//sg552
    
221.0//ak47
    
250.0//knife
    
245.0  //p90
}; 
__________________

Last edited by Bugsy; 08-12-2009 at 12:52.
Bugsy is offline
m0v3
Member
Join Date: May 2009
Old 08-12-2009 , 13:32   Re: Weapon maxspeed
Reply With Quote #9

OMG , appreciated... You guys are really generous , I was just thinking you will say that there is no function and over Thanks, really helped.
m0v3 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:25.


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