Сповіщення
Очистити все

SoC. Реалізація Freeplay


Ранг:
Майстер
Роль:
Гість
Записи:
752
Приєднався:
7 місяців тому
 

Сьогодні ми реалізуємо повноцінний фріплей

Скрипт

Відкриваємо gamedata/scripts/xr_effects.script . На ходимо наступне:

 
function after_credits ( actor, npc ) 
	if db.gameover_credits_started ~= true  the 
		return 
	end 
	local c = get_console ( ) 
	c: execute ( "disconnect" ) 
end
 

Видаляємо це. І вставляємо це:

 
function after_credits ( actor, npc ) 
	if db.gameover_credits_started ~= true  the 
		return 
	end 
	local c = get_console ( ) 
	c: execute ( "hud_crosshair 1" ) 
end
 

 

Робота з ACDC SOC

Декомпілюємо all.spawn . Відкриваємо alife_l12_stancia.ltx . Вставляємо це:

 
[ 40000 ]
 ; cse_abstract 
properties section_name = level_changer 
name = exit_to_pripyat_from_st1 
position = 917.929626464844 , -0.0999432504177094 , -404.117004394530 31 .0645771846175194 , -0.00698131695389748 _ _ 
 
 
; cse_alife_object properties 
game_vertex_id = 2273 distance = 2.79999995231628 level_vertex_id = 112702 object_flags = 0xffffff3e story_id = 30000 
 
 

 
 
; cse_shape
 properties shapes = shape0 shape0 
: type = box 
shape0 : axis_x = 11.2959985733032 , 0 , 0 shape0 
: axis_y = 0 , 11.3806009292603 , 0 . 279982566834 
shape0 
: offset = 0 , 0 , 0 _    
 
; cse_alife_space_restrictor properties 
restrictor_type = 3 
 
; cse_alife_level_changer 
properties dest_game_vertex_id = 2269 dest_level_vertex_id = 145458 dest_position = 31.5 , 1.60000002384186 , 424 dest_direction = -2 .4930 . 010490417 , -1 .28936753753806e -005 dest_level_name = L11_Pripyat dest_graph_point = start_actor_01 
 
 
 


</code>
Це створить перехід із ЧАЕС -1 до Прип'яти.<br>
</br> Тепер зробимо повернення з ЧАЕС -2 на Прип'ять.
Відкрити alife_l12_stancia_2.ltx.
додати наприкінці:
<code>
[ 40001 ]
 ; 
cse_abstract properties section_name = level_changer 
name = exit_to_pripyat_from_st2 
position = 555.293579101563 , 150.605697631836 , 201.862899780273 direct = 51 645771846175194 , -0.00698131695389748 
 
 
; cse_alife_object properties 
game_vertex_id = 2517 distance = 2.79999995231628 level_vertex_id = 112702 object_flags = 0xffffff3e story_id = 30001 
 
 

 
 
; cse_shape
 properties shapes = shape0 shape0 
: type = box 
shape0 : axis_x = 11.2959985733032 , 0 , 0 shape0 
: axis_y = 0 , 11.3806009292603 , 0 . 279982566834 
shape0 
: offset = 0 , 0 , 0 _    
 
; cse_alife_space_restrictor properties 
restrictor_type = 3 
 
; 
cse_alife_level_changer properties dest_game_vertex_id = 2269 dest_level_vertex_id = 145458 dest_position = 96.7300033569336 , 0.730000019073486 , 89.79 9994277954 , -0.819999992847443 , -1.05999994277954 dest_level_name = L11_Pripyat dest_graph_point = start_actor_01 silent_mode = 1 _ 
 
 
 


 
 

Компілім all.spawn . Кладемо в папку gamedata/spawns . Пробуємо нову гру, доходимо до ЧАЕС, пробуємо переходи.


   
Цитата