Added Some Mods; Updated Starting Loadout
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
---Custom conditions for Stories from the Zone
|
||||
|
||||
|
||||
function on_game_start()
|
||||
RegisterScriptCallback("actor_on_first_update", actor_on_first_update)
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
function actor_on_first_update()
|
||||
for i = 1, 65534 do
|
||||
local se_obj = alife_object(i)
|
||||
-- make sure its on agroprom ug level and door name matches
|
||||
local lid = se_obj and game_graph():vertex(se_obj.m_game_vertex_id):level_id()
|
||||
local lname_fits = lid and alife():level_name(lid) and alife():level_name(lid) == "l03u_agr_underground"
|
||||
if lname_fits and se_obj:name() == "kat_physic_object_0013" then
|
||||
local data = utils_stpk.get_physic_data(se_obj)
|
||||
data.custom_data = [[
|
||||
[collide]
|
||||
ignore_static
|
||||
ignore_small_objects
|
||||
|
||||
[logic]
|
||||
cfg = scripts\brotherhood_agr_u_door_logic.ltx
|
||||
]]
|
||||
utils_stpk.set_physic_data(data, se_obj)
|
||||
return
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user