Raised This Month: $ Target: $400
 0% 

set_user_maxspeed bug?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 06-18-2009 , 07:52   set_user_maxspeed bug?
Reply With Quote #1

When I set a players maxspeed to something under around 70, the player's maxspeed sets to a value that's much lower.

For example:
If I set a player's maxspeed to 50 with this code:
Code:
set_user_maxspeed(id, 50.0);

Then the player don't gets 50 maxspeed, he gets 2.5

Is this a known bug or is there only me who got it?
Anyway to solve it?
__________________
Bollnas Team - HideNSeek

See all of Bollnas Team's HideNSeek
servers at
http://bollnasteam.se/!

LaineN is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 06-18-2009 , 08:08   Re: set_user_maxspeed bug?
Reply With Quote #2

try with set_pev


like :

set_pev(id, pev_maxspeed, 50.0);
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 06-18-2009 , 08:21   Re: set_user_maxspeed bug?
Reply With Quote #3

Quote:
Originally Posted by One View Post
try with set_pev


like :

set_pev(id, pev_maxspeed, 50.0);
Same as before.

Same with this too:
Code:
entity_set_float(id, EV_FL_maxspeed, 50.0);
__________________
Bollnas Team - HideNSeek

See all of Bollnas Team's HideNSeek
servers at
http://bollnasteam.se/!

LaineN is offline
Old 06-18-2009, 08:38
Bugsy
This message has been deleted by Bugsy. Reason: nvm
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-18-2009 , 08:46   Re: set_user_maxspeed bug?
Reply With Quote #4

I just used both fm_set_user_maxspeed and set_user_maxspeed with a value of 50.0 and then checked the value and both did come back at 50.0. Where are you getting this 2.5 number from?
__________________
Bugsy is offline
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 06-18-2009 , 08:50   Re: set_user_maxspeed bug?
Reply With Quote #5

Quote:
Originally Posted by Bugsy View Post
I just used both fm_set_user_maxspeed and set_user_maxspeed with a value of 50.0 and then checked the value and both did come back at 50.0.
It works for you?

Quote:
Originally Posted by Bugsy View Post
Where are you getting this 2.5 number from?
I used a speedometer and I could just move with 2.5 units/sec.
__________________
Bollnas Team - HideNSeek

See all of Bollnas Team's HideNSeek
servers at
http://bollnasteam.se/!

LaineN is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-18-2009 , 08:57   Re: set_user_maxspeed bug?
Reply With Quote #6

The speed does seem very slow but take into consideration the default maxspeed when holding knife which is 300.0 [other weapons are bit lower). Setting it at 50.0 is 1/6 of that speed so it feels like you are crawling. Is your units\sec calculation consistent at default maxspeed for knife? ie 300.0 units/sec
__________________
Bugsy is offline
tpt
Member
Join Date: Jun 2009
Location: Scripting help section
Old 06-18-2009 , 09:11   Re: set_user_maxspeed bug?
Reply With Quote #7

Quote:
Originally Posted by Bugsy View Post
The speed does seem very slow but take into consideration the default maxspeed when holding knife which is 300.0 [other weapons are bit lower). Setting it at 50.0 is 1/6 of that speed so it feels like you are crawling. Is your units\sec calculation consistent at default maxspeed for knife? ie 300.0 units/sec
300.0? Isnt it 250.0?
tpt is offline
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 06-18-2009 , 09:19   Re: set_user_maxspeed bug?
Reply With Quote #8

Quote:
Originally Posted by Bugsy View Post
The speed does seem very slow but take into consideration the default maxspeed when holding knife which is 300.0 [other weapons are bit lower). Setting it at 50.0 is 1/6 of that speed so it feels like you are crawling.
Knifes maxspeed are 250.

Use a speedometer you see what speed you are moving in.

Quote:
Originally Posted by Bugsy View Post
Is your units\sec calculation consistent at default maxspeed for knife? ie 300.0 units/sec
What do you mean?
__________________
Bollnas Team - HideNSeek

See all of Bollnas Team's HideNSeek
servers at
http://bollnasteam.se/!

LaineN is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 06-18-2009 , 09:21   Re: set_user_maxspeed bug?
Reply With Quote #9

Show us more code, can the problem is not with set_user_maxspeed
__________________
alan_el_more is offline
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 06-18-2009 , 09:24   Re: set_user_maxspeed bug?
Reply With Quote #10

I just made a simple plugin that set the maxspeed to 50.0 when you type /speed. It has nothing to do with thee code...
__________________
Bollnas Team - HideNSeek

See all of Bollnas Team's HideNSeek
servers at
http://bollnasteam.se/!

LaineN 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 15:32.


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