SA-MP Forums Archive
Using Mele weapon on water - 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: Using Mele weapon on water (/showthread.php?tid=586319)



Using Mele weapon on water - Cenzy - 21.08.2015

Hello, i'm developing a server with custom maps with objects placed on the water surface (outside the cities of San Andreas) ... if i try to kill a player with Katana (sword) for example, his health won't be affected... if i do this near the shore the sword is working but if you go away from the shore isn't working anymore ... same for the punch is anyhow possible to fix this? I'm working at a pirate server and i needed swords on the sea side too ) Thank you for your time

PS: no player is in water, all are above the water surface because i made custom maps with MTA


Re: Using Mele weapon on water - Vince - 21.08.2015

Known bug, can't be fixed. Also affects snipers and I believe chainsaws, too. The game goes haywire if you go outside its 6000x6000 bounding box.


Re: Using Mele weapon on water - Gammix - 21.08.2015

Maybe could be solved with animation detection for mele weapons.

Check under OnPlayerUpdate using GetPlayerAnimationIndex.


Re: Using Mele weapon on water - Cenzy - 22.08.2015

Quote:
Originally Posted by Gammix
Посмотреть сообщение
Maybe could be solved with animation detection for mele weapons.

Check under OnPlayerUpdate using GetPlayerAnimationIndex.
Yeah but if i make a getplayeranimationindex setplayerhealth -10 the other player who is being attacked can't defend himself using right click and shift ... and the sword is pretty useless xD