English Need Knockback script

4 replies
Goto Page
To the start Previous 1 Next To the start
18.11.11 03:09:34 pm
Up
KagamineLen
User
Offline Off
please help me, i need a knockback script because i will use it to my racemode server
18.11.11 03:47:43 pm
Up
SQ
Moderator
Offline Off
Something like that?
This one is with tile-stuck problem though.
Code:
1
2
3
4
5
6
7
8
addhook('hit','Knockback')
function Knockback(p1,p2,Weapon)
     local Damage, pX, pY = itemtype(Weapon,'dmg')
     local Angle = math.rad(math.abs(player(p2,'rot') - 90))
     pX = player(p1,'x') + math.cos(Angle) * Damage
     pY = player(p1,'y') + math.sin(Angle) * Damage
     parse('setpos '..p1..' '..pX..' '..pY)
end
18.11.11 04:59:42 pm
Up
KagamineLen
User
Offline Off
yeah like that, but it has tile stock problem??, is there a script like in the zm plague
18.11.11 05:11:59 pm
Up
if
User
Offline Off
lol,
user SQ: made the zm plague script.
I'm a signature bar.Thank you for your support.
19.11.11 02:49:24 am
Up
KagamineLen
User
Offline Off
i know
To the start Previous 1 Next To the start