SA-MP Forums Archive
night vision and thermo vission - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Client Support (https://sampforum.blast.hk/forumdisplay.php?fid=16)
+--- Thread: night vision and thermo vission (/showthread.php?tid=429366)



night vision and thermo vission - megamind2067 - 09.04.2013

Are night and thermo vision still bugged in 3x?


Re: night vision and thermo vission - Fredx - 09.04.2013

No they are not bugged you can go in-game and just test it instead of making a thread on the forums there are many servers you can test it on.


Re: night vision and thermo vission - EiresJason - 09.04.2013

Was the bug that if one person does it; it actually activates it for the whole server/a few people? Because that still happens.


Re: night vision and thermo vission - SuperViper - 09.04.2013

That can be fixed with some code under OnPlayerUpdate. Check if the person is pressing the fire key and if they're holding goggles. If so, return 0 to prevent the update from being synced.


Re: night vision and thermo vission - MP2 - 09.04.2013

Quote:
Originally Posted by SuperViper
Посмотреть сообщение
That can be fixed with some code under OnPlayerUpdate. Check if the person is pressing the fire key and if they're holding goggles. If so, return 0 to prevent the update from being synced.
This is a very bad idea. You can hold the fire key and walk around de-synced, which is very abusable.


Re: night vision and thermo vission - megamind2067 - 09.04.2013

Ok is that all?


Re: night vision and thermo vission - MP2 - 09.04.2013

Yes.


Re: night vision and thermo vission - Baboon - 09.04.2013

Quote:
Originally Posted by MP2
Посмотреть сообщение
This is a very bad idea. You can hold the fire key and walk around de-synced, which is very abusable.
By using a variable to check if he has pressed the button, you could prevent that.
Then just check if he presses it again, and reset the variable (or when the player changes weapons).