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

HL SDK Crouch speed modifier?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sekac
Senior Member
Join Date: Nov 2016
Old 09-06-2018 , 16:15   HL SDK Crouch speed modifier?
Reply With Quote #1

Maybe this isn't the right section, but what controls how fast a player will go when he crouches?
sekac is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 09-07-2018 , 03:53   Re: HL SDK Crouch speed modifier?
Reply With Quote #2

Code:
#define PLAYER_DUCKING_MULTIPLIER 0.333
Hardcoded.
EV_INT_bInDuck value is 1 when player is crouched
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM
Ghosted is offline
sekac
Senior Member
Join Date: Nov 2016
Old 09-07-2018 , 16:44   Re: HL SDK Crouch speed modifier?
Reply With Quote #3

Thanks. Is there a boolean variable for walking/shifting too?
sekac is offline
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 09-07-2018 , 16:46   Re: HL SDK Crouch speed modifier?
Reply With Quote #4

SHIFT (Slow speed) is not even sent to sever, client does that.
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM
Ghosted is offline
sekac
Senior Member
Join Date: Nov 2016
Old 09-07-2018 , 17:19   Re: HL SDK Crouch speed modifier?
Reply With Quote #5

Ah yes, cl_movespeedkey... So can we get if shift is pressed then? I just need a way to check for walking in the SDK.
sekac is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-07-2018 , 20:03   Re: HL SDK Crouch speed modifier?
Reply With Quote #6

Quote:
Originally Posted by sekac View Post
Ah yes, cl_movespeedkey... So can we get if shift is pressed then? I just need a way to check for walking in the SDK.
You need to check if the user on the ground and his speed is equal or less than the average speed.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 09-08-2018 , 05:10   Re: HL SDK Crouch speed modifier?
Reply With Quote #7

Quote:
Originally Posted by Natsheh View Post
You need to check if the user on the ground and his speed is equal or less than the average speed.
That wont check if player is holding 'SHIFT' cause when you are stopping (by releasing button which are you clicking to move) or when you are ducking speed is going down and your idea will recognize this as player is holding 'SHIFT'
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 09-08-2018 at 05:10.
Ghosted is offline
sekac
Senior Member
Join Date: Nov 2016
Old 09-08-2018 , 05:10   Re: HL SDK Crouch speed modifier?
Reply With Quote #8

Quote:
Originally Posted by Natsheh View Post
You need to check if the user on the ground and his speed is equal or less than the average speed.
What do you mean by average speed?
sekac is offline
sekac
Senior Member
Join Date: Nov 2016
Old 09-08-2018 , 05:21   Re: HL SDK Crouch speed modifier?
Reply With Quote #9

Quote:
Originally Posted by Ghosted View Post
That wont check if player is holding 'SHIFT' cause when you are stopping (by releasing button which are you clicking to move) or when you are ducking speed is going down and your idea will recognize this as player is holding 'SHIFT'
So it's impossible to detect holding shift? Does a player have a different animation when he is walking? Is the speed the only thing that actually changes?
sekac is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-08-2018 , 05:53   Re: HL SDK Crouch speed modifier?
Reply With Quote #10

Well anotherway check if player animation is walking.

Ghosted if the player is crouching you can simply check if he is crouching and calculate his walking speed while crouching.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 09-08-2018 at 05:57.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 09:52.


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