Xr assistance.script — различия между версиями
Материал из S.T.A.L.K.E.R. Inside Wiki
Loxotron (обсуждение | вклад) |
(<<< aka_sektor) |
||
| Строка 36: | Строка 36: | ||
otype == clsid.cat or | otype == clsid.cat or | ||
</pre> | </pre> | ||
| + | [[Категория:Неоформленные статьи]] | ||
Текущая версия на 01:03, 20 марта 2014
Оригинал:
function get_sound_for_enemy(enemy)
local otype = enemy:clsid()
local sound = { rnd = 100, maxidle = 1, sumidle = 0}
if otype == clsid.actor or
otype == clsid.soldier or
otype == clsid.script_stalker or
otype == clsid.trader
then
sound.themes = {"reac_find_enemy"}
elseif otype == clsid.crow or
otype == clsid.rat or
otype == clsid.rat_group or
otype == clsid.zombie or
otype == clsid.flesh or
otype == clsid.controller or
otype == clsid.bloodsucker or
otype == clsid.burer or
otype == clsid.chimera or
otype == clsid.boar or
otype == clsid.flesh_group or
otype == clsid.dog_red or
otype == clsid.dog_black or
otype == clsid.pseudo_gigant
then
sound.themes = {"reac_find_monstr"}
end
Добавлено:
otype == clsid.fracture or otype == clsid.cat or