SA-MP Forums Archive
There is a new method to change weapon damages? - 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: There is a new method to change weapon damages? (/showthread.php?tid=488146)



There is a new method to change weapon damages? - arakuta - 16.01.2014

After doing some tests with the new sync system, i've tried to change a weapon damage.

In 0.3x i was setting all players to the same team by SetPlayerTeam, then fully managed all the weapon damages via Take/Give Damage.

Now with the new sync, i'm interested if there's a way to manage weapon damages, then i could get rid of SetPlayerTeam.

Tried to return 0 on the new callback OnPlayerWeaponShot, and then manage via Give/Take, but this forces bullets not sync for any player.

Does anyone have any ideia? I really need to get rid of SetPlayerTeam, as i can't use Vehicle Friendly fire, for example.


Re: There is a new method to change weapon damages? - Mauzen - 16.01.2014

Not yet. Though some mod made hints that there might be more "bullet control" in future (test) releases.

Quote:
Originally Posted by Si|ent
Посмотреть сообщение
You have total control over the bullets. You could remove some from joypad users to balance the aim advantages, as an example. You would not have to totally disallow their use.

Bear in mind this is still an RC though, as always things may be added/removed/tweaked/changed during the RC stages.



Re: There is a new method to change weapon damages? - Pottus - 16.01.2014

It can be done already if you know how.