Help With Grenade Launcher
#1

Hi Guys I Have Been Trying To Build An m203 Grenade Launcher I Was Trying To Understand Mauzen's Function But I Couldn't Can Anybody Help Me

The function
pawn Код:
GetBallisticCurvePos(&Float:x, &Float:y, &Float:z, Float:xvector, Float:yvector, &Float:angle, &Float:speed, Float:millis)
{
    new Float:xo = speed * floatcos(angle, degrees) * millis;

    x = x + xo * xvector;
    y = y + xo * yvector;
    z = z + ((GRAVITATION / -2.0) * millis * millis + speed * floatsin(angle, degrees) * millis);

    //if(GetGroundZ(x, y) < z) return false;

    //speed = floatsqroot( speed * speed - 2 * speed * GRAVITATION * millis * floatsin(angle, degrees) + GRAVITATION * GRAVITATION * millis * millis );

    //speed = floatsqroot( speed * speed + GRAVITATION * GRAVITATION * millis * millis );
    return true;
}
I Need To Understand The Params.
Reply
#2

well i got the basics but i am not advanced
Reply
#3

ok i will but could u give me some links
Reply
#4

Thanx ****** Appreciate it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)