-- 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"
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
evid_blowout=18572
evid_outside=evid_blowout+1
evid_preblowout=evid_blowout+2
evid_anomaly=evid_blowout+3
--evid_regen=evid_blowout+4
actid_runtohide=evid_blowout
actid_inhide=evid_blowout+1
actid_preblow=evid_blowout+2
actid_monopray=evid_blowout+3
actid_anomaly=evid_blowout+4
--[[
class "evaluator_regen" (property_evaluator)
function evaluator_regen:__init(st,fullhealthtime) super(nil,"evaluator_regen")
self.st=st
self.fhtime=fullhealthtime
end
function evaluator_regen:evaluate()
local npc=self.object
if not npc:alive() then
amk.mylog("regen nonalive")
return false
end
if not self.prevtime then
self.prevtime=time_global()
end
local delta=time_global()-self.prevtime
self.prevtime=time_global()
local healthinc=npc:max_health()/self.fhtime*delta
amk.mylog("regen for "..npc:character_name().." "..healthinc.." "..npc.health)
if npc.health>0 and npc.health<npc:max_health() then
npc.health=npc.health+healthinc
amk.mylog("postregen for "..npc:character_name().." "..healthinc.." "..npc.health)
end
return false
end
]]
Kalma napisał(a):Nawet na minimum jest jak jest.
Użytkownicy przeglądający to forum: Brak zarejestrowanych użytkowników oraz 6 gości