Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Нужна помощь?

    Создайте тему в соответствующем разделе
    Не нужно писать всё в чат!
  • Продаёте или покупаете?

    Пользуйтесь услугами гаранта
    Мы сделаем вашу сделку безопасной
  • Не хотите БАН?

    Пожалуйста, ознакомьтесь с нашими правилами
    Не нарушайте порядок
  • Загляните на торговую площадку

    Там вы можете купить
    Всё что касается игровых серверов
RedLink

Спавн миссий и ивентов через админ-панель Инфистара

Recommended Posts

Всем привет.

Один из разработчиков мода Epoch (Salival's scripts) поделился скриптом для админ-панели Инфистара, чтобы вручную спавнить миссии WAI, DZMS, а также ивенты.

 

Открываем файл админ-панели Инфистара AT.sqf и ищем код (примерно 289-я строка):

	adminadd = adminadd + ["  Force Disconnect (Self)",{(findDisplay 46) closeDisplay 0;},"0","0","0","0",[]];
};

и после нее вставляем:

Скрытый текст

		_fnc = "-WAI mission spawn";
		if (isNil 'adminshowwaimenu')then{_fnc = "+WAI mission spawn";};
		adminadd = adminadd + [_fnc,{if(isNil "adminshowwaimenu")then{adminshowwaimenu = true;}else{adminshowwaimenu = nil;};call admin_update_ctrl2;},"0","0","0","0",[0,0.6,1,1]];
		if (!isNil "adminshowwaimenu") then {
			adminadd = adminadd + ["=====Эвенты=====","","0","1","0","0",[]];
			adminadd = adminadd + ["  [EVENT] Ikea",{PVAH_AdminReq = [8000,player,"event","building_supplies"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [EVENT] Special Forces",{PVAH_AdminReq = [8000,player,"event","special_forces"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [EVENT] Pirate Treasure",{PVAH_AdminReq = [8000,player,"event","pirate_treasure"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["=====Миссии для Героев=====","","0","1","0","0",[]];
			adminadd = adminadd + ["  [HERO] Abandoned trader",{PVAH_AdminReq = [8000,player,"hero","abandoned_trader"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Armed vehicle",{PVAH_AdminReq = [8000,player,"hero","armed_vehicle"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Army base",{PVAH_AdminReq = [8000,player,"hero","armybase"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Bandit base",{PVAH_AdminReq = [8000,player,"hero","bandit_base"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Bandit patrol",{PVAH_AdminReq = [8000,player,"hero","bandit_patrol"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Bandit outpost",{PVAH_AdminReq = [8000,player,"hero","bandit_outpost"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Black hawk crash",{PVAH_AdminReq = [8000,player,"hero","black_hawk_crash"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Cannibal cave",{PVAH_AdminReq = [8000,player,"hero","cannibal_cave"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Captured MV22",{PVAH_AdminReq = [8000,player,"hero","captured_mv22"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Crop Raider",{PVAH_AdminReq = [8000,player,"hero","crop_raider"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Destroyed ural",{PVAH_AdminReq = [8000,player,"hero","destroyed_ural"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Disabled military chopper",{PVAH_AdminReq = [8000,player,"hero","disabled_milchopper"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Drone pilot",{PVAH_AdminReq = [8000,player,"hero","drone_pilot"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Drugbust",{PVAH_AdminReq = [8000,player,"hero","drugbust"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Farmer",{PVAH_AdminReq = [8000,player,"hero","farmer"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Gem Tower",{PVAH_AdminReq = [8000,player,"hero","gem_tower"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Ikea convoy",{PVAH_AdminReq = [8000,player,"hero","ikea_convoy"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Junkyard",{PVAH_AdminReq = [8000,player,"hero","junkyard"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Lumberjack",{PVAH_AdminReq = [8000,player,"hero","lumberjack"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Macdonald Farm",{PVAH_AdminReq = [8000,player,"hero","macdonald"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Mayors Mansion",{PVAH_AdminReq = [8000,player,"hero","mayors_mansion"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Medical camp",{PVAH_AdminReq = [8000,player,"hero","medi_camp"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Patrol",{PVAH_AdminReq = [8000,player,"hero","patrol"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Radioshack",{PVAH_AdminReq = [8000,player,"hero","radioshack"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Slaughter house",{PVAH_AdminReq = [8000,player,"hero","slaughter_house"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Tank column",{PVAH_AdminReq = [8000,player,"hero","tankcolumn"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [HERO] Weapon cache",{PVAH_AdminReq = [8000,player,"hero","weapon_cache"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["=====Миссии для Бандитов=====","","0","1","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Abandoned trader",{PVAH_AdminReq = [8000,player,"bandit","abandoned_trader"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Armed vehicle",{PVAH_AdminReq = [8000,player,"bandit","armed_vehicle"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Army base",{PVAH_AdminReq = [8000,player,"bandit","armybase"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Black hawk crash",{PVAH_AdminReq = [8000,player,"bandit","black_hawk_crash"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Broken down ural",{PVAH_AdminReq = [8000,player,"bandit","broken_down_ural"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Cannibal cave",{PVAH_AdminReq = [8000,player,"bandit","cannibal_cave"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Captured MV22",{PVAH_AdminReq = [8000,player,"bandit","captured_mv22"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Crop Raider",{PVAH_AdminReq = [8000,player,"bandit","crop_raider"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Drone pilot",{PVAH_AdminReq = [8000,player,"bandit","drone_pilot"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Drugbust",{PVAH_AdminReq = [8000,player,"bandit","drugbust"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Farmer",{PVAH_AdminReq = [8000,player,"bandit","farmer"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Gem tower",{PVAH_AdminReq = [8000,player,"bandit","gem_tower"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Hero base",{PVAH_AdminReq = [8000,player,"bandit","hero_base"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Hero outpost",{PVAH_AdminReq = [8000,player,"bandit","hero_outpost"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Ikea convoy",{PVAH_AdminReq = [8000,player,"bandit","ikea_convoy"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Junkyard",{PVAH_AdminReq = [8000,player,"bandit","junkyard"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Lumberjack",{PVAH_AdminReq = [8000,player,"bandit","lumberjack"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Macdonald Farm",{PVAH_AdminReq = [8000,player,"bandit","macdonald"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Medical camp",{PVAH_AdminReq = [8000,player,"bandit","medi_camp"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Patrol",{PVAH_AdminReq = [8000,player,"bandit","patrol"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Presidents Mansion",{PVAH_AdminReq = [8000,player,"bandit","presidents_mansion"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Radioshack",{PVAH_AdminReq = [8000,player,"bandit","radioshack"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Slaughter house",{PVAH_AdminReq = [8000,player,"bandit","slaughter_house"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Sniper extraction",{PVAH_AdminReq = [8000,player,"bandit","sniper_extraction"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Tank column",{PVAH_AdminReq = [8000,player,"bandit","tankcolumn"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [BANDIT] Weapon cache",{PVAH_AdminReq = [8000,player,"bandit","weapon_cache"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
		};

		_fnc = "-DZMS mission spawn";
		if (isNil 'adminshowdzmsmenu')then{_fnc = "+DZMS mission spawn";};
		adminadd = adminadd + [_fnc,{if(isNil "adminshowdzmsmenu")then{adminshowdzmsmenu = true;}else{adminshowdzmsmenu = nil;};call admin_update_ctrl2;},"0","0","0","0",[0,0.6,1,1]];
		if (!isNil "adminshowdzmsmenu") then {
			adminadd = adminadd + ["  [MAJOR] C130 Crash",{PVAH_AdminReq = [8000,player,"major","EM1"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MAJOR] Nato Weapons Cache",{PVAH_AdminReq = [8000,player,"major","SM1"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MAJOR] Supply Drop",{PVAH_AdminReq = [8000,player,"major","SM2"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MAJOR] Bandit Medical Camp",{PVAH_AdminReq = [8000,player,"major","SM3"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MAJOR] Helicopter Landing",{PVAH_AdminReq = [8000,player,"major","SM4"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MAJOR] Ural Ambush",{PVAH_AdminReq = [8000,player,"major","SM5"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MAJOR] Medical Cache",{PVAH_AdminReq = [8000,player,"major","SM6"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MAJOR] Large Ammo Cache",{PVAH_AdminReq = [8000,player,"major","SM7"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MAJOR] Bandit Firebase",{PVAH_AdminReq = [8000,player,"major","SM9"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MAJOR] CH47 Mission",{PVAH_AdminReq = [8000,player,"major","SM10"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MAJOR] Armored Vehicles",{PVAH_AdminReq = [8000,player,"major","SM11"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MAJOR] APC's",{PVAH_AdminReq = [8000,player,"major","SM12"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MAJOR] Bandit Construction",{PVAH_AdminReq = [8000,player,"major","SM13"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			
			adminadd = adminadd + ["  [MINOR] Bandit Squad",{PVAH_AdminReq = [8000,player,"minor","SM1"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MINOR] Medical Outpost",{PVAH_AdminReq = [8000,player,"minor","SM2"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MINOR] Stash House",{PVAH_AdminReq = [8000,player,"minor","SM3"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MINOR] Helicopter Crash",{PVAH_AdminReq = [8000,player,"minor","SM4"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MINOR] Humvee Crash",{PVAH_AdminReq = [8000,player,"minor","SM5"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MINOR] Weapons Truck",{PVAH_AdminReq = [8000,player,"minor","SM6"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
			adminadd = adminadd + ["  [MINOR] Hillbillies",{PVAH_AdminReq = [8000,player,"minor","SM9"]; publicVariableServer "PVAH_AdminReq";},"0","0","0","0",[]];
		};

 

 

Где [EVENT] - это ивенты которые хранятся у меня в папке "modules", а "building_supplies" - это наименование файла (пробелов быть не должно).

Где [HERO]/[BANDIT] - это мисии для Героев/Бандитов. Так же в строке идет наименование папки "hero"/"bandit", и соответственно наименование файла миссии, например "abandoned_trader", которые соответствуют наименованию файла миссии в папке с героем или бандитом.

Тоже самое и для миссий DZMS - "major"/"minor" - это имя папки миссий, а "SMxxx" - это имя файла миссии.

 

Далее открываем сам Инфистар - AH.sqf и ищем следующие строки:

	} forEach _arrayforcrate;
};

и под ними вставляем:

	if(_option == 8000) then 
	{
		_mtype = _array select 2;
		_mname = _array select 3;
		if (_mtype == "hero" || {_mtype == "bandit"}) then 
		{
			diag_log format ["%1 (%2) Spawning mission [%3] %4",name (_array select 1),getPlayerUID (_array select 1),_mtype,_mname];
			wai_mission_markers set [(count wai_mission_markers), format ["Main%1%2",_mtype,count(wai_mission_data)]];
			if (isNil "ai_show_count") then {wai_mission_data = wai_mission_data + [[0,"",[],[0,0,0]]];} else {wai_mission_data = wai_mission_data + [[0,[],[],[],[]]]};
			execVM format ["\z\addons\dayz_server\WAI\missions\%1\%2.sqf",_mtype,_mname];

			_sl = format['%1 (%2) spawned WAI\missions\%3\%4.sqf',_clientName,_clientUID,_mtype,_mname];
			PVAH_WriteLogReq = [_playerObj,toArray _sl];
			publicVariableServer 'PVAH_WriteLogReq';
		};
		if (_mtype == "event") then 
		{
			[] execVM "\z\addons\dayz_server\modules\" + _mname + ".sqf";
			_sl = format['%1 (%2) spawned Event - %3.sqf',_clientName,_clientUID,_mname];
			PVAH_WriteLogReq = [_playerObj,toArray _sl];
			publicVariableServer 'PVAH_WriteLogReq';
		};
		if (_mtype == "major" || {_mtype == "minor"}) then {
			diag_log format ["%1 (%2) Spawning mission [%3] %4",name (_array select 1),getPlayerUID (_array select 1),_mtype,_mname];
			execVM format ["\z\addons\dayz_server\DZMS\missions\%1\%2.sqf",_mtype,_mname];
			
			_sl = format['%1 (%2) spawned DZMS\missions\%3\%4.sqf',_clientName,_clientUID,_mtype,_mname];
			PVAH_WriteLogReq = [_playerObj,toArray _sl];
			publicVariableServer 'PVAH_WriteLogReq';
		};
	};

Отдельно добавлю, что все миссии, которые спавнит админ, записываются в лог файл и панель Инфистара.

 

Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.

Edited by RedLink
Добавление гайда (see edit history)

Share this post


Link to post
Share on other sites



Изменения для актуальной версии WAI 2,2,6

Скрытый текст

 


		if (_mtype == "hero" || {_mtype == "bandit"}) then 
		{
			diag_log format ["%1 (%2) Spawning mission [%3] %4",name (_array select 1),getPlayerUID (_array select 1),_mtype,_mname];
			wai_mission_markers set [(count wai_mission_markers), format ["Main%1%2",_mtype,count(wai_mission_data)]];
			if (isNil "ai_show_count") then {wai_mission_data = wai_mission_data + [[0,"",[],[0,0,0]]];} else {wai_mission_data = wai_mission_data + [[0,[],[],[],[]]]};
			execVM format ["\z\addons\dayz_server\WAI\missions\%1\%2.sqf",_mtype,_mname];

			_sl = format['%1 (%2) spawned WAI\missions\%3\%4.sqf',_clientName,_clientUID,_mtype,_mname];
			PVAH_WriteLogReq = [_playerObj,toArray _sl];
			publicVariableServer 'PVAH_WriteLogReq';
		};
		if (_mtype == "event") then 
		{
			[] execVM "\z\addons\dayz_server\modules\" + _mname + ".sqf";
			_sl = format['%1 (%2) spawned Event - %3.sqf',_clientName,_clientUID,_mname];
			PVAH_WriteLogReq = [_playerObj,toArray _sl];
			publicVariableServer 'PVAH_WriteLogReq';
		};

 

 

 

заменить на

Скрытый текст

		if (_mtype == "Hero" || {_mtype == "Bandit"}) then 
		{
			diag_log format ["%1 (%2) Spawning mission [%3] %4",name (_array select 1),getPlayerUID (_array select 1),_mtype,_mname];
			wai_mission_markers set [(count wai_mission_markers), format ["Main%1%2",_mtype,count(wai_mission_data)]];
			if (isNil "ai_show_count") then {wai_mission_data = wai_mission_data + [[0,"",[],[0,0,0]]];} else {wai_mission_data = wai_mission_data + [[0,[],[],[],[],[],[]]]};
			[if (_mtype == "Bandit") then {"MainHero"} else {"MainBandit"},if (_mtype == "Bandit") then {"Bandit"} else {"Hero"}] execVM format ["\z\addons\dayz_server\WAI\missions\missions\%1.sqf",_mname];

			_sl = format['%1 (%2) spawned WAI %3 mission %4.sqf',_clientName,_clientUID,_mtype,_mname];
			PVAH_WriteLogReq = [_playerObj,toArray _sl];
			publicVariableServer 'PVAH_WriteLogReq';
		};
		if (_mtype == "event") then 
		{
			[] execVM "\z\addons\dayz_server\modules\" + _mname + ".sqf";
			_sl = format['%1 (%2) spawned Event - %3.sqf',_clientName,_clientUID,_mname];
			PVAH_WriteLogReq = [_playerObj,toArray _sl];
			publicVariableServer 'PVAH_WriteLogReq';
		};

 

 

Edited by RedLink (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By BorizzK
      Ктонить разбирался с этим?
      С зомбями все понятно
      А вот с энималсами?
       
      Как я не ковырял, как не пытался - не хотят спавнится отдельно собачки
       
      Есть идеи?
    • By Miduznya
      Всем привет, чет не нашел не где как можно в ручную обновить через .bat или .cmd файл
      если есть у кого такой поделитесь плиз. Прошу сильно не пинать если есть такая тема дайте ссылку
    • By paranoyk
      Делается это немного нудно,но сравнительно просто (когда есть точки спавна).
      При спавне Land_Wreck_Uaz с помощью оффлайнера получим строку следующего вида.
      SpawnObject( "Land_Wreck_Uaz", "14348.268555 4.133186 13191.887695", "0.000000 0.000000 0.000000" );
      Нам необходимо задать точку для спавна "сетки лута".
      Для этого мы в файл по mapgrouppos.xml прописываем координаты взятые из строчки для спавна объекта (выше).
      <group name="Land_Wreck_Uaz" pos="14348.268555 4.133186 13191.887695" rpy="0.000000 0.000000 0.000000" a="0.000000" />
       
      group name="Land_Wreck_Uaz" pos="14348.268555 4.133186 13191.887695 - координаты запавненого УАЗика.
      rpy="0.000000 0.000000 0.000000" - числовые значения Yaw,Pitch,Roll соответственно. Берём их из всё той же строчки, но важно помнить что они там записаны в обратном порядке.
      a="0.000000"- угол порота сетки относительно угла поворота......короче! (Yaw-90) х (-1) Уже писал,что можно играться с 360 градусами,но пишу всегда полученное значение,проблем нет.

      И главное "сетка лута". Изначально её УАЗик не имеет, пишем её сами в файл mapGroupProto.xml .
       
      <group name="Land_Wreck_Uaz" lootmax="11"> <usage name="...класс вещей для спавна" /> <usage name="...класс вещей для спавна" /> <container name="lootfloor" lootmax="5"> -"контейнер" для описания спавна, максимальное колличество в спавне. <category name="...категория вещей для спавна" /> (возможен тэг- <tag name="floor" /> или <tag name="shelves" /> ) <point pos="0.511211 -0.372110 0.0254000" range="0.244141" height="0.513353" />-левое сиденье <point pos="-0.320921 -0.387334 -0.400000" range="0.310141" height="0.610353" />-правое переднее седение полик <point pos="-0.000921 -0.383194 0.301000" range="0.400186" height="0.590424" />-место за кпп середина <point pos="-0.211211 0.228620 -0.698000" range="0.360231" height="0.520142" />-правая часть капота возле стекла <point pos="0.681211 0.216190 -1.358000" range="0.262781" height="0.621102" />левая часть капота впереди </container> <container name="lootshelves" lootmax="3"> -"контейнер" для описания спавна, максимальное колличество в спавне. <category name="...категория вещей для спавна" /> (возможен тэг- <tag name="floor" /> или <tag name="shelves" /> ) <point pos="-0.406211 -0.098190 -1.131250" range="0.246819" height="0.620459" />-правое переднее крыло <point pos="0.306211 -0.436570 -1.651250" range="0.424141" height="0.810353" />- центр переднего бампера <point pos="0.906211 -0.359570 -1.664250" range="0.124141" height="0.100353" />-слева на бампере </container> <container name="lootweapons" lootmax="3">-"контейнер" для спавна длинногоствольного оружия, максимальное колличество в спавне, патронов и гранат. <category name="weapons" /> <category name="explosives" /> (возможен тэг- <tag name="floor" /> или <tag name="shelves" /> ) <point pos="0.256211 -0.372050 1.264250" range="0.724141" height="1.313353" /> -центр багажника <point pos="0.868211 -0.138190 1.398000" range="0.293625" height="0.605487" />-заднее левое крыло <point pos="-0.506211 -0.108190 1.431250" range="0.250879" height="0.582143" />-заднее правое крыло </container> </group> Вставляем нужные категории,классы и тэги,это практически конструктор.
      К примеру у меня пока выглядит так -
       
      <group name="Land_Wreck_Uaz" lootmax="11"> <usage name="Military" /> <usage name="Industrial" /> <usage name="Office" /> <container name="lootfloor" lootmax="5"> <category name="food" /> <category name="clothes" /> <point pos="0.511211 -0.372110 0.0254000" range="0.244141" height="0.513353" /> <point pos="-0.320921 -0.387334 -0.400000" range="0.310141" height="0.610353" /> <point pos="-0.000921 -0.383194 0.301000" range="0.400186" height="0.590424" /> <point pos="-0.211211 0.228620 -0.698000" range="0.360231" height="0.520142" /> <point pos="0.681211 0.216190 -1.358000" range="0.262781" height="0.621102" /> </container> <container name="lootshelves" lootmax="3"> <category name="tools" /> <category name="vehiclesparts" /> <point pos="-0.406211 -0.098190 -1.131250" range="0.246819" height="0.620459" /> <point pos="0.306211 -0.436570 -1.651250" range="0.424141" height="0.810353" /> <point pos="0.906211 -0.359570 -1.664250" range="0.124141" height="0.100353" /> </container> <container name="lootweapons" lootmax="3"> <category name="weapons" /> <category name="explosives" /> <point pos="0.256211 -0.372050 1.264250" range="0.724141" height="1.313353" /> <point pos="0.868211 -0.138190 1.398000" range="0.293625" height="0.605487" /> <point pos="-0.506211 -0.108190 1.431250" range="0.250879" height="0.582143" /> </container> </group> Также можно даже исключить полностью строчку lootmax="...". Большой разницы я не заметил.
      Сразу скажу,баги стандартные -длинноствол в багажнике может пробить ствол,иногда возможна "левитация" предметов.
      Во общем как то так.
      (возможно позже вылож сетку и для обломков V3S и С130. Решение для "заброшенной колонны" на севере-тоже в процессе.Кому надо-пишите)
×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.