Player Movement

General discussion relating to the Transfusion project.

Moderator: General Discussion Moderators

Post Reply
Kazashi
Shadow Warrior
Posts: 412
Joined: Tue Aug 10, 2004 09:40 am
Location: Blue Mountains, Australia
Contact:

Player Movement

Post by Kazashi »

Because Caleb's movement is such a part of Blood we are trying to get the physics to match as best we can. However, because it is such a part of Blood it will be quite noticeable if even little things are off. We are constantly tweaking things like player movement, but there are things you can do to help.

Within DarkPlaces are numerous variables that modify player movement, like speed, air movement, friction. Even the amount of bobbing of the weapon model can be changed.


These variables control player acceleration and speed (Transfusion default values are in brackets):

sv_maxspeed (320) - maximum speed a player can accelerate to when on ground
cl_backspeed (400) - backward movement speed
cl_forwardspeed (400) - forward movement speed
cl_sidespeed (350) - strafe movement speed
cl_upspeed (400) - vertical movement speed (while swimming or flying)
sv_accelerate (10) - rate at which a player accelerates to sv_maxspeed
sv_stopspeed (100) - how fast you come to a complete stop
sv_wateraccelerate(-1) - rate at which a player accelerates to sv_maxspeed while in the air, if less than 0 the sv_accelerate variable is used instead


These variables control the friction of the player

edgefriction (2) - how much you slow down when nearing a ledge you might fall off
sv_friction (4) - how fast you slow down
sv_wallfriction (1) - how much you slow down when sliding along a wall
v_waterfriction (-1) - how fast you slow down, if less than 0 the sv_friction variable is used instead


These variables control aerial physics

sv_airaccelerate (-1) - rate at which a player accelerates to sv_maxairspeed while in the air, if less than 0 the sv_accelerate variable is used instead
sv_maxairspeed (30) - maximum speed a player can accelerate to when airborn (note that it is possible to completely stop by moving the opposite direction)
cl_movement_airaccel_sideways_friction (0) - anti-sideways movement stabilization


These variables control the swaying of the gun in the HUD

cl_bobmodel_speed (3) - gun bobbing speed
cl_bobmodel_side (0.08) - gun bobbing sideways sway amount
cl_bobmodel_up (-0.05) - gun bobbing upward movement amount


These variables control keyboard turning speeds:

cl_yawspeed (140) - keyboard yaw turning speed
cl_pitchspeed (150) - keyboard pitch turning speed


More variables and commands can be found by typing “cmdlist” or “cvarlist” into the console. Let us know if you find a useful one not in this list.


Have a play with these variables, tweak them until you feel you're running around as Caleb. Then tell us what you've found, so we can modify the final player movement to suit.
User avatar
Slink

Not to be a dick, but...

Posts: 1904
Joined: Mon Aug 16, 2004 04:42 am
Location: Niagara County, NY

Post by Slink »

Well written FAQ and such!

Question: Are the friction variables integer or double(decimal)? Are ALL the values whole integer-only?
Post Reply