@@ -36,9 +36,9 @@ function actor_binder:net_spawn(data)
3636-- printf("actor net spawn")
3737 level.show_indicators()
3838 self.bCheckStart = true
39- self.weapon_hide = false -- 鬨 ﱳ穥
39+ self.weapon_hide = false -- спрятано или нет оружие при разговоре.
4040 self.weapon_hide_in_dialog = false
41- weapon_hide = {} -- ������쩢 䬮⡫ 妴גּ硴졣 .
41+ weapon_hide = {} -- устанавливаем глобальный дефолтовый флаг .
4242 if object_binder.net_spawn(self,data) == false then
4343 return false
4444 end
@@ -50,9 +50,9 @@ function actor_binder:net_spawn(data)
5050 end
5151 xr_s.on_game_load() --' Distemper 03.2008 --
5252 self.weather_manager:reset()
53- --' Ƞ䱳硥ꡭᲲ桤
53+ --' Загружаем настройки дропа
5454 death_manager.init_drop_settings()
55- --'Ա㬨㡥ꡱ 楦殍
55+ --'Устанавливаем ссылку на таскменеджер
5656 self.task_manager = task_manager.get_task_manager()
5757 self.spawn_frame = device().frame
5858 self.already_jumped = false
@@ -130,7 +130,7 @@ function actor_binder:reinit()
130130 self.object:set_callback(callback.task_state, self.task_callback, self)
131131 self.object:set_callback(callback.take_item_from_box, self.take_item_from_box, self)
132132 self.object:set_callback(callback.use_object, self.use_inventory_item, self)
133-
133+
134134 ----| aVo |--------------------------------------------------------------------
135135 self.object:set_callback(callback.hit, self.actor_hit, self)
136136 self.object:set_callback(callback.key_press, self.key_press, self)
@@ -144,8 +144,6 @@ function actor_binder:reinit()
144144 ----| end:aVo |----------------------------------------------------------------
145145end
146146---------------------------------------------------------------------------------------------------------------------
147-
148-
149147----| aVo |--------------------------------------------------------------------
150148-- actor hit callback
151149function actor_binder:actor_hit(obj, amount, local_direction, who, bone_index)
@@ -155,50 +153,51 @@ end
155153-- key press callback
156154function actor_binder:key_press(key)
157155 -- sm:call("key_press", key)
158- -- log1 (string.format("key pressed %d", key))
156+ -- log (string.format("key pressed %d", key))
159157 if key == DIK_keys.DIK_F7 then
160- log1 ("F7 pressed")
158+ log ("F7 pressed")
161159 end
162160end
163161-- key release callback (turn on in build_config_defines.h only if absolutely needed)
164162function actor_binder:key_release(key)
165163 -- sm:call("key_release", key)
166- -- log1 (string.format("key released %d", key))
164+ -- log (string.format("key released %d", key))
167165 if key == DIK_keys.DIK_F7 then
168- log1 ("F7 released")
166+ log ("F7 released")
169167 end
170168end
171169-- key hold callback (turn on in build_config_defines.h only if absolutely needed)
172170function actor_binder:key_hold(key)
173171 -- sm:call("key_hold", key)
174- -- log1 (string.format("key hold %d", key))
172+ -- log (string.format("key hold %d", key))
175173 if key == DIK_keys.DIK_F7 then
176- log1 ("F7 hold")
174+ log ("F7 hold")
177175 end
178176end
179177-- mouse move callback (turn on in build_config_defines.h only if absolutely needed)
180178function actor_binder:mouse_move(dx, dy)
181- log1 (string.format("mouse moved to: [%d]:[%d]", dx, dy))
179+ log (string.format("mouse moved to: [%d]:[%d]", dx, dy))
182180end
183181-- mouse wheel callback (direction is 120 up and -120 down)
184182function actor_binder:mouse_wheel(direction)
185- log1 (string.format("mouse wheel moved %s", tostring(direction)))
183+ log (string.format("mouse wheel moved %s", tostring(direction)))
186184end
187185-- item to ruck callback
188186-- note: this is called on new game and level change
189187function actor_binder:item_to_ruck(obj)
190- log1 (string.format("item_to_ruck [%s]", obj:name()))
188+ log (string.format("item_to_ruck [%s]", obj:name()))
191189end
192190-- item to belt callback
193191-- note: this is called on new game and level change
194192function actor_binder:item_to_belt(obj)
195- log1 (string.format("item_to_belt [%s]", obj:name()))
193+ log (string.format("item_to_belt [%s]", obj:name()))
196194end
197195-- item to slot callback
198196-- note: this is called on new game and level change
199197function actor_binder:item_to_slot(obj)
200- log1 (string.format("item_to_slot [%s]", obj:name()))
198+ log (string.format("item_to_slot [%s]", obj:name()))
201199end
200+ ----| end:aVo |---------------------------------------------------------------
202201----------------------------------------------------------------------------------------------------------------------
203202function actor_binder:take_item_from_box(box, item)
204203 local box_name = box:name()
207206----------------------------------------------------------------------------------------------------------------------
208207function actor_binder:info_callback(npc, info_id)
209208 printf("*INFO*: npc='%s' id='%s'", npc:name(), info_id)
210- --' Ҿ禲
211- -- ϲ릠롰end
209+ --' Сюжет
210+ -- Отметки на карте
211+ end
212212----------------------------------------------------------------------------------------------------------------------
213213function actor_binder:on_trade (item, sell_bye, money)
214214 if sell_bye == true then
@@ -319,7 +319,7 @@ function actor_binder:update(delta)
319319 return
320320 end
321321
322- -- û询 ᰤ檲ힺ���汥ힺ���䱮랠㯤揄
322+ -- Вызов апдейта переноса игрока проводником
323323 if travel_func ~= nil then
324324 travel_func()
325325 end
@@ -328,23 +328,25 @@ function actor_binder:update(delta)
328328 --slowdown.update()
329329 local time = time_global()
330330 game_stats.update (delta, self.object)
331- -- ᰤ檲 糧
331+ -- апдейт погоды
332332 self.weather_manager:update()
333333
334334 self:check_detective_achievement()
335335 self:check_mutant_hunter_achievement()
336336
337- --' o妩𡲠������殥姥 xr_sound.update(self.object:id())
337+ --' Апдейт саундменеджера
338+ xr_sound.update(self.object:id())
338339
339- -- ϡ즭飠ﳪ쿷殨 㣮垠흆���ᣨᳳ
340+ -- Обновление отключения ввода с клавиатуры.
340341 if self.st.disable_input_time ~= nil and
341342 game.get_game_time():diffSec(self.st.disable_input_time) >= self.st.disable_input_idle
342343 then
343344 level.enable_input()
344345 self.st.disable_input_time = nil
345346 end
346347
347- -- o妩𡰰㡮 餰 㬠㱥���婠쯣ힸ��� if self.object:is_talking() then
348+ -- Апдейт прятание оружия игрока во время диалога
349+ if self.object:is_talking() then
348350 if self.weapon_hide_in_dialog == false then
349351 self.object:hide_weapon()
350352 printf("hiding weapon!!!")
@@ -357,7 +359,7 @@ function actor_binder:update(delta)
357359 self.weapon_hide_in_dialog = false
358360 end
359361 end
360- -- o妩𡰰㡮 餰 ࡧﮥ sr_no_weapon
362+ -- Апдейт прятание оружия игрока в зоне sr_no_weapon
361363 if check_for_weapon_hide_by_zones() == true then
362364 if self.weapon_hide == false then
363365 printf("hiding weapon!!!")
@@ -372,12 +374,13 @@ function actor_binder:update(delta)
372374 end
373375 end
374376
375- -- 殨㡯
377+ -- обновление пси-антенны
376378 if sr_psy_antenna.psy_antenna then
377379 sr_psy_antenna.psy_antenna:update(delta)
378380 end
379381--[[
380- --' û㯤 殨 졡לּ易ᷨ拊 if self.object.radiation >= 0.7 then
382+ --' Вывод сообщения о большой радиации
383+ if self.object.radiation >= 0.7 then
381384 local hud = get_hud()
382385 local custom_static = hud:GetCustomStatic("cs_radiation_danger")
383386 if custom_static == nil then
@@ -426,7 +429,7 @@ function actor_binder:update(delta)
426429 end
427430 self.surge_manager:update()
428431 end
429- -- o妩𡥮콠퀶馮
432+ -- Апдейт доступности для симуляции.
430433 simulation_objects.get_sim_obj_registry():update_avaliability(alife():actor())
431434
432435 if not self.loaded then
445448function actor_binder:save(packet)
446449 set_save_marker(packet, "save", false, "actor_binder")
447450 object_binder.save(self, packet)
448- --' Ү������檠������殼 packet:w_u8(level.get_game_difficulty())
449- --' Ү������檠塭 ﳪ쿷殭猪㣮壍
451+ --' Сохраняем уровень сложности
452+ packet:w_u8(level.get_game_difficulty())
453+ --' Сохраняем данные об отключенном вводе
450454 if self.st.disable_input_time == nil then
451455 packet:w_bool(false)
452456 else
511515function actor_binder:load(reader)
512516 set_save_marker(reader, "load", false, "actor_binder")
513517 object_binder.load(self, reader)
514- --' Ƞ䱳硥ꡳ local game_difficulty = reader:r_u8()
518+ --' Загружаем уровень сложности
519+ local game_difficulty = reader:r_u8()
515520 printf("load game_difficulty %s", tostring(game_difficulty))
516521 get_console():execute("g_game_difficulty "..game_difficulty_by_num[game_difficulty])
517522 local stored_input_time = reader:r_u8()
@@ -564,7 +569,7 @@ function actor_binder:load(reader)
564569end
565570
566571--*************************************************************
567- --* Ю岯ᴭ 㦹槠ࡿ髨 *
572+ --* Подспаун вещей в ящики *
568573--*************************************************************
569574local detective_achievement_items = { "medkit",
570575 "antirad",
0 commit comments