LOS [Line Of Sight] - Calculations
#1


I'm intrigued now because of what a guy said that with the bodydetection include you can shoot pleople from behind walls.

Is there a way to calculate line of sight in SAMP? (not waiting for the next release, if it does have a check like this).

We would need the x, y & z values from all the buildings or terrain to check that, right?

Reply
#2

yes you would unless your map was 100% custom objects
Reply
#3

Sort of.
http://forum.sa-mp.com/index.php?top...4491#msg964491
Reply
#4

Quote:
Originally Posted by ev0lutionnn
Mmmm... interesting... I'll be playing with that.

Thanks
Reply
#5

If you only needed it so that you can give more damage to the gun then you could just check if the player's aiming at a person and fired then you can check the player's health to see if it has decreased.
Reply
#6

Quote:
Originally Posted by Giacomand
If you only needed it so that you can give more damage to the gun then you could just check if the player's aiming at a person and fired then you can check the player's health to see if it has decreased.
No, what I need is to check LOS when I'm aiming to a bot, because the calculations only detect when I aim the npc, no matter if there's a wall or not.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)