
i think that "keypressed" is very important one.
imagine - for example in your script you have a place where you can heal when some key is pressed (remember, just like in hl1 and hl2)
it is impossible to do without such hook
imagine - for example in your script you have a place where you can heal when some key is pressed (remember, just like in hl1 and hl2)
it is impossible to do without such hook
It's very possible without it.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
h_down = false
function keydown(id, k)
if ( k == "h" ) then
h_down = true
end
end
function keyreleased(id, k)
if ( k == "k" ) then
h_down = false
end
end
-- now with a time hook you can add the healing effect