Сповіщення
Очистити все
04.11.2023 15:11
Вступ
На цьому уроці ми створимо новий детектор артефактів. потрібні файли:
gamedata\configs\misc\devices.ltx
gamedata\configs\gameplay\character_desc_general.xml
gamedata\configs\text\ukr\st_items_equipment.xml
Початок роботи
(Врахуйте: дані детектори на ЗП та ЧН) відкриємо:
gamedata\configs\misc\devices.ltx
Наприкінці файлу додаємо це:
[ detector_ваша_назва_англійською ] :detector_advanced $ spawn = "devices\detector_ваша_назва_на_англійській" ;для левів едитор class = DET_ELIT visual = dynamics\devices\ dev_detector_3 \dev_detector_3.ogf ; Посилання на модель в даному випадку у нас буде модель "велеса" inv ; детектора у файлі gamedata \ configs\text\ukr\st_items_equipment.xml inv_name_short = st_ваша_назва_на_англійській ;теж саме що і inv_name має бути однаковим description = st_ваша_назва_на_англійській_descr ; _ваша_назва_на_англійській_hud ; посилання на худий детектора inv_grid_width = 1 ;;; inv_grid_height = 1 ;;;;;;;; Іконка детектора inv_grid_x = 5 ;;;;;;;;; _ _ cost = 2000 ; elite x="0.00096" y="0.0035" ui_p = -0.02904 , 0.01 , 0.0364 ui_r = 0 , 90 , 0 af_radius = 30 ; це радіус на якому на екрані детектора видно позначку артефакту af_vis_radius = 5 ; це радіус коли артефакт видно оком ГГ ; рядок від af_class_19 до af_freq_26 це які артефакти бачить детектор, важливо якщо ви будите робити нові артефакти то потрібно прописати щоб детектор ; їх бачив подивимося приклад на af_class_19 до af_freq_19 af_class_19 = af_eye ; назва артефакту af_sound_19_ = detectors\art_beep1 ; звук при виявленні af_freq_19 = 0.05 2 ; ??? af_class_20 = af_fire af_sound_20_ = detectors\art_beep1 af_freq_20 = 0.05 , 2 af_class_21 = af_gravi af_sound_21_ = detectors \ art_beep1 af_freq_21 = 0.05 , 2 af_class_22 = af_gold_fish af_sound_22_ = detectors \ art_beep1 af_freq_22 = 0 . af_class_23 = af_baloon af_sound_23_ = detectors \ art_beep1 af_freq_23 = 0.05 , 2 af_class_24 = af_glass af_sound_24_ = detectors \ art_beep1 af_freq_24 = 0 . af_class_25 = af_dummy_dummy af_sound_25_ = detectors \ art_beep1 af_freq_25 = 0.05 , 2 af_class_26 = af_ice af_sound_26_ = detectors \ art_beep1 af_freq_26 = [ detector_ваша_назва_англійською_hud ] :detector_base_hud ; потрібно щоб збігалося з рядком hud = item_position = -0.071685 , 0.036188 , -0.009934 _ item_visual = dynamics\devices\dev_detector_3\dev_detector_3_hud ; посилання моделі детектора в руці ГГ anm_show = dev_detector_3_draw anm_show_fast = dev_detector_3_draw ; _quick anm_hide = dev_detector_3_holster anm_hide_fast = dev_detector_3_holster_quick anm_idle = dev_ded _idle_moving anm_idle_sprint = dev_detector_3_idle_moving _ anm_show_16x9 = dev_detector_3_draw_ws, dev_detector_3_draw anm_show_fast_16x9 = dev_detector_3_draw_ws ;_quick anm_hide_16x9 = dev_detector_3_hol__s_ x9 = dev_detector_3_holster_ws_quick anm_idle_16x9 = dev_detector_3_idle_ws, dev_detector_3_idle anm_idle_moving_16x9 = dev_detector_3_idle_moving_ws, dev_detector detector_3_idle_moving_ws , dev_detector_3_idle_moving ; анімації детектора краще не чіпати
Опис
Відкриємо:
gamedata\configs\text\ukr\st_items_equipment.xml
і додамо після будь-якої назви предмета ці рядки:
<string id = "detector_ваша_назва_англійською" > <text > Назва детектора </text > </string > <string id = "st_ваша_назва_англійською_descr" > <text > опис </text > </string >
закриваємо та зберігаємо...
Фінал
Тепер залишилося додати детектор ГГ Відкриваємо:
gamedata\configs\gameplay\character_desc_general.xml
і після рядків:
<!-- --> <!-- Actor --> <!-- --> <specific_character id = "actor" no_random = "1" > <name > st_actor_name </name > <icon > ui_inGame2_Hero </icon > <map_icon x = "2" y = "5" > </map_icon > <team > Actor </team > <supplies > [spawn] \n
додаємо:
detector_ваша_назва_англійською \n
Зберігаємо...
PS Якщо все правильно то після початку нової гри в РР буде новий детектор.