Jump to content

Tworzenie miejsca snu [CoP]


Guest Diegtiariow

Recommended Posts

Guest Diegtiariow

NAZWA: Tworzenie miejsca snu [CoP]
TWÓRCA: Nuklia

 

JAKIE PLIKI SIĘ PRZYDADZĄ:

Spoiler
  • all.spawn
  • PDA.script
  • xr_effects.script

 

OD CZEGO ZACZĄĆ:

Spoiler

1. all.spawn:

Spoiler

Rozmieszczenie sekcji space-restryktora w all.spawnie, przywiązanie nazwy do określonego smart-terrain'u (esc_b1) nie jest obowiązkowa, ale wymagana dla jasności.

[15001]
; cse_abstract properties
section_name = space_restrictor
name = esc_b1_sr_sleep
position = -16.1344470977783,0.959998846054077,259.680816650391
direction = 0,0,0
version = 0x7c
script_version = 8

; cse_alife_object properties
game_vertex_id = 934
distance = 0
level_vertex_id = 3366
object_flags = 0xffffff3e
custom_data = <<END
[story_object]
story_id = esc_b1_sr_sleep_id

[logic]
cfg = scripts\sr_sleep.ltx
END

; cse_shape properties
shapes = shape0
shape0:type = box
shape0:axis_x = 5.02119588851929,0,0
shape0:axis_y = 0,5.0482006072998,0
shape0:axis_z = 0,0,2.23479747772217
shape0:offset = 0,0,0

; cse_alife_space_restrictor properties
restrictor_type = 3

 

 

Rejestrujemy nasze łóżko w skryptach.

2. PDA.script:

Spoiler
;linia.-288
local sleep_zones_tbl =
{
{target = "zat_a2_sr_sleep_id", hint = "st_ui_pda_sleep_place"},
{target = "jup_a6_sr_sleep_id", hint = "st_ui_pda_sleep_place"},
{target = "pri_a16_sr_sleep_id", hint = "st_ui_pda_sleep_place"},
{target = "esc_b1_sr_sleep_id", hint = "st_ui_pda_sleep_place"},
}

 

 

3. xr_effects.script:

Spoiler
;linia.-2846
function sleep(actor, npc)
local sleep_zones = {
"zat_a2_sr_sleep",
"jup_a6_sr_sleep",
"pri_a16_sr_sleep",
"esc_b1_sr_sleep",
"actor_surge_hide_2"
}

 

 

 

ŹRÓDŁO:

https://ap-pro.ru/forums/topic/1178-cop-sozdanie-mesta-sna/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.