Новые детекторы — различия между версиями — S.T.A.L.K.E.R. Inside Wiki

Новые детекторы — различия между версиями

Материал из S.T.A.L.K.E.R. Inside Wiki

Перейти к: навигация, поиск
(Новая страница: «== НОВЫЕ ДЕТЕКТОРЫ НА ЗП == нус начнем найдите строчки: <code> [detector_simple]:identity_immunities GroupControlSection = s...»)
 
(Начало работы)
 
(не показаны 10 промежуточные версии 7 участников)
Строка 1: Строка 1:
== НОВЫЕ ДЕТЕКТОРЫ НА ЗП ==
+
==Вступление==
нус начнем
+
В этом уроке мы создадим новый детектор артефактов.
найдите строчки:
+
нужные файлы:
 
<code>
 
<code>
[detector_simple]:identity_immunities
+
gamedata\configs\misc\devices.ltx
GroupControlSection = spawn_group
+
gamedata\configs\gameplay\character_desc_general.xml
$spawn = "devices\detector_simple"
+
gamedata\configs\text\rus\st_items_equipment.xml
$prefetch = 32
+
class = DET_SIMP
+
cform = skeleton
+
visual = dynamics\devices\dev_detector_1\dev_detector_1.ogf
+
 
+
hud = detector_simple_hud
+
animation_slot = 7
+
 
+
inv_name = st_detector1
+
inv_name_short = st_detector1
+
description = st_detector1_descr
+
 
+
slot = 8
+
ef_detector_type = 1
+
inv_weight = 0.5
+
 
+
inv_grid_width = 1
+
inv_grid_height = 1
+
inv_grid_x = 9
+
inv_grid_y = 14
+
cost = 500
+
default_to_ruck = false
+
 
+
af_radius = 30
+
af_vis_radius = 3
+
 
+
af_class_1 = af_cristall
+
af_sound_1_ = detectors\art_beep1
+
af_freq_1 = 0.05, 2
+
af_class_2 = af_fireball
+
af_sound_2_ = detectors\art_beep1
+
af_freq_2 = 0.05, 2
+
 
+
af_class_3 = af_medusa
+
af_sound_3_ = detectors\art_beep1
+
af_freq_3 = 0.05, 2
+
af_class_4 = af_cristall_flower
+
af_sound_4_ = detectors\art_beep1
+
af_freq_4 = 0.05, 2
+
 
+
af_class_5 = af_blood
+
af_sound_5_ = detectors\art_beep1
+
af_freq_5 = 0.05, 2
+
af_class_6 = af_mincer_meat
+
af_sound_6_ = detectors\art_beep1
+
af_freq_6 = 0.05, 2
+
 
+
af_class_7 = af_electra_sparkler
+
af_sound_7_ = detectors\art_beep1
+
af_freq_7 = 0.05, 2
+
af_class_8 = af_electra_flash
+
af_sound_8_ = detectors\art_beep1
+
af_freq_8 = 0.05, 2
+
 
+
af_class_9 = af_quest_b14_twisted
+
af_sound_9_ = detectors\art_beep1
+
af_freq_9 = 0.05, 2
+
 
+
af_class_10 = jup_b1_half_artifact
+
af_sound_10_ = detectors\art_beep1
+
af_freq_10 = 0.05, 2
+
 
+
af_class_11 = af_compass
+
af_sound_11_ = detectors\art_beep1
+
af_freq_11 = 0.05, 2
+
 
+
attach_angle_offset = -1.303,-1.493,-1.202
+
attach_position_offset = 0.110,-0.019,0.000
+
 
+
attach_bone_name = bip01_l_hand
+
auto_attach = false
+
snd_draw                = weapons\ak74_draw
+
snd_holster            = weapons\generic_holster
+
 
</code>
 
</code>
И после них вставьте это
+
==Начало работы==
 +
(Учтите: данные детекторы на ЗП и ЧН)
 +
откроем:
 
<code>
 
