v10networkscom / saltychat-fivem

FiveM implementation of Salty Chat (TeamSpeak 3 based Voice Plugin)
https://gaming.v10networks.com
GNU General Public License v3.0
71 stars 64 forks source link

Implement Megaphone #13

Closed leonkappes closed 4 years ago

leonkappes commented 4 years ago

So I've implemented the Megaphone into the Fivem Wrapper. Standard Control is VehicleNextRadio but I can change that if you'd like. Currently, Range is calculated by the user's voice range * 3, didn't want it to be overkill.

MypowerHD commented 4 years ago

Maby it's better that you look for the last range in the shared Ranges array(https://github.com/saltminede/saltychat-fivem/blob/57aa5c033a9e9ac4d727cfc8bfb4026dc0f90e06/saltychat/SaltyShared/SharedData.cs#L5) and add then +10f?

leonkappes commented 4 years ago

Maby it's better that you look for the last range in the shared Ranges array(

https://github.com/saltminede/saltychat-fivem/blob/57aa5c033a9e9ac4d727cfc8bfb4026dc0f90e06/saltychat/SaltyShared/SharedData.cs#L5

) and add then +10f?

It would be an idea but from a realistic standpoint, it sounds louder in a megaphone if you scream into it then if you whisper. Sounded logical for me

MypowerHD commented 4 years ago

Yeah the realistic fact had I forgot๐Ÿ™ˆ๐Ÿ™„๐Ÿ˜