P.I.T. Maneuver - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: P.I.T. Maneuver (
/showthread.php?tid=271052)
P.I.T. Maneuver -
wups - 22.07.2011
I wonder how to script this check:
[ame=http://www.youtube.com/watch?v=cIJC7JrKtW8] P.I.T. [/ame]
Re: P.I.T. Maneuver -
Memoryz - 22.07.2011
You can PIT players by driving infront of them and lagg slamming them to the side.
Re: P.I.T. Maneuver -
Adil - 22.07.2011
You could make a command like /pit and check if both players are in a vehicle and randomize success of the command.
Re: P.I.T. Maneuver -
wups - 23.07.2011
No, this is possible without the commands, i just wonder if there is any calculation to check if it was successful.
Re: P.I.T. Maneuver -
CaHbKo - 23.07.2011
You could try to find this script in the main.scm file (SA singleplayer script) and see if you could remake it in PAWN. Or you could try to combine a vehicle health change check with changes in the facing angle and speed and make a callback yourself.
Re: P.I.T. Maneuver -
cessil - 23.07.2011
check distances, then if one car turns sharply without using the handbrake.
that's what I'd start with doing
Re: P.I.T. Maneuver -
wups - 23.07.2011
Ok, i've done something by the idea of cessil, and i'm gonna test it.
I also tried searching formulas in main.scm - no luck.
http://pastebin.com/sZfiTB2e
I wan't to add an aditional check.
Function: GetXYInLeftOfVehicle, and same with right.
Something similar to this:
pawn Код:
stock GetXYInFrontOfVehicle(vehicleid, &Float:x, &Float:y, Float:distance)
{
new
Float:a;
GetVehiclePos( vehicleid, x, y, a );
GetVehicleZAngle( vehicleid, a );
x += ( distance * floatsin( -a, degrees ));
y += ( distance * floatcos( -a, degrees ));
}
And what do you guys think : what interval should i set for the check function?