14 PrintToRPT(
"[WARNING] :: [EffectAreaLoader CreateZones] :: No contaminated area file found in MISSION folder, your path is " +
m_Path +
" Attempting DATA folder");
18 m_Path =
string.Format(
"dz/worlds/%1/ce/cfgeffectarea.json",
m_Path );
22 PrintToRPT(
"[WARNING] :: [EffectAreaLoader CreateZones] :: No contaminated area file found in DATA folder, your path is " +
m_Path);
34 for (
int i = 0; i < effectAreaData.
Areas.Count(); i++ )
36 EffectAreaParams params =
new EffectAreaParams();
39 params.m_ParamName = effectAreaData.
Areas.Get( i ).AreaName;
40 string areaType = effectAreaData.
Areas.Get( i ).Type;
41 params.m_ParamTriggerType = effectAreaData.
Areas.Get( i ).TriggerType;
46 params.m_ParamRadius = data.
Radius;
68 if (particleName !=
"")
71 if (aroundPartName !=
"")
74 if (tinyPartName !=
"")
77 params.m_ParamPpeRequesterType = ppeRequesterType;
92 newZone.SetupZoneData( params );
94 Error(
"[WARNING] :: [EffectAreaLoader CreateZones] :: Cast failed, are you sure your class ( 'Type:' ) inherits from EffectArea and that there are no Typos?");
98 Error(
"[WARNING] :: [EffectAreaLoader CreateZones] :: Data could not be read, please check data and syntax");