<code>
[detector_night]:identity_immunities
+
gamedata\configs\misc\devices.ltx
GroupControlSection = spawn_group
+
</code>
$spawn = "devices\detector_simple"
+
В конце файла добавляем это:
$prefetch = 32
+
<ini>
class = DET_SIMP
+
[detector_ваше_название_на_английском]:detector_advanced
cform = skeleton
+
$spawn = "devices\detector_ваше_название_на_английском" ;для левел эдитор
visual = dynamics\devices\dev_detector_1\dev_detector_1.ogf
+
class = DET_ELIT
 +
visual = dynamics\devices\dev_detector_3\dev_detector_3.ogf ;Ссылка на модель в данном случае в нас будет модель "велеса"
 +
inv_name = st_ваше_название_на_английском ;cсылка на название детектора в файле gamedata\configs\text\rus\st_items_equipment.xml
 +
inv_name_short = st_ваше_название_на_английском ;тоже самое что и inv_name должно быть одинаковым
 +
description = st_ваше_название_на_английском_descr ;опсание детектора в gamedata\configs\text\rus\st_items_equipment.xml
 +
hud = detector_ваше_название_на_английском_hud ; ссылка на худ детектора
  
hud = detector_simple_hud
+
inv_grid_width = 1 ;;;
animation_slot = 7
+
inv_grid_height = 1 ;;;;;;;;Иконка детектора
 +
inv_grid_x = 5 ;;;;;;;;в данном случае будет иконка велеса
 +
inv_grid_y = 14;;;
 +
cost = 2000
  
inv_name = st_detector8
+
; elite x="0.00096" y="0.0035"
inv_name_short = st_detector8
+
ui_p = -0.02904,0.01,0.0364
description = st_detector8_descr
+
ui_r = 0,90,0
  
slot = 8
+
af_radius = 30 ; наверное радиус на котором на экране детектора видно отметку артефакта
ef_detector_type = 1
+
af_vis_radius = 5  ; наверное радиус когда артефакт виден глазом ГГ
inv_weight = 0.7
+
  
inv_grid_width = 1
+
; строка от af_class_19 до af_freq_26 это какие артефакты видит детектор, важно если вы будите делать новые артефакты то нужно прописать чтобы детектор
inv_grid_height = 1
+
;их видел посмотрим пример на af_class_19 до af_freq_19
inv_grid_x = 9
+
inv_grid_y = 14
+
cost = 5000
+
default_to_ruck = false
+
  
af_radius = 50
+
af_class_19 = af_eye ; название артефакта
af_vis_radius = 10
+
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_1 = af_cristall
+
af_class_21 = af_gravi
af_sound_1_ = detectors\art_beep1
+
af_sound_21_ = detectors\art_beep1
af_freq_1 = 0.05, 2
+
af_freq_21 = 0.05, 2
af_class_2 = af_fireball
+
af_class_22 = af_gold_fish
af_sound_2_ = detectors\art_beep1
+
af_sound_22_ = detectors\art_beep1
af_freq_2 = 0.05, 2
+
af_freq_22 = 0.05, 2
  
af_class_3 = af_medusa
+
af_class_23 = af_baloon
af_sound_3_ = detectors\art_beep1
+
af_sound_23_ = detectors\art_beep1
af_freq_3 = 0.05, 2
+
af_freq_23 = 0.05, 2
af_class_4 = af_cristall_flower
+
af_class_24 = af_glass
af_sound_4_ = detectors\art_beep1
+
af_sound_24_ = detectors\art_beep1
af_freq_4 = 0.05, 2
+
af_freq_24 = 0.05, 2
  
af_class_5 = af_blood
+
af_class_25 = af_dummy_dummy
af_sound_5_ = detectors\art_beep1
+
af_sound_25_ = detectors\art_beep1
af_freq_5 = 0.05, 2
+
af_freq_25 = 0.05, 2
af_class_6 = af_mincer_meat
+
af_class_26 = af_ice
af_sound_6_ = detectors\art_beep1
+
af_sound_26_ = detectors\art_beep1
af_freq_6 = 0.05, 2
+
af_freq_26 = 0.05, 2
  
af_class_7 = af_electra_sparkler
 
af_sound_7_ = detectors\art_beep1
 
af_freq_7 = 0.05, 2
 
af_class_8 = af_electra_flash
 
af_sound_8_ = detectors\art_beep1
 
