View Issue Details

IDProjectCategoryView StatusLast Update
0000558The Dark ModCodingpublic18.10.2017 06:38
Reportercrispy Assigned Tonbohr1more  
PrioritylowSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product VersionSVN 
Target VersionTDM 2.06Fixed in VersionTDM 2.06 
Summary0000558: Add ability to toggle creeping
DescriptionCrouching can be toggled using the cvar in_toggleCrouch, but to my knowledge there is no way to toggle creeping.

Suggest adding a cvar similar to in_toggleCrouch for this purpose (for consistency), *or* creating an impulse which toggles crouch (for flexibility). Or perhaps some combination of the two.
TagsNo tags attached.

Activities

nbohr1more

nbohr1more

11.10.2017 05:38

developer   ~0009454

Currently you can toggle walk speed to creep speed:

bind "CTRL" "toggle pm_walkspeed 70 30.8"

but it doesn't hook into all the creep checking code.

That could be remedied with a cvar like r_creeptoggle added to all the conditionals that use AI_CREEP

eg. Player.cpp

else if( AI_CREEP || in_toggleCreep )
    {
        returnval = (isCrouched) ? m_stepvol_crouch_creep : m_stepvol_creep;
}
nbohr1more

nbohr1more

12.10.2017 05:47

developer   ~0009456

Rev 7238

To use you must define a toggle in Darkmod.cfg

bind "<preferred key>" "toggle tdm_toggle_creep 0 1"

replace <preferred key> with whatever key you wish.


If you want to use CTRL, you will need to remove:

bind "CTRL" "_button5"
nbohr1more

nbohr1more

18.10.2017 06:37

developer   ~0009518

Last edited: 18.10.2017 06:38

View 2 revisions

Rev 7247. "Quality of life"

Always reset to 0 (creep off) when leaving the console so it won't interfere with noclip (etc).

Using the CTRL key in "CTRL ALT TILDE" to open the console activates the creep toggle in unexpected ways.

Issue History

Date Modified Username Field Change
28.01.2008 01:11 crispy New Issue
28.01.2008 09:11 greebo Status new => acknowledged
11.10.2017 05:38 nbohr1more Note Added: 0009454
12.10.2017 05:44 nbohr1more Assigned To => nbohr1more
12.10.2017 05:44 nbohr1more Status acknowledged => resolved
12.10.2017 05:44 nbohr1more Resolution open => fixed
12.10.2017 05:44 nbohr1more Fixed in Version => TDM 2.06
12.10.2017 05:44 nbohr1more Target Version => TDM 2.06
12.10.2017 05:47 nbohr1more Note Added: 0009456
18.10.2017 06:37 nbohr1more Note Added: 0009518
18.10.2017 06:38 nbohr1more Note Edited: 0009518 View Revisions