Непосредственная работа скрипта: нажимаешь и держишь непродолжительное время клавишу перемещения, отпускаешь и затем повторно ее нажимаешь (своеобразный двойной клик по клавише). Скрипт полезен для любого персонажа игры, но вся его прелесть проявляется только при игре Разведчиком. Для использования скрипта тебе необходимо привязать к кнопкам следующие алиасы: "+MoveDodgeUp", "+MoveDodgeDown", "+MoveDodgeLeft" и "+MoveDodgeRight". Алиасы "+InAirAction" и "-InAirAction" полезны при перемещениях под водой. Значения по умолчанию уже выставлены в самом скрипте.
Теперь собственно и сам скрипт
Код:
//==============================================================================//
// Dodge forward //
// Since all the groups are basically the same, only this one is explained //
//==============================================================================//
// Set the bindable alias to perform SetMoveUp whenever held
alias +MoveDodgeUp "SetMoveUp;"
// Set the bindable alias to perform SetDodgeUp whenever released
alias -MoveDodgeUp "SetDodgeUp;"
// Start moving forward and the release alias to perform SetDodgeUp,
// after the wait period, the release alias is set to stop movement,
// thus disabling the dodge for this instance.
// The wait period determines how fast you have to let go, after
// pressing the movement key, in-order to enable dodging"
alias SetMoveUp "+Forward; alias -MoveDodgeUp SetDodgeUp; wait 15; alias -MoveDodgeUp HaltMoveUp;"
// Halting movement and setting the next key press to dodge,
// after the wait period, the alias returns to movement functionality.
// The wait period determines how fast you must tap the key in-order to dodge.
alias SetDodgeUp "-Forward; alias +MoveDodgeUp DodgeUp; wait 15; alias +MoveDodgeUp SetMoveUp;"
// Stop movement and reset the alias
alias HaltMoveUp "-Forward; alias -MoveDodgeUp SetDodgeUp;"
// Perform the actual dodge, InAirAction allows you to add actions of your own while in mid air.
alias DodgeUp "+Forward; wait 2; +jump; wait 2; +InAirAction;-jump; wait 2; +jump; wait 2; -jump; wait 60; -InAirAction;"
//============//
// Dodge back //
//============//
alias +MoveDodgeDown "SetMoveDown;"
alias -MoveDodgeDown "SetDodgeDown;"
alias SetMoveDown "+Back; alias -MoveDodgeDown SetDodgeDown; wait 15; alias -MoveDodgeDown HaltMoveDown;"
alias SetDodgeDown "-Back; alias +MoveDodgeDown DodgeDown; wait 15; alias +MoveDodgeDown SetMoveDown;"
alias HaltMoveDown "-Back; alias -MoveDodgeDown SetDodgeDown;"
alias DodgeDown "+Back; wait 2; +jump; wait 2; +InAirAction; -jump; wait 2; +jump; wait 2; -jump; wait 60; -InAirAction;"
//============//
// Dodge Left //
//============//
alias +MoveDodgeLeft "SetMoveLeft;"
alias -MoveDodgeLeft "SetDodgeLeft;"
alias SetMoveLeft "+MoveLeft; alias -MoveDodgeLeft SetDodgeLeft; wait 15; alias -MoveDodgeLeft HaltMoveLeft;"
alias SetDodgeLeft "-MoveLeft; alias +MoveDodgeLeft DodgeLeft; wait 15; alias +MoveDodgeLeft SetMoveLeft;"
alias HaltMoveLeft "-MoveLeft; alias -MoveDodgeLeft SetDodgeLeft;"
alias DodgeLeft "+MoveLeft; wait 2; +jump; wait 2; +InAirAction; -jump; wait 2; +jump; wait 2; -jump; wait 60; -InAirAction;"
//=============//
// Dodge Right //
//=============//
alias +MoveDodgeRight "SetMoveRight;"
alias -MoveDodgeRight "SetDodgeRight;"
alias SetMoveRight "+MoveRight; alias -MoveDodgeRight SetDodgeRight; wait 15; alias -MoveDodgeRight HaltMoveRight;"
alias SetDodgeRight "-MoveRight; alias +MoveDodgeRight DodgeRight; wait 15; alias +MoveDodgeRight SetMoveRight;"
alias HaltMoveRight "-MoveRight; alias -MoveDodgeRight SetDodgeRight;"
alias DodgeRight "+MoveRight; wait 2; +jump; wait 2; +InAirAction; -jump; wait 2; +jump; wait 2; -jump; wait 60; -InAirAction;"
//=========================================//
// Binds - This is what you want to change //
//=========================================//
bind "UpArrow" "+MoveDodgeUp"
bind "DownArrow" "+MoveDodgeDown"
bind "LeftArrow" "+MoveDodgeLeft"
bind "RightArrow" "+MoveDodgeRight"
//============================================//
// InAction - This is what you want to change //
//============================================//
alias +InAirAction "+Duck"
alias -InAirAction "-Duck"