Player speed explained

Detailed explanation of actor's speed. No more guessing!

Posted by on - Basic Other

## PLAYER SPEED

I assume that all of you already know how to unpack databases and get your hands on the actor.ltx file. This tutorial is simply to show how to use these parametres found in it. Let's begin by heading to...

### .../gamedata/configs/creatures/actor.ltx

max_item_mass = 35 ;50.0
jump_speed = 6.
crouch_coef = 0.30 ;0.45
climb_coef = 0.7
run_coef = 2.0 ;2.1
sprint_koef = 2.5 ;1.9 ;2.6
run_back_coef = 1.8
walk_back_coef = 0.5
air_c />walk_accel = 19; 20 ;18.1 ;17
show_corpses_dist = 10

Here we're only interested in these 7 underlined parametres. I'll organise them below.

## EDITING VALUES

### 1st: Setup the WALKING speed.

This is the speed actor has when he is walking. This is NOT running or sprinting speed.

walk_accel = 19

### 2nd: Set RUNNING and REVERSING multipliers.

Multiply walk_accel with one of these in order to get the corresponding speed. For example, the speed of normal running would be 19 * 2.0 = 38 and walking backwards 19 * 0.5 = 9.5.

run_coef = 2.0
run_back_coef = 1.8
walk_back_coef = 0.5

### 3rd: Fill the rest of the parametres.

These parametres are used to multiply the values you get from the 1st and 2nd stages. For example, the speed for sprinting is 19 * 2.0 * 2.5 = 95 and for crouching 19 * 2.0 * 0.3 = 11.4.

sprint_koef = 2.5
crouch_coef = 0.3
climb_coef = 0.7

## REFERENCE CHART

walk speed = walk_accel
run speed = walk_accel * run_coef
walk bk speed = walk_accel * walk_back_coef
run bk speed = walk_accel * run_back_coef
sprint speed = walk_accel * run_coef * sprint_koef
crouch speed = walk_accel * run_coef * crouch_coef
prone speed = walk_accel * crouch_coef
climb speed = walk_accel * run_coef * climb_coef

Remember, the default movement type is running and not walking! I would also like to note that when the player is aiming with weapon, their speed will be set to walking speed.

Big thanks for helping me figure this mess out goes to Xottab-DUTY

### -TGP

Thanks for this. 👍

THANKS MAN

Author

You're welcome, haha

What do the values after the semicolon (;) mean?
i.e.

air_c />walk_accel = 19; 20 ;18.1 ;17

what is 20, 18.1 and 17 for?

They're commented out = they are not seen by computer. Probably old values that developers used

Straightforward ! Big Thanks !

I can't find this file.

According to instructions above
"I assume that all of you already know how to unpack databases and get your hands on the actor.ltx file."

to do that:
Moddb.com