add game&rawdata

This commit is contained in:
Vasily Petrov 2026-06-17 23:06:51 +03:00
parent 0133cd976c
commit 49b34b5546
45731 changed files with 709831 additions and 0 deletions

View file

@ -0,0 +1,20 @@
----------------------------------------------------------------------------------------------------------------------
-- Êëàññ CZoneNoWeapon. Ïðè âõîäå èãðîêà â çîíó, ó íåãî óáèðàåòñÿ îðóæèå. Ïðè âûõîäå - äîñòàåòñÿ
----------------------------------------------------------------------------------------------------------------------
class "CZoneNoWeapon"
function CZoneNoWeapon:__init( zone, binder, ini )
-- Åñëè óæå åñòü àêòåð è îí â çîíå, òî óáèðàåì îðóæèå
if binder.actor_inside then
db.actor:hide_weapon()
end
end
function CZoneNoWeapon:on_enter( actor )
actor:hide_weapon()
end
function CZoneNoWeapon:on_leave( actor )
actor:restore_weapon()
end