How to update the movement speed?

Post Reply
Anatolille
Posts: 6
Joined: Mon Jan 20, 2014 9:55 pm

How to update the movement speed?

Post by Anatolille » Sun Jan 26, 2014 9:58 am

The title pretty much says it - how does one change the player's base movement speed? I had thought that this setting would be in the database, but it has so far eluded me.

The only reference to player speed that I've found so far has been in scripts\commands\speed.lua. I noticed that the only site from which the speed function is called is in the implementation of the bind effect (scripts\globals\effects\bind.lua). Given this function, it seems like scripts\globals\player.lua :: onGameIn would be the logical site where that function should be called to increase a player's movement speed, but this feels a bit like a hack (not to mention that I'm not sure what the default movement speed is already).

Have I overlooked a setting somewhere? Further, what is the default value and its range?

Thanks.

User avatar
demolish
Developer
Posts: 262
Joined: Thu Jul 26, 2012 7:12 am

Re: How to update the movement speed?

Post by demolish » Sun Jan 26, 2014 11:17 am

map_darkstar.conf
speed_mod
<Giblet[NewBrain]> kj with this first step would be fine on my shit
Click here for a guide on scripting missions.

Anatolille
Posts: 6
Joined: Mon Jan 20, 2014 9:55 pm

Re: How to update the movement speed?

Post by Anatolille » Sun Jan 26, 2014 11:34 am

Oh, duh. Thanks!

Post Reply