af_freq_8 = 0.05, 2
 
  
af_class_9 = af_quest_b14_twisted
+
[detector_ваше_название_на_английском_hud]:detector_base_hud ; нужно чтобы совпадало с строчкой hud =  
af_sound_9_ = detectors\art_beep1
+
item_position = -0.071685,0.036188,-0.009934
af_freq_9 = 0.05, 2
+
item_orientation = 314.589233,-186.420761,-189.323669
  
af_class_10 = jup_b1_half_artifact
+
item_visual                  = dynamics\devices\dev_detector_3\dev_detector_3_hud ; ссылка модели детектора в руке ГГ
af_sound_10_ = detectors\art_beep1
+
af_freq_10 = 0.05, 2
+
  
af_class_11 = af_compass
+
anm_show = dev_detector_3_draw
af_sound_11_ = detectors\art_beep1
+
anm_show_fast = dev_detector_3_draw ;_quick
af_freq_11 = 0.05, 2
+
anm_hide = dev_detector_3_holster
 +
anm_hide_fast = dev_detector_3_holster_quick
 +
anm_idle = dev_detector_3_idle
 +
anm_idle_moving = dev_detector_3_idle_moving
 +
anm_idle_sprint = dev_detector_3_idle_moving
  
attach_angle_offset = -1.303,-1.493,-1.202
+
anm_show_16x9 = dev_detector_3_draw_ws, dev_detector_3_draw
attach_position_offset = 0.110,-0.019,0.000
+
anm_show_fast_16x9 = dev_detector_3_draw_ws ;_quick
 +
anm_hide_16x9 = dev_detector_3_holster_ws, dev_detector_3_holster
 +
anm_hide_fast_16x9 = 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_3_idle_moving
 +
anm_idle_sprint_16x9 = dev_detector_3_idle_moving_ws, dev_detector_3_idle_moving ; анимации детектора лучше не трогать
 +
</ini>
  
attach_bone_name = bip01_l_hand
+
==Описание==
auto_attach = false
+
Откроем:
snd_draw                = weapons\ak74_draw
+
<code>
snd_holster            = weapons\generic_holster
+
gamedata\configs\text\rus\st_items_equipment.xml
 +
</code>
 +
и добавим после любого названия  предмета эти строчки:
 +
<xml>
 +
<string id="detector_ваше_название_на_английском">
 +
<text>Название детектора</text>
 +
</string>
 +
<string id="st_ваше_название_на_английском_descr">
 +
<text>описание</text>
 +
</string>
 +
</xml>
 +
закрываем и сохраняем...
  
 +
==Финал==
 +
Теперь осталось добавить детектор ГГ
 +
Открываем:
 +
<code>
 +
gamedata\configs\gameplay\character_desc_general.xml
 
</code>
 
</code>
Ну вроде все а теперь поподпробнее
+
и после строчек:
<code>
+
<xml>
[detector_simple]:identity_immunities в скобках имя которое воспринимает игра а то что после скобок не трогать
+
<!-- -->
GroupControlSection = spawn_group не трогать
+
<!-- Actor -->
$spawn = "devices\detector_simple" спавн предмета
+
<!-- -->
$prefetch = 32 не трогать
+
class = DET_SIMP и это тоже
+
cform = skeleton и это
+
visual = dynamics\devices\dev_detector_1\dev_detector_1.ogf модель детектора если нет новой оставьте
+
  
hud = detector_simple_hud ссылка на настройки худа если нет новых моделей оставьте в следующей части мы об этом разберемся
+
<specific_character id="actor" no_random = "1">
animation_slot = 7
+
<name>st_actor_name</name>
 +
<icon>ui_inGame2_Hero</icon>
 +
<map_icon x="2" y="5"></map_icon>
  
inv_name = st_detector1 ссылка на имя
+
<team>Actor</team>
inv_name_short = st_detector1 ссылка на имя
+
<supplies>
description = st_detector1_descr ссылка на описание
+
[spawn] \n
  
slot = 8 слот не трогать а то место автомата детектор торчать будет и еще глючить
+
</xml>
ef_detector_type = 1 тип детекции 1-как у отклика-звук 2-как у медведя направление 3-как у велеса точное местоположение если делаете на основе велеса ставьте 3 и так с другими
+
добавляем:
inv_weight = 0.5 вес предмета
+
<code>
 +
