Arkshine / Ankh

All-in-One utilities AMX Mod X module.
1 stars 2 forks source link

Client listening natives #16

Open ConnorMcLeod opened 11 years ago

ConnorMcLeod commented 11 years ago

Rather than having to hook FM_SetClientListening, or more usefull then engine natives : native that allow to set if playerA can hear playerB, that's all and can allow all settings.

2 ways : set_user__(index, playersMask) or set_user__(index, playerB, true/false)

Both methods have cons, mask need to retrieve value first, second one need to call few times the native for some specific stuff. I think second way is better.

joropito commented 11 years ago

Maybe both methods with preference on second.

For example:

voice mask to player A voice flag to player A from B

then: player A uses mask for all players except from player B

another native to clear settings will be useful

joropito commented 11 years ago

Should we use groupinfo way like in semiclip? Did it work with voice? If we use it in same way we can avoid to add a lot more code.