Forum Thread
  Posts  
HL2DM Sprint Time Change (Forums : Coding & Scripting : HL2DM Sprint Time Change) Locked
Thread Options
Jul 25 2005 Anchor

I have question about hl2dm coding..
how i can increase player sprint time?by default is too short and i need to increse for my mod(hldoom).I searched in the sdk but i cant find this.

Wraiyth
Wraiyth That Guy Who Does Those Things With The Stuff
Jul 25 2005 Anchor

In hl2_player.cpp around line 160, there is a bit of code
CSuitPowerDevice SuitDeviceSprint( bits_SUIT_DEVICE_SPRINT, 25.0f ); // 100 units in 4 seconds
that defines how much suit power is used during sprinting. You should be able to tweak that value to make it use less power, and therefore making the player be able to sprint for longer. 25 is 100 units in 4 seconds, 12.5 is 100 units in 8 seconds etc etc

Jul 25 2005 Anchor

thanks for the quick answeer!

Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.