[v1.7.0+] Slow-Motion Running

A place to post your add ons and ideas for them

Moderator: Moderator

Post Reply
Message
Author
Zizzo
Sher'Tul Godslayer
Posts: 2523
Joined: Thu Jan 23, 2003 8:13 pm
Location: A shallow water area south of Bree
Contact:

[v1.7.0+] Slow-Motion Running

#1 Post by Zizzo »

So some users have been requesting the ability to slow down the visual speed of the player running. My new Slow-Motion Running addon is an attempt to help. It adds a new game option "Gameplay | Slow-motion running", which specifies a time in milliseconds to wait between each player step while running (which includes auto-explore and moving by mouse). The default delay is 100ms, and it can be configured from 0 (which disables the delay) up to 1000ms.

[This could probably be included in a future version of ZOmnibus and ZOmnibus Lite, but it would almost certainly need to default to disabled in that case.]

[Implementation notes:]

Code: Select all

Hooks:
  GameOptions:generateList [to add our game option]
Superload:
  mod.class.Player:
    runMoved() [to tell the game engine how long to delay]
  mod.class.Game:
    tick() [to delay as requested]
"Blessed are the yeeks, for they shall inherit Arda..."

Post Reply