Help With Grenade Launcher - 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)
+--- Thread: Help With Grenade Launcher (
/showthread.php?tid=450264)
Help With Grenade Launcher -
Opah - 12.07.2013
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.
Re: Help With Grenade Launcher -
Opah - 12.07.2013
well i got the basics but i am not advanced
Re: Help With Grenade Launcher -
Opah - 12.07.2013
ok i will but could u give me some links
Re: Help With Grenade Launcher -
Opah - 12.07.2013
Thanx ****** Appreciate it