P.I.T. Maneuver
#1

I wonder how to script this check:
[ame=http://www.youtube.com/watch?v=cIJC7JrKtW8] P.I.T. [/ame]
Reply
#2

You can PIT players by driving infront of them and lagg slamming them to the side.
Reply
#3

You could make a command like /pit and check if both players are in a vehicle and randomize success of the command.
Reply
#4

No, this is possible without the commands, i just wonder if there is any calculation to check if it was successful.
Reply
#5

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.
Reply
#6

check distances, then if one car turns sharply without using the handbrake.
that's what I'd start with doing
Reply
#7

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)