Iris2.de
http://iris2.de/forum/

Walking by default...
http://iris2.de/forum/viewtopic.php?f=16&t=1681
Page 1 of 1

Author:  Gautman [ Fri Jan 14, 2011 11:25 pm ]
Post subject:  Walking by default...

Hi there.

Messing around with Iris recently. I was tired of my character running by default. I fixed that by changing the following code in lua\lib.tilefreewalk.lua at line 181 :
Code:
local maxspeed = fRequestedSpeed * gSecondsSinceLastFrame
if (bSlowWalk) then maxspeed = maxspeed * 0.5 end -- TODO : bSlowWalk-speed
bRunRequested = not bSlowWalk

changed to :
Code:
local maxspeed = fRequestedSpeed * gSecondsSinceLastFrame
if not (bSlowWalk) then maxspeed = maxspeed * 0.5 end -- TODO : bSlowWalk-speed
bRunRequested = bSlowWalk

My character now walks by default and run when I press left-shift. But I wonder if that might broke something or not...

Author:  ghoulsblade [ Sun Jan 16, 2011 3:43 pm ]
Post subject:  Re: Walking by default...

i'd rather recommend setting a hotkey for "ToggleAlwaysRun" under paperdoll : options : hotkeys : misc (near the bottom of the list)

to change default behavior you can set in config/config.lua :
gAlwaysRun = false

or in config/shards/yourshard.xml :
<boolean key="gAlwaysRun">false</boolean>

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/