.script — различия между версиями
Материал из S.T.A.L.K.E.R. Inside Wiki
Loxotron (обсуждение | вклад) |
Loxotron (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
+ | Оригинал: | ||
<pre> | <pre> | ||
function object_type(obj) | function object_type(obj) | ||
Строка 31: | Строка 32: | ||
otype == clsid.fracture or | otype == clsid.fracture or | ||
otype == clsid.cat or | otype == clsid.cat or | ||
+ | </pre> | ||
+ | |||
+ | Оригинал: | ||
+ | <pre> | ||
+ | function is_object_monster(obj) | ||
+ | local otype = get_clsid(obj) | ||
+ | if(otype == clsid.crow 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.dog_red or | ||
+ | otype == clsid.dog_black or | ||
+ | otype == clsid.poltergeist or | ||
+ | otype == clsid.pseudo_gigant ) | ||
+ | then | ||
+ | return true | ||
+ | end | ||
+ | |||
+ | return false | ||
+ | end | ||
+ | </pre> | ||
+ | |||
+ | В модифицированный добавлено: | ||
+ | <pre> | ||
+ | otype == clsid.fracture or | ||
+ | otype == clsid.cat or | ||
</pre> | </pre> |
Версия 14:58, 8 мая 2007
Оригинал:
function object_type(obj) local otype = get_clsid(obj) local type if otype == clsid.actor or otype == clsid.soldier or otype == clsid.stalker or otype == clsid.trader then type = "stalker" 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
В модифицированный добавлено:
otype == clsid.fracture or otype == clsid.cat or
Оригинал:
function is_object_monster(obj) local otype = get_clsid(obj) if(otype == clsid.crow 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.dog_red or otype == clsid.dog_black or otype == clsid.poltergeist or otype == clsid.pseudo_gigant ) then return true end return false end
В модифицированный добавлено:
otype == clsid.fracture or otype == clsid.cat or