Сповіщення
Очистити все
21.10.2023 23:12
Невелика шпаргалка для тих, хто працює із заселенням у Level Editor і більш-менш розуміє, для чого взагалі потрібен даний код. Фактично створено для копіпасту та економії часу. Для новачків, може, теж не зайве почитати.
Що необхідно врахувати:
- У цьому прикладі логіка розділена за різними групами об'єктів і підпапками ( smart , anomaly , npc_logic , monsters_logic та інші). Розділяти таким чином не обов'язково, але рекомендується діяти так само. Практика показує, що іншим модмейкерам у цьому випадку буде легше орієнтуватися у файлах логіки Вашого мода.
- Кожен пресет є середньостатистичним набором для логіки. Ви, зрозуміло, можете прибирати/додавати додаткові секції в роді collide, story_object.
- Замість location , в дорозі прописуєте назву локації.
Група | Логіка |
---|---|
Smart Terrain |
[smart_terrain]
cfg = scripts\location\smart\smart_name.ltx
|
Anomal Zone |
[anomal_zone]
cfg = scripts\location\anomaly\anomal_zone.ltx
|
Camp |
[camp]
cfg = scripts\camp.ltx
|
Space Restrictor |
[story_object]
story_id = restr_story_id
[logic]
cfg = scripts\location\restrictors_logic\restr.ltx
|
Sleep Zone |
[logic]
cfg = scripts \ sr_sleep.ltx
|
Physic Objects and Quest Items |
[story_object]
story_id = object_story_id
[collide]
ignore_static
ignore_small_objects
[logic]
cfg = scripts\location\physic_objects\object.ltx
[physics_common] ;Альтернатива параметру fixed_bones, використовується для квестових айтемів device_pda і т. д.
fixed_bones = link
|
Animated Object |
[story_object]
story_id = anim_object_story_id
[collide]
ignore_static
ignore_small_objects
[logic]
cfg = scripts\location\physic_objects\anim_object.ltx
[animated_object]
|
Inventory Box |
[story_object]
story_id = box_story_id
[logic]
cfg = scripts\location\inventory_box\box.ltx
|
Actor Inventory Box |
[story_object]
story_id = actor_box_story_id
[logic]
cfg = scripts\actor_inventory_box.ltx
[level_spot]
actor_box
|
Door |
[logic]
cfg = scripts\door.ltx
|
Exclusive logic for Smart config |
[exclusive]
monster = location\monsters_logic\monster_l.ltx
npc = location\npc_logic\npc_l.ltx
|