GM:MouthMoveAnimation
Açıklama
Sesli sohbette konuşurken ağız hareketini devre dışı bırakmak için bu oyun modu fonksiyonunu geçersiz kılın. Varsayılan olarak, sunucuda hiçbir yerde çağrılmaz.
Argümanlar
Örnek
Base gamemode'dan alınan varsayılan işlevsellik.
function GM:MouthMoveAnimation( ply )
local flexes = {
ply:GetFlexIDByName( "jaw_drop" ),
ply:GetFlexIDByName( "left_part" ),
ply:GetFlexIDByName( "right_part" ),
ply:GetFlexIDByName( "left_mouth_drop" ),
ply:GetFlexIDByName( "right_mouth_drop" )
}
local weight = ply:IsSpeaking() && math.Clamp( ply:VoiceVolume() * 2, 0, 2 ) || 0
for k, v in pairs( flexes ) do
ply:SetFlexWeight( v, weight )
end
end
Tüm sunucular · GmodTR Launcher · Rehber · GMod Wiki · GmodTR nedir? · Sunucu ekle · Discord