Raised This Month: $ Target: $400
 0% 

Resetting Speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mateo10
Veteran Member
Join Date: Jan 2006
Old 04-22-2007 , 05:41   Resetting Speed
Reply With Quote #1

How do you reset a user's speed to the one he starts with?
mateo10 is offline
Samurai [/]
Member
Join Date: Sep 2006
Old 04-22-2007 , 05:56   Re: Resetting Speed
Reply With Quote #2

Quote:
Originally Posted by mateo10 View Post
How do you reset a user's speed to the one he starts with?
I dont know but defaults speeds are:
Code:
cl_forwardspeed 400
cl_backspeed 400
cl_sidespeed 400
So if u set speeds to 400 that might work.
__________________
Samurai [/] is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 04-22-2007 , 07:20   Re: Resetting Speed
Reply With Quote #3

Thats right samurai[/] this setting should be done with:
client_cmd(id, "cl_forwardspeed %d ; cl_sidespeed %d ; cl_backspeed %d", 400, 400, 400)
Then you have to: set_user_maxspeed(id, 250) <--- 250 is the default speed for running with a knife or pistol. (if he switches his weapon to a rifle the engine automaticaly changes his speed according to the weapon he holds.

Btw.: for further information on this simply look at my speedUP plugin here: http://forums.alliedmods.net/showthread.php?t=53603

greetz regalis
__________________
regalis is offline
pRED*
Join Date: Dec 2006
Old 04-22-2007 , 18:37   Re: Resetting Speed
Reply With Quote #4

From bf2 rank.. (which was mostly taken from wc3ft)

Code:
new dummy; new weapon = get_user_weapon( id,dummy,dummy); new zoom=cs_get_user_zoom(id); if (cs_get_user_vip(id)) { set_pev(id, pev_maxspeed, CS_SPEED_VIP); } else if ((zoom==2) || (zoom==3) || (zoom==4)) {     set_pev(id, pev_maxspeed, CS_WEAPON_SPEED_ZOOM[weapon]); } else {     set_pev(id, pev_maxspeed, CS_WEAPON_SPEED[weapon]); }


Code:
stock Float:CS_SPEED_VIP = 227.0; stock Float:CS_WEAPON_SPEED[31] = {     0.0,     250.0,      // CSW_P228     0.0,     260.0,      // CSW_SCOUT     250.0,      // CSW_HEGRENADE     240.0,      // CSW_XM1014     250.0,      // CSW_C4     250.0,      // CSW_MAC10     240.0,      // CSW_AUG     250.0,      // CSW_SMOKEGRENADE     250.0,      // CSW_ELITE     250.0,      // CSW_FIVESEVEN     250.0,      // CSW_UMP45     210.0,      // CSW_SG550     240.0,      // CSW_GALI     240.0,      // CSW_FAMAS     250.0,      // CSW_USP     250.0,      // CSW_GLOCK18     210.0,      // CSW_AWP     250.0,      // CSW_MP5NAVY     220.0,      // CSW_M249     230.0,      // CSW_M3     230.0,      // CSW_M4A1     250.0,      // CSW_TMP     210.0,      // CSW_G3SG1     250.0,      // CSW_FLASHBANG     250.0,      // CSW_DEAGLE     235.0,      // CSW_SG552     221.0,      // CSW_AK47     250.0,      // CSW_KNIFE     245.0       // CSW_P90 }; stock Float:CS_WEAPON_SPEED_ZOOM[31] = {     0.0,     0.0,     0.0,     220.0,      // CSW_SCOUT     0.0,     0.0,     0.0,     0.0,     240.0,      // CSW_AUG     0.0,     0.0,     0.0,     0.0,     150.0,      // CSW_SG550     0.0,     0.0,     0.0,     0.0,     150.0,      // CSW_AWP     0.0,     0.0,     0.0,     0.0,     0.0,     150.0,      // CSW_G3SG1     0.0,     0.0,     235.0,      // CSW_SG552     0.0,     0.0,     0.0 };
pRED* is offline
Reply


Thread Tools
Display Modes

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 06:44.


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