--[[-------------------------------------------------------------------

			ABC Mod - Settings, by Speed aka Cabrobro. 
						v1.1 (Inferno)

-----------------------------------------------------------------------]]


-- Spawn Cabrobro NPC? (yes/no) - Well that is me :), if you want help, "I" can repair your weapon and 
-- "I will take care of rookie camp" or you can try to kill me :/  but im sure will put up a good fight. Remember this 
-- is only one time change, if you choose yes, there is no way to remove.
cabrobro_npc = "no"

-- Allow weapons to be used in any place, like: bar, bunker, etc...? (yes/no)
weapon_inside = "no"

-- "Blowout Waves" aka BLOW, leave as "yes", this version is better, after 1st "BLOW" the random event will take more than 5 hours to start again. (yes/no)
blowout_waves = "yes"

-- "show off" Little preview for cordon, after 5 minutes you will see the BLOW, after 1st mission it will stop. (yes/no)
showoff = "no"

-- spawn mutants after BLOW? should leave this setting as "yes" to see more type of mutants. (yes/no)
spawnblow = "yes" 

-- Do next "BLOW" after how many hours? 
-- Notice that the next random BLOW will only happen after 4 hours and then it will start the random event.
blow_hours = 4

-- Blowout Waves should affect NPCs with random effects? (yes/no)
blowcanaffectnpc = "no"

-- Spawn more mutants for BLOW? (yes/no)
spawnmoremutants = "no"

-- Horror Time, spawn mutants during night time. (yes/no)
horrortime = "yes"

-- Spawn more mutants for horror time? (yes/no) 
spawnmoremutantsh = "no"

-- how fast npcs and creatures should spawn/travel through levels? 
-- use: "alot", fast", "med", "slow", "abc"(mod default) or "vanilla"(game default)
myspawnrate = "abc"

-- Gore (on/off) / Blood effect for Super Gauss and others weapons?
gore = "off"

-- Use suit hud? (yes/no) - If your current suit have a helmet or a gasmask, it will affect your vision.
-- You can also buy "ABC Tools" to remove helmet/gas mask
use_suit_hud = "yes" 

-- Use scope over suit hud? (yes/no) 
-- yes = you will see the world through the scope and helmet, more "realism".
-- You can also buy "ABC Tools" to remove helmet in real time to snipe with a clean vision.
-- no = your vision will be clean(Game default)
use_suitnscope_hud = "yes" 

-- join others factions(Military, Merc, Monolith, Bandit) before finishing the game? (yes/no)
-- Leave as "no", so you can have the "normal gameplay" and complete any quest, then after you finish, you can go back to
-- trader and ask him about joining factions. Freedom, Duty and Ecologist is on by default and you can repair Stalkers status.

joinfactions = "no"

-- Vaporize (on/off) - Vaporize effect(make the body disappear), it may be a little bug, turn off if your game start to crash, 
-- (Gore mode must be On) 
vaporize = "off"

-- Chaotic Weather(on/off) - Totatlly random and Chaotic Weather effect.
-- Every hour there is a chance to be a different weather, if "off" most Chaotic weather will be skiped. 
dynamic_weather = "on"

-- Remove Portal Spot from PDA? (yes/no) 
-- Info: if for some reason your game crash and if it's related to "level_tasks.script", set this option to "yes"
-- I dont think it will happen, but it happened once to me, i dunno if i did something wrong, but since then it never crashed. 
remove_portal_spot = "no"

-- How many npcs you should be able to hire?
npc_limite = 5

-- Use save game method for freeplay? (yes/no) / no = level changes will be used.
savemethod = "no"

free_ai = "yes"

-- do not change the settings below.
blowstarttime = 8
hell_hours = 1
mut_hours = 1
lvlstart = true
mlvp_position = "nope"
nearz = "nope"
setpsyfplay = "on"
startstime = 0
startstimeh = 0
eatconserva = 0
randomtimeout = 0
shakethislevel = "no"
shakethislevelh = "no"
shakeweather2 = "no"
shakeweather2h = "no"
countchance = 0
countchanceh = 0
donextwave = "no"
donextwaveh = "no"
declinedotele = "no"
loadedfmenu = "no"
countmutants = 0
repairtimeout = 0
lvlstartout = 0
lvlstartouth = 0
blowsound = "no"
playerinzone = "no"
npcpain = "off"
rantimeout = 0
rantimeouth = 0
randstop = "no"
randstoph = "no"
hortime = false
blowbytime = 0
startabc = 0
radtimeout = 0
crad = 0
wcondition = 0
setmyweather = "false"
blowisgoingon = "false"
abc_state = "hide"
vanish = nil
nanoi = "no"
nanoh = "no"
blowavetime = 20
blowavetimeh = 20

--[[-------------------------------------------------------------------

						ABC Mod - EOF

-----------------------------------------------------------------------]]


--[[------------------------------------------------------------------------------------------------
База данных живых онлайновых объектов, зон и рестрикторов, актёра
Чугай Александр
--------------------------------------------------------------------------------------------------]]

zone_by_name        = {}
sl_by_name          = {}
storage             = {}
sound               = {}
actor               = nil
actor_proxy         = actor_proxy.actor_proxy()
heli                = {}
camp_storage        = {}
story_by_id	        = {}
smart_terrain_by_id = {}
trader				= nil
info_restr          = {}
strn_by_respawn     = {}

function add_obj( obj )
end

function del_obj( obj )
	storage   [obj:id()] = nil
end


function add_zone( zone )
	zone_by_name[zone:name()] = zone
	add_obj( zone )
end

function del_zone( zone )
	zone_by_name[zone:name()] = nil
	del_obj( zone )
end


function add_sl( sl )
	sl_by_name[sl:name()] = sl
	add_obj( sl )
end

function del_sl( sl )
	sl_by_name[sl:name()] = nil
	del_obj( sl )
end


function add_actor( obj )
	actor = obj
	actor_proxy:net_spawn( obj )
	add_obj( obj )
end

function del_actor()
	del_obj( actor )
	actor_proxy:net_destroy()
	actor = nil
end


function add_heli(obj)	
	heli[obj:id()] = obj
end	
function del_heli(obj)
	heli[obj:id()] = nil
end	


function add_smart_terrain( obj )
	smart_terrain_by_id[obj.id] = obj
end

function del_smart_terrain( obj )
	smart_terrain_by_id[obj.id] = nil
end