Raised This Month: $ Target: $400
 0% 

[CS:GO] Setting player speed over 250 without m_flLaggedMovementValue?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Beaverboys
Member
Join Date: Aug 2012
Old 08-17-2015 , 01:18   [CS:GO] Setting player speed over 250 without m_flLaggedMovementValue?
Reply With Quote #1

I've searched extensively for a solution to this problem but haven't found one. m_flMaxSpeed will not let me set a value over 250.0 and m_flLaggedMovementValue causes players to jump in fast motion, which is very undesirable for the mod that I'm working with.

Last edited by Beaverboys; 08-17-2015 at 01:19.
Beaverboys is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 08-17-2015 , 05:10   Re: [CS:GO] Setting player speed over 250 without m_flLaggedMovementValue?
Reply With Quote #2

You should be able to get over 250.

Are you updating m_flMaxSpeed on every RunUserCommand for each player?
__________________
Neuro Toxin is offline
m_bNightstalker
Senior Member
Join Date: Jan 2015
Location: JWD
Old 08-17-2015 , 05:37   Re: [CS:GO] Setting player speed over 250 without m_flLaggedMovementValue?
Reply With Quote #3

If you like to change this for all players change the speed inside the weapon scripts.
m_bNightstalker is offline
Beaverboys
Member
Join Date: Aug 2012
Old 09-30-2015 , 09:51   Re: [CS:GO] Setting player speed over 250 without m_flLaggedMovementValue?
Reply With Quote #4

Quote:
Originally Posted by Neuro Toxin View Post
You should be able to get over 250.

Are you updating m_flMaxSpeed on every RunUserCommand for each player?
I don't know what RunUserCommand is unless you mean OnPlayerRunCmd, which I've tried using to update m_flMaxSpeed and it didn't work. I'd also prefer to set it only when I need it to be changed as opposed to a function like OnPlayerRunCmd that runs constantly.

Quote:
Originally Posted by m_bNightstalker View Post
If you like to change this for all players change the speed inside the weapon scripts.
I'm not sure what this means. Can anybody explain?
Beaverboys is offline
blaacky
Senior Member
Join Date: Oct 2012
Old 09-30-2015 , 10:21   Re: [CS:GO] Setting player speed over 250 without m_flLaggedMovementValue?
Reply With Quote #5

Use SetEntPropFloat(client, Prop_Send, "m_flVelocityModifier", ..);

It scales the player's max running speed. Using 1.1 when the player would usually be running 250 vel will make them run at 275 vel.
blaacky is offline
Beaverboys
Member
Join Date: Aug 2012
Old 10-09-2015 , 01:54   Re: [CS:GO] Setting player speed over 250 without m_flLaggedMovementValue?
Reply With Quote #6

Quote:
Originally Posted by blaacky View Post
Use SetEntPropFloat(client, Prop_Send, "m_flVelocityModifier", ..);

It scales the player's max running speed. Using 1.1 when the player would usually be running 250 vel will make them run at 275 vel.
This only affects speed while on the ground, if you jump your speed is not maintained.
Beaverboys is offline
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 10-09-2015 , 10:12   Re: [CS:GO] Setting player speed over 250 without m_flLaggedMovementValue?
Reply With Quote #7

Quote:
Originally Posted by Beaverboys View Post
This only affects speed while on the ground, if you jump your speed is not maintained.
That's not what speed multilplier should do as i think.

that should be affected by jump multiplier.
__________________
Starbish is offline
Beaverboys
Member
Join Date: Aug 2012
Old 11-06-2015 , 08:12   Re: [CS:GO] Setting player speed over 250 without m_flLaggedMovementValue?
Reply With Quote #8

I still haven't figured this out. Could anybody offer a solution? Is there some kind of jump velocity property I could modify?
Beaverboys is offline
thecount
Veteran Member
Join Date: Jul 2013
Old 11-06-2015 , 11:11   Re: [CS:GO] Setting player speed over 250 without m_flLaggedMovementValue?
Reply With Quote #9

I'm not sure if doing something like this might help.

PHP Code:
public Action:OnPlayerRunCmd(client, &buttons){
     if(
IsPlayerAlive(client) && (buttons IN_FORWARD)){
          new 
Float:ang[3], Float:resultant[3]; GetClientEyeAngles(clientang);
          
GetAngleVectors(angresultantNULL_VECTORNULL_VECTOR);
          
ScaleVector(resultantINSERT_OFFSET_HERE);
          
TeleportEntity(clientNULL_VECTORNULL_VECTORresultant);
     }

thecount is offline
Beaverboys
Member
Join Date: Aug 2012
Old 11-06-2015 , 15:20   Re: [CS:GO] Setting player speed over 250 without m_flLaggedMovementValue?
Reply With Quote #10

Quote:
Originally Posted by thecount View Post
I'm not sure if doing something like this might help.

PHP Code:
public Action:OnPlayerRunCmd(client, &buttons){
     if(
IsPlayerAlive(client) && (buttons IN_FORWARD)){
          new 
Float:ang[3], Float:resultant[3]; GetClientEyeAngles(clientang);
          
GetAngleVectors(angresultantNULL_VECTORNULL_VECTOR);
          
ScaleVector(resultantINSERT_OFFSET_HERE);
          
TeleportEntity(clientNULL_VECTORNULL_VECTORresultant);
     }

Thanks, but that's not really what I'm looking for.

I think I might have to take a look at the KZ Timer plugin. I think it uses the velocity modifier for prestrafe, which affects the velocity of jumps the way I'm trying to do it.
Beaverboys 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 05:03.


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