Discussion:
[hlcoders] Ducking movement speed
Draco
2005-02-05 10:40:01 UTC
Permalink
I am trying to do some code for the kreedz climbing mod(because no
else seems to want to) and said mod has a problem

Me and another guy called Quak managed to change the players speed
while moving, and jump size in an attempt to get CS 1.6 style
movement, but theres a problem with ducking. Whenever the player ducks
and moves the player moves at the default speed during the ducking
stage. This mod requires the player to jump from little block to
little block, so going into duck and moving faster than normal is sure
to screw everyone up.

I looked at PlayerMove and found that FullTossMove might be the move
rules the player obeys while ducking(im assuming its like in hl 1
where the player just goes smaller and falls when you duck) But I am
currently unable to compile and test it out(MUST...GET...MSVC 7.1!!!).
So my question is, am I on the right track? if not can someone show
what move type or something like that needs changeing to make ducking
movement same speed as FullWalkMove


**********************
Draco
Coder for Perfect Dark
http://perfectdark.game-mod.net
Teddy
2005-02-05 12:00:02 UTC
Permalink
Have a look in gamemovement.cpp, around line 570 is has:
if ( !m_bSpeedCropped && ( mv->m_nButtons & IN_SPEED ) && !(
player->m_Local.m_bDucked && !player->m_Local.m_bDucking ))
{
float frac = 1.0f;
.... etc
}

Try changing that frac to your slowdown rate. I used 0.5f, it was fun.

Teddy
http://dystopia-mod.com/
Post by Draco
I am trying to do some code for the kreedz climbing mod(because no
else seems to want to) and said mod has a problem
Me and another guy called Quak managed to change the players speed
while moving, and jump size in an attempt to get CS 1.6 style
movement, but theres a problem with ducking. Whenever the player ducks
and moves the player moves at the default speed during the ducking
stage. This mod requires the player to jump from little block to
little block, so going into duck and moving faster than normal is sure
to screw everyone up.
I looked at PlayerMove and found that FullTossMove might be the move
rules the player obeys while ducking(im assuming its like in hl 1
where the player just goes smaller and falls when you duck) But I am
currently unable to compile and test it out(MUST...GET...MSVC 7.1!!!).
So my question is, am I on the right track? if not can someone show
what move type or something like that needs changeing to make ducking
movement same speed as FullWalkMove
**********************
Draco
Coder for Perfect Dark
http://perfectdark.game-mod.net
_______________________________________________
http://list.valvesoftware.com/mailman/listinfo/hlcoders
r00t 3:16
2005-02-05 13:00:01 UTC
Permalink
I am not not sure what hl you are running or trying to mod.
However I have added peeking / prone movements to source sdk.

gamemovement.cpp probably will give you ideas what to look for.

Let me know if this is what you were looking for.

You basically want the CGameMovement::Duck() function in gamemovement.cpp



r00t 3:16
CQC Gaming
www.cqc-gaming.com


----- Original Message -----
From: "Draco" <***@gmail.com>
To: <***@list.valvesoftware.com>
Sent: Saturday, February 05, 2005 7:54 AM
Subject: [hlcoders] Ducking movement speed
Post by Draco
I am trying to do some code for the kreedz climbing mod(because no
else seems to want to) and said mod has a problem
Me and another guy called Quak managed to change the players speed
while moving, and jump size in an attempt to get CS 1.6 style
movement, but theres a problem with ducking. Whenever the player ducks
and moves the player moves at the default speed during the ducking
stage. This mod requires the player to jump from little block to
little block, so going into duck and moving faster than normal is sure
to screw everyone up.
I looked at PlayerMove and found that FullTossMove might be the move
rules the player obeys while ducking(im assuming its like in hl 1
where the player just goes smaller and falls when you duck) But I am
currently unable to compile and test it out(MUST...GET...MSVC 7.1!!!).
So my question is, am I on the right track? if not can someone show
what move type or something like that needs changeing to make ducking
movement same speed as FullWalkMove
**********************
Draco
Coder for Perfect Dark
http://perfectdark.game-mod.net
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
http://list.valvesoftware.com/mailman/listinfo/hlcoders
Hasan Aljudy
2005-02-05 13:32:03 UTC
Permalink
the is a method in the CGameMovement called DuckSpeedCrop or something
like that.
Post by r00t 3:16
I am not not sure what hl you are running or trying to mod.
However I have added peeking / prone movements to source sdk.
gamemovement.cpp probably will give you ideas what to look for.
Let me know if this is what you were looking for.
You basically want the CGameMovement::Duck() function in gamemovement.cpp
r00t 3:16
CQC Gaming
www.cqc-gaming.com
----- Original Message -----
Sent: Saturday, February 05, 2005 7:54 AM
Subject: [hlcoders] Ducking movement speed
Post by Draco
I am trying to do some code for the kreedz climbing mod(because no
else seems to want to) and said mod has a problem
Me and another guy called Quak managed to change the players speed
while moving, and jump size in an attempt to get CS 1.6 style
movement, but theres a problem with ducking. Whenever the player ducks
and moves the player moves at the default speed during the ducking
stage. This mod requires the player to jump from little block to
little block, so going into duck and moving faster than normal is sure
to screw everyone up.
I looked at PlayerMove and found that FullTossMove might be the move
rules the player obeys while ducking(im assuming its like in hl 1
where the player just goes smaller and falls when you duck) But I am
currently unable to compile and test it out(MUST...GET...MSVC 7.1!!!).
So my question is, am I on the right track? if not can someone show
what move type or something like that needs changeing to make ducking
movement same speed as FullWalkMove
**********************
Draco
Coder for Perfect Dark
http://perfectdark.game-mod.net
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
http://list.valvesoftware.com/mailman/listinfo/hlcoders
_______________________________________________
http://list.valvesoftware.com/mailman/listinfo/hlcoders
Draco
2005-02-05 20:36:01 UTC
Permalink
Thank you all very much.



**********************
Draco
Coder for Perfect Dark
http://perfectdark.game-mod.net

Continue reading on narkive:
Loading...