Trouble with Chivalry 2 script

Ask gaming related questions (AHK v1.1 and older)
PixelRain
Posts: 10
Joined: 14 Jul 2022, 00:07

Trouble with Chivalry 2 script

Post by PixelRain » 20 Jul 2022, 10:50

Code: Select all

Lbutton::
 
if (a_timesincepriorhotkey != -1 && a_timesincepriorhotkey<500) 
         cnt += 1 
else if (a_timesincepriorhotkey > 700) 
         cnt := 0 
 
if (cnt == 1) 
         Send, o
else
         Click ; makes it so that the double click only inputs "o" and not LMB and "o"
Return
What I am going to try to say is probably gonna be hard to understand but what can I do.
This script presses "o" after a double click, but the weird problem with it is that the LMB or "o" cannot be held down.
Pressing LMB starts a normal attack, when LMB is held for 0,5 sec. it does a heavy attack, heavy attacks cannot be morphed
Pressing LMB for a normal attack and then pressing "o" morphs the normal attack to an alternate version of it
Pressing LMB for a normal attack and then holding down "o" for 0,5 sec. does alternate heavy attack
With this script holding down a key only presses it and I don't know why.

shanshans
Posts: 27
Joined: 13 Dec 2015, 08:10

Re: Trouble with Chivalry 2 script

Post by shanshans » 20 Jul 2022, 12:13

I replaced lmb and o to a and b and it is not working for me...
Sec, if you want to double press for something(funciton/key) new while blocking it's original key function , that will causing output delay (for the lmb, about 70-80ms at least...)

I never understand a_timesincepriorhotkey or their brothers, so i can't answer this for you.

Post Reply

Return to “Gaming Help (v1)”