Raised This Month: $ Target: $400
 0% 

Question about Speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-27-2009 , 10:24   Re: Question about Speed
Reply With Quote #1

You'll lose the speed after changing weapon. Try to give the speed in CurWeapon event.
__________________

Last edited by hleV; 05-27-2009 at 14:44. Reason: By mistake I've writen "use" instead of "lose". LOL.
hleV is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-27-2009 , 11:41   Re: Question about Speed
Reply With Quote #2

Ah that's true, totally forgot. lol The best is to use Ham_CS_Item_GetMaxSpeed for all the weapons and supercede with the speed wanted.
Arkshine is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 05-28-2009 , 01:26   Re: Question about Speed
Reply With Quote #3

I don't know the codes

can you provide the correct code ?
Mr.Noobie is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-28-2009 , 03:43   Re: Question about Speed
Reply With Quote #4

Code:
#include <amxmodx>   public plugin_init()         register_event("CurWeapon", "CurWeaponEvent", "be", "1=1");   public CurWeaponEvent(ClientID)         set_pev(ClientID, pev_maxspeed, 370.0);
__________________
hleV is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 05-28-2009 , 04:47   Re: Question about Speed
Reply With Quote #5

Quote:
Originally Posted by hleV View Post
Code:
#include <amxmodx></p><p>&nbsp;</p><p>public plugin_init()</p><p> register_event("CurWeapon", "CurWeaponEvent", "be", "1=1");</p><p>&nbsp;</p><p>public CurWeaponEvent(ClientID)</p><p> set_pev(ClientID, pev_maxspeed, 370.0);

It didn't work.

The speed is default
Mr.Noobie is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 05-28-2009 , 04:52   Re: Question about Speed
Reply With Quote #6

Quote:
Originally Posted by Mr.Noobie View Post
It didn't work.

The speed is default
Actually it isn't, it's 370.0. 360.0 would be the default, so you can't notice that the speed is faster.
SnoW is offline
Send a message via MSN to SnoW
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 05-28-2009 , 10:03   Re: Question about Speed
Reply With Quote #7

Quote:
Originally Posted by SnoW View Post
Actually it isn't, it's 370.0. 360.0 would be the default, so you can't notice that the speed is faster.
I try to set 500.0 it just like default

codes:

Code:
register_event("CurWeapon", ""CurWeaponEvent", "be", "1=1")
Code:
public CurWeaponEvent(ClientID)
{
        set_pev(ClientID, pev_maxspeed, 500.0)
}
Mr.Noobie is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-28-2009 , 10:45   Re: Question about Speed
Reply With Quote #8

Quote:
Originally Posted by SnoW View Post
Actually it isn't, it's 370.0. 360.0 would be the default, so you can't notice that the speed is faster.
I thought that 320 is default.

Try setting CVAR sv_maxspeed to a higher value.
__________________
hleV is offline
Mr.Noobie
BANNED
Join Date: Apr 2009
Old 05-28-2009 , 22:19   Re: Question about Speed
Reply With Quote #9

Quote:
Originally Posted by hleV View Post
I thought that 320 is default.

Try setting CVAR sv_maxspeed to a higher value.
I try those:

Code:
Speed = register_cvar("zp_hp_speed", "1000.0");    // Amount of Speed
Code:
set_pev(ClientID, pev_maxspeed, (pev(ClientID, pev_maxspeed) + get_pcvar_float(Speed)))
Or

Code:
fm_set_user_maxspeed(ClientID, get_pcvar_float(Speed))
Those didn't work

Last edited by Mr.Noobie; 05-28-2009 at 22:36.
Mr.Noobie is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 05-29-2009 , 06:58   Re: Question about Speed
Reply With Quote #10

Quote:
Originally Posted by hleV View Post
I thought that 320 is default.
True. I've handled too much circles after using that native lol.
SnoW is offline
Send a message via MSN to SnoW
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 01:31.


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