detector_ваше_название_на_английском \n
 +
</code>
 +
Cохраняем...
  
inv_grid_width = 1 кол-во иконок по горизонтали
+
P.S. Если все правильно то после начала новой игры в ГГ будет новый детектор
inv_grid_height = 1 кол-во иконок по вертикали
+
Cтатья создана [[Участник:NIGHTSTALKER]]
inv_grid_x = 9 координата Х иконки
+
Статья переделана:
inv_grid_y = 14 координата У иконки
+
[[Участник:Mesnik]] [[Участник:StalkerModer]]
cost = 500 стоимость
+
default_to_ruck = false сам не знаю
+
  
af_radius = 30 радиус на котором детектор реагирует на артефакт
+
[[Категория:Конфигурационные файлы]]
af_vis_radius = 3 радиус на котором артефакт становится видимым для глаз
+
 
+
af_class_1 = af_cristall
+
af_sound_1_ = detectors\art_beep1 список артефактов которые находит детектор тут сокращенный
+
af_freq_1 = 0.05, 2
+
af_class_2 = af_fireball
+
af_sound_2_ = detectors\art_beep1
+
af_freq_2 = 0.05, 2
+
 
+
attach_angle_offset = -1.303,-1.493,-1.202 не знаю
+
attach_position_offset = 0.110,-0.019,0.000 не знаю
+
 
+
attach_bone_name = bip01_l_hand тоже не знаю
+
auto_attach = false тоже
+
snd_draw                = weapons\ak74_draw тоже
+
snd_holster            = weapons\generic_holster и это тоже не надо трогать
+
 
+
</code>
+
ну вроде все
+
 
+
и осталось добавить описания
+
добавляем в st_items_equipment папка configs\text \rus
+
в конце но перед <string_table\>
+
вот это
+
<code>
+
<string id="st_detector8">
+
<text>Ваше название</text>
+
</string>
+
<string id="st_detector8_descr">
+
<text>Ваше описание.</text>
+
</string>
+
</code>
+
и осталось добавить в рюкзак
+
ФАЙЛ character_desc_general папка configs\gameplay
+
после строчки [spawn] \n
+
вот это
+
<code>
+
detector_night \n
+
</code>
+

Текущая версия на 08:53, 1 января 2015

Вступление

В этом уроке мы создадим новый детектор артефактов. нужные файлы:

gamedata\configs\misc\devices.ltx
gamedata\configs\gameplay\character_desc_general.xml
gamedata\configs\text\rus\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_name		= st_ваше_название_на_английском ;cсылка на название детектора в файле gamedata\configs\text\rus\st_items_equipment.xml
inv_name_short	= st_ваше_название_на_английском ;тоже самое что и inv_name должно быть одинаковым
description		= st_ваше_название_на_английском_descr ;опсание детектора в gamedata\configs\text\rus\st_items_equipment.xml
hud			= detector_ваше_название_на_английском_hud ; ссылка на худ детектора
 
inv_grid_width		= 1 ;;;
inv_grid_height		= 1 ;;;;;;;;Иконка детектора
inv_grid_x		= 5 ;;;;;;;;в данном случае будет иконка велеса
inv_grid_y		= 14;;;
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.05, 2
 
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.05, 2
 
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		= 0.05, 2
 
 
[detector_ваше_название_на_английском_hud]:detector_base_hud ; нужно чтобы совпадало с строчкой hud = 
item_position				= -0.071685,0.036188,-0.009934
item_orientation			= 314.589233,-186.420761,-189.323669
 
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_detector_3_idle
anm_idle_moving			= dev_detector_3_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_holster_ws, dev_detector_3_holster
anm_hide_fast_16x9		= 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_3_idle_moving
anm_idle_sprint_16x9		= dev_detector_3_idle_moving_ws, dev_detector_3_idle_moving ; анимации детектора лучше не трогать
 

Описание

Откроем:

gamedata\configs\text\rus\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

Cохраняем...

P.S. Если все правильно то после начала новой игры в ГГ будет новый детектор Cтатья создана Участник:NIGHTSTALKER Статья переделана: Участник:Mesnik Участник:StalkerModer

Другие места
LANGUAGE