AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Weapon maxspeed (https://forums.alliedmods.net/showthread.php?t=100087)

m0v3 08-12-2009 11:24

Weapon maxspeed
 
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 ?

Arkshine 08-12-2009 11:26

Re: Weapon maxspeed
 
get_user_maxspeed

xPaw 08-12-2009 11:31

Re: Weapon maxspeed
 
Arkshine was mean, get_user_maxspeed, not give_

Arkshine 08-12-2009 11:33

Re: Weapon maxspeed
 
what are you talking about ? http://workshop.mixedberry.net/Smile...on/th_065_.gif

vato loco [GE-S] 08-12-2009 12:17

Re: Weapon maxspeed
 
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

m0v3 08-12-2009 12:24

Re: Weapon maxspeed
 
'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.

Arkshine 08-12-2009 12:26

Re: Weapon maxspeed
 
http://wiki.alliedmods.net/CS_Weapons_Information

Bugsy 08-12-2009 12:49

Re: Weapon maxspeed
 
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
}; 


m0v3 08-12-2009 13:32

Re: Weapon maxspeed
 
OMG , appreciated... You guys are really generous , I was just thinking you will say that there is no function and over :) Thanks, really helped.


All times are GMT -4. The time now is 18:25.

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