Iris2.de

Iris2-Forum
It is currently Sat Oct 31, 2020 6:47 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Walking by default...
PostPosted: Fri Jan 14, 2011 11:25 pm 
Offline

Joined: Wed May 23, 2007 8:04 pm
Posts: 5
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...


Top
 Profile  
 
PostPosted: Sun Jan 16, 2011 3:43 pm 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
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>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group