DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CheckForGag()

void ManBase::CheckForGag ( )
inlineprotected

См. определение в файле PlayerBase.c строка 6017

6018 {
6019 #ifdef SERVER
6020 Clothing item;
6021 Class.CastTo(item, GetInventory().FindAttachment(InventorySlots.MASK));
6022 if (!item)
6023 {
6024 Class.CastTo(item, GetInventory().FindAttachment(InventorySlots.HEADGEAR));
6025 }
6026
6027 if (item && item.IsObstructingVoice())
6028 {
6029 item.MutePlayer(this,true);
6030 }
6031 else //should probably check for relevant types before removing mumbling and obstruction specifically..
6032 {
6033 GetGame().SetVoiceEffect(this, VoiceEffectMumbling, false);
6034 GetGame().SetVoiceEffect(this, VoiceEffectObstruction, false);
6035 }
6036 #endif
6037 }
proto native void SetVoiceEffect(Object player, int effect, bool enable)
Enable/disable VoN effect (only on server)
proto native CGame GetGame()

Перекрестные ссылки Class::CastTo(), GetGame() и CGame::SetVoiceEffect().

Используется в OnSelectPlayer().