Give this weapon to every player:
if(playerenters){toweapons -dragplayer;}
if (actionprojectile || actionprojectile2) {
if (strequals(#p(2),clickDrag) && strequals(#p(3),#a)) {
freezeplayer 0.3;
setani drag,;
playerx = strtofloat(#p(4));
playery = strtofloat(#p(5));
}
}
Give this weapon to staff:
if (playertouchsme){
toweapons Staff/Drag;
hidelocal;
}
if (weaponfired) {
if (!this.on) {
set this.on; setplayerprop #c,On;
}
else {
unset this.on; setplayerprop #c,Off;
}
this.target = -1;
timeout = 0.05;
}
if (timeout) {
if (!this.on)
return;
timeout = 0.05;
getTarget();
moveTarget();
}
function getTarget() {
if (leftmousebutton) {
if (!this.lmb) {
set this.lmb;
for (i=0;i<playerscount;i++) {
if (abs(players[i].x+1.5-mousex) < 1 && abs(players[i].y+1.5-mousey) < 1.5) {
this.target = i;
this.dx = players[i].x;
this.dy = players[i].y;
this.omousex = mousex;
this.omousey = mousey;
break;
}
}
}
}
else {
this.target = -1;
unset this.lmb;
}
}
function moveTarget() {
if (this.target < 0) return;
this.dx += mousex-this.omousex;
this.dy += mousey-this.omousey;
setshootparams clickDrag,#a(this.target),#v(this.dx),#v(this.dy); shoot -10,-10,0.05,0.05,0.05,0.05,,,,,; this.omousex = mousex;
this.omousey = mousey;
}
here is the gani for it
drag.gani
Codr
June 7, 2016, 8:21pm
2
I think all anyone ever wants to make is staff tools.
yeah staff abuse for the win Lol
Dylan
June 7, 2016, 10:21pm
4
I remember the golden days of staff abusing ever single player that entered my server. It was really bad at one point when I had like 10 people with staff tools that all collectively chased after the poor players that connected to my server.
Codr
June 7, 2016, 11:24pm
5
[QUOTE=Dylan;n183660]I remember the golden days of staff abusing ever single player that entered my server. It was really bad at one point when I had like 10 people with staff tools that all collectively chased after the poor players that connected to my server.[/QUOTE]
That’s hilarious, but not really because that’s how you lose people.
Lol the truh is the funniest part
[QUOTE=Codr;n183656]I think all anyone ever wants to make is staff tools.[/QUOTE]
I have a Pirates of the Carribean like compass somehwere lying around… I wonder why I haven’t uploaded it.
Why do people even need these? Summon , Warpto etc work well enough…
Dylan
June 10, 2016, 6:05pm
9
[QUOTE=Yggdrasil;n183692]Why do people even need these? Summon , Warpto etc work well enough…[/QUOTE]
that’s not fun though
Dylan
June 11, 2016, 12:38pm
11
[QUOTE=Pr0xyGraal;n183697]Abuse is fun.[/QUOTE]
t. my gf
[QUOTE=Dylan;n183696]
that’s not fun though
[/QUOTE]
sure it is. Summon people onto trees where nobody can see them, and force them to use unstick to get out.
Dylan
June 12, 2016, 6:13pm
13
[QUOTE=Yggdrasil;n183704]
sure it is. Summon people onto trees where nobody can see them, and force them to use unstick to get out.
[/QUOTE]
yeah but you can DRAG them onto trees, even better
xD i just thought it was cool so i posted it… XD
[QUOTE=Dylan;n183721]
yeah but you can DRAG them onto trees, even better
[/QUOTE]
Alt+Click on map → summon [playername]
not so hard
really?
But I think drag was the keyword there… using the mouse on graal dude! The mouse!
[QUOTE=2ndwolf;n183748]
really?
But I think drag was the keyword there… using the mouse on graal dude! The mouse!
[/QUOTE]
both my hands will remain on the keyboard when I play Graal, and that’s the way I like it!