Raised This Month: $51 Target: $400
 12% 

[CS:S/CS:GO] Change Player Speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 02-04-2013 , 18:32   [CS:S/CS:GO] Change Player Speed
Reply With Quote #1

I'm looking to change a players speed based on their weapon. Using the m_flMaxspeed offset. However in cs your speed is based on which weapon you carry by default so If I Change the speed of a player when their weapon switches there speed is reset. Is there an event or forward I can use for weapon switch?


EDIT: Looks like the offset doesn't exist on CSGO... I did find this though m_flLaggedMovementValue. Running some tests now. to see if it resets.

EDIT: That offset seems to work... however I would still like to be able to set it from different active weapons. I was unable to get the SDKHook's weapon switch to work. I hooked it OnClientconnected and used a log message to print to the console when a weapon was switched and no log message ever showed up.

Last edited by Doc-Holiday; 02-04-2013 at 19:55.
Doc-Holiday is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 03-15-2013 , 07:50   Re: [CS:S/CS:GO] Change Player Speed
Reply With Quote #2

(Off-Topic, sorry)
CSGO can still be messy some thimes, recently made 3 models with similiar collision hulls.
I was only able to touch 1 model, the lowest poly model.

Once the polycount and vertices got over 1000 the collision hull doesnt work anymore using SDKHook_StartTouch.
And it never worked using HookSingleEntityOutput (it was for a prop_dynamic/_override)

I think SDKHooks is gonna have to get some tweeking for csgo, unless all these problems are on valve's side that they still need to fix.
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]

Last edited by striker07; 03-15-2013 at 07:51.
striker07 is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 03-15-2013 , 09:01   Re: Re: [CS:S/CS:GO] Change Player Speed
Reply With Quote #3

Quote:
Originally Posted by striker07 View Post
unless all these problems are on valve's side.
impossible
Doc-Holiday is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 03-15-2013 , 09:35   Re: [CS:S/CS:GO] Change Player Speed
Reply With Quote #4

Quote:
Originally Posted by Doc-Holiday View Post
impossible
figured as much

Maybe this can help you: http://forums.alliedmods.net/showthread.php?t=209022
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]

Last edited by striker07; 03-15-2013 at 09:47.
striker07 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 20:45.


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