SA-MP Forums Archive
Bullet projectiles. - 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: Bullet projectiles. (/showthread.php?tid=655083)



Bullet projectiles. - JamesT85 - 12.06.2018

So in san Andreas, the game uses a hitscan based system where the bullet is instant. What I would like to know is it possible to create a projectile system like in newer fps games where you have to compensate for the distance your firing from and it's not the first one to point and click. I looked around and all I could find was this video on a mod for San Andreas that adds this function.
https://www.youtube.com/watch?v=YL-wDgGV_VA
Thanks.


Re: Bullet projectiles. - CodeStyle175 - 12.06.2018

you want to create visible projectile?
you could use small object and loop throw trajector public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) has everything you need.


Re: Bullet projectiles. - RedFusion - 12.06.2018

Yes, it should be possible.
I recommend you look up ColAndreas, and also pick up a book or study online about Trigonometry.