Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
Sign in to follow this  
Alex39

Радар

Recommended Posts

Радар

 

Нашел на армахолике интересный скрипт, Радар, конечно многие сразу скажут что не нужно такое, что он показывает в округе технику, но саму функцию можно применить куда угодно, только ваше воображение, вобщем что описывать, вот сам скрипт и видео.

 

Скачать https://yadi.sk/d/tfkO4wXQf4YHV

Установка:

1) Открываем description.ext и вставляем после RscTitles

#include "AniRadar\gui\aniRadar.hpp"

#include "bigStuff.hpp"

class aniRadarOptions {
	idd = 123123;
	movingEnabled=1;
	enableSimulation=1;
	
	class controls {
		class RscText_1000: RscText
		{
			idc = 1000;
			x = 0.075;
			y = 0.45;
			w = 0.85;
			h = 0.55;
			colorText[] = {0.71875,0.539063,0,0.5};
			colorBackground[] = {0.41875,0.239063,0,0.5};
		};
		class RscFrame_1800: RscFrame
		{
			idc = 1800;
			x = 0.0799683;
			y = 0.458996;
			w = 0.840079;
			h = 0.533863;
			colorBackground[] = {0.71875,0.539063,0,0.5};
		};
		class RscText_1001: RscText
		{
			idc = 1001;
			text = "Pulse Duration (in milliseconds)";
			x = 0.130952;
			y = 0.503969;
			w = 0.340079;
			h = 0.0391535;
		};
		class RscText_1002: RscText
		{
			idc = 1002;
			text = "Pulse delay (in milliseconds)";
			x = 0.130953;
			y = 0.607143;
			w = 0.334127;
			h = 0.036508;
		};
		class RscText_1003: RscText
		{
			idc = 1003;
			text = "500";
			x = 0.078125;
			y = 0.525;
			w = 0.046875;
			h = 0.025;
		};
		class RscText_1004: RscText
		{
			idc = 1004;
			text = "3000";
			x = 0.859375;
			y = 0.525;
			w = 0.0625;
			h = 0.025;
		};
		class RscText_1005: RscText
		{
			idc = 1005;
			text = "200";
			x = 0.078125;
			y = 0.625;
			w = 0.046875;
			h = 0.025;
		};
		class RscText_1006: RscText
		{
			idc = 1006;
			text = "1500";
			x = 0.429563;
			y = 0.627645;
			w = 0.0625;
			h = 0.025;
		};
		class RscText_1007: RscText
		{
			idc = 1007;
			text = "Min. distance (in meters)";
			x = 0.131448;
			y = 0.707936;
			w = 0.275297;
			h = 0.0367727;
		};
		class RscText_1008: RscText
		{
			idc = 1008;
			text = "0";
			x = 0.10119;
			y = 0.718253;
			w = 0.0246032;
			h = 0.0285714;
		};
		class RscText_1009: RscText
		{
			idc = 1009;
			text = "500";
			x = 0.430556;
			y = 0.718254;
			w = 0.0444445;
			h = 0.0285714;
		};
		class RscText_1010: RscText
		{
			idc = 1010;
			text = "Max. distance (in meters)";
			x = 0.130953;
			y = 0.805556;
			w = 0.302381;
			h = 0.036508;
		};
		class RscText_1011: RscText
		{
			idc = 1011;
			text = "  1";
			x = 0.0773808;
			y = 0.824074;
			w = 0.0444445;
			h = 0.0259259;
		};
		class RscText_1012: RscText
		{
			idc = 1012;
			text = "3000";
			x = 0.863096;
			y = 0.821428;
			w = 0.0583333;
			h = 0.0312169;
		};

		class RscSlider_1900: RscSlider
		{
			idc = 1900;
            onSliderPosChanged = "(_this select 1) call aniRadarSetPulseDuration;";
			x = 0.0992062;
			y = 0.556878;
			w = 0.802381;
			h = 0.0365079;
		};
		class RscSlider_1901: RscSlider
		{
			idc = 1901;
              onSliderPosChanged = "(_this select 1) call aniRadarSetPulseDelay;";
			x = 0.0992063;
			y = 0.657407;
			w = 0.363889;
			h = 0.036508;
		};
		class RscButton_1600: RscButton
		{
			action="closeDialog 0;";

			idc = 1600;
			text = "close";
			x = 0.8125;
			y = 0.925;
			w = 0.09375;
			h = 0.05;
		};
		class RscButton_1601: RscButton
		{
			action="false call aniRadarPlayPing";

			idc = 1601;
			text = "Don't play ping";
			x = 0.714534;
			y = 0.656746;
			w = 0.175843;
			h = 0.0923281;
		};
		class RscSlider_1902: RscSlider
		{
			idc = 1902;
            onSliderPosChanged = "[(_this select 1), aniRadarMaxDistance] call aniRadarSetDistance;";
			x = 0.0987103;
			y = 0.755026;
			w = 0.365327;
			h = 0.039418;
		};
		class RscSlider_1903: RscSlider
		{
			idc = 1903;
             onSliderPosChanged = "[aniRadarMinDistance, (_this select 1)] call aniRadarSetDistance;";
			x = 0.0992063;
			y = 0.858465;
			w = 0.802381;
			h = 0.0338625;
		};
		class RscButton_1602: RscButton
		{
			action="true call aniRadarPlayPing";

			idc = 1602;
			text = "Play ping";
			x = 0.537699;
			y = 0.654761;
			w = 0.149603;
			h = 0.094709;
		};
	};
};

class aniRadarLocation {
	idd = 321321;
	movingEnabled=1;
	enableSimulation=1;
	
	class controls {
	
		class RscText_1000: RscText
		{
			idc = 3211;
			x = 0.248017;
			y = 0.502644;
			w = 0.49881;
			h = 0.340741;
			colorBackground[] = {0,0,0,0.5};
		};
		class button_ne: RscButton
		{
			idc = 3212;
			x = 0.375001;
			y = 0.579365;
			w = 0.0420635;
			h = 0.05;
			action = "ANIRADAR_NORTH_EAST call button_setLocation;";
		};
		class RscText_1001: RscText
		{
			idc = 3213;
			text = "Set position";
			x = 0.275794;
			y = 0.5291;
			w = 0.139683;
			h = 0.041799;
		};
		class RscFrame_1800: RscFrame
		{
			idc = 3214;
			x = 0.253968;
			y = 0.510582;
			w = 0.486905;
			h = 0.324868;
		};
		class button_n: RscButton
		{
			idc = 3215;
			x = 0.325397;
			y = 0.579365;
			w = 0.0420635;
			h = 0.05;
			action = "ANIRADAR_NORTH call button_setLocation;";
		};
		class button_nw: RscButton
		{
			idc = 3216;
			x = 0.275793;
			y = 0.579365;
			w = 0.0420635;
			h = 0.05;
			action = "ANIRADAR_NORTH_WEST call button_setLocation;";
		};
		class button_center: RscButton
		{
			idc = 3217;
			x = 0.325397;
			y = 0.637566;
			w = 0.0420635;
			h = 0.05;
			action = "ANIRADAR_CENTER call button_setLocation;";
		};
		class button_w: RscButton
		{
			idc = 3218;
			x = 0.275794;
			y = 0.637566;
			w = 0.0420635;
			h = 0.05;
			action = "ANIRADAR_WEST call button_setLocation;";
		};
		class button_e: RscButton
		{
			idc = 3219;
			x = 0.375;
			y = 0.637566;
			w = 0.0420635;
			h = 0.05;
			action = "ANIRADAR_EAST call button_setLocation;";
		};
		class button_sw: RscButton
		{
			idc = 3220;
			x = 0.275794;
			y = 0.695767;
			w = 0.0420635;
			h = 0.05;
			action = "ANIRADAR_SOUTH_WEST call button_setLocation;";
		};
		class button_s: RscButton
		{
			idc = 3221;
			x = 0.325397;
			y = 0.695767;
			w = 0.0420635;
			h = 0.05;
			action = "ANIRADAR_SOUTH call button_setLocation;";
		};
		class button_se: RscButton
		{
			idc = 3223;
			x = 0.375001;
			y = 0.695768;
			w = 0.0420635;
			h = 0.05;
			action = "ANIRADAR_SOUTH_EAST call button_setLocation;";
		};
		class RscText_1002: RscText
		{
			idc = 3224;
			text = "Position type";
			x = 0.505952;
			y = 0.534391;
			w = 0.147619;
			h = 0.0285714;
		};
		class position_combobox: RscCombo
		{
			idc = 3225;
			x = 0.46627;
			y = 0.582011;
			w = 0.24881;
			h = 0.0417989;
			onLBSelChanged = "resizeEffect = _this select 1;";
		};
		class slider_resize: RscSlider
		{
			idc = 3226;
			x = 0.44246;
			y = 0.718254;
			w = 0.270635;
			h = 0.036508;
			tooltip = "Resize the radar";
			onSliderPosChanged = "((_this select 1)/100) call aniRadarResize;";
		};
		class RscText_1003: RscText
		{
			idc = 3227;
			text = "Resize";
			x = 0.535714;
			y = 0.63889;
			w = 0.0801589;
			h = 0.0338625;
		};
		class RscText_1004: RscText
		{
			idc = 3228;
			text = "1%";
			x = 0.444445;
			y = 0.686508;
			w = 0.0464286;
			h = 0.025926;
		};
		class RscText_1005: RscText
		{
			idc = 3229;
			text = "200%";
			x = 0.668651;
			y = 0.686508;
			w = 0.0642856;
			h = 0.0338624;
		};
		class RscText_1006: RscText
		{
			idc = 3330;
			text = "100%";
			x = 0.543651;
			y = 0.681217;
			w = 0.0603174;
			h = 0.0338624;
		};
		class closeButton: RscButton
		{
			action="closeDialog 0;"
			idc = 3331;
			text = "close";
			x = 0.623016;
			y = 0.770899;
			w = 0.09375;
			h = 0.05;
		};
	
	};
	/*
$[
1.03,
[[0,0,1,1],0.03125,0.05],
[1000,"",[0,"",[0.248017,0.502644,0.49881,0.340741],[-1,-1,-1,-1],[0,0,0,0.5],[-1,-1,-1,-1],""],[]],
[1600,"button_ne",[0,"",[0.375001,0.579365,0.0420635,0.05],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],[]],
[1001,"",[0,"Set position",[0.275794,0.5291,0.139683,0.041799],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],[]],
[1800,"",[0,"",[0.253968,0.510582,0.486905,0.324868],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],[]],
[1601,"button_n",[0,"",[0.325397,0.579365,0.0420635,0.05],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],[]],
[1602,"button_nw",[0,"",[0.275793,0.579365,0.0420635,0.05],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],[]],
[1603,"button_center",[0,"",[0.325397,0.637566,0.0420635,0.05],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],[]],
[1604,"button_w",[0,"",[0.275794,0.637566,0.0420635,0.05],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],[]],
[1605,"button_e",[0,"",[0.375,0.637566,0.0420635,0.05],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],[]],
[1606,"button_sw",[0,"",[0.275794,0.695767,0.0420635,0.05],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],[]],
[1607,"button_s",[0,"",[0.325397,0.695767,0.0420635,0.05],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],[]],
[1608,"button_se",[0,"",[0.375001,0.695768,0.0420635,0.05],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],[]],
[1002,"",[0,"Position type",[0.505952,0.534391,0.147619,0.0285714],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],[]],
[2100,"position_combobox",[0,"",[0.46627,0.582011,0.24881,0.0417989],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],[]],
[1900,"slider_resize",[0,"",[0.44246,0.718254,0.270635,0.036508],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],"Resize the radar"],[]],
[1003,"",[0,"Resize",[0.535714,0.63889,0.0801589,0.0338625],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],[]],
[1004,"",[0,"1%",[0.444445,0.686508,0.0464286,0.025926],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],[]],
[1005,"",[0,"200%",[0.668651,0.686508,0.0642856,0.0338624],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],[]],
[1006,"",[0,"100%",[0.543651,0.681217,0.0603174,0.0338624],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],[]],
[1609,"",[0,"close",[0.623016,0.770899,0.09375,0.05],[-1,-1,-1,-1],[-1,-1,-1,-1],[-1,-1,-1,-1],""],["action=|closeDialog 0;|"]]
]
*/
}; 

2) Открываем Init.sqf и вставляем в самый низ:

execVM "AniRadar\scripts\aniradar_init.sqf";
waituntil {!isNil "aniRadarInitialized"};

player addAction ["Show/Hide AniRadar", "showRadar.sqf"];
player addAction ["Open Options-Dialog", "optionsDialog.sqf"];
player addAction ["Open Location-Dialog", "locationsDialog.sqf"];

mySimpleCallback = {
	_entities = (_this select 0) nearObjects ["building", (_this select 1)];
	_entities;
};

myComplexCallback = {
	_playerPosition = _this select 0;
	_maximumDistance = _this select 1;
	_returnValue = [];
	_currEntity = [];

	_entities = _playerPosition nearEntities [["Air","Land"], _maximumDistance];
	{
		_currEntity = [];
		_currEntity set [0, _x];
		_currEntity set [1, [getText(configFile >> "cfgVehicles" >> typeOf _x >> "picture"), 3.0]];

		// Better: Cache all pictures of air vehicles to save time
		
		_returnValue set [count _returnValue, _currEntity];
	} forEach _entities;

	_returnValue;
};

myComplexCallback call aniRadarSetCallback;
[radarCar, false] call aniRadarSetReferenceObject;
[] spawn {

	sleep 20;
	radarCar setDamage 1;

}; 

Сохраняем и пользуемся
 

Этот же скрипт от издателя на карту Утес
 

http://youtu.be/522oEOFF0cQ

Share this post


Link to post
Share on other sites



Сделал бы тогда гайд по установке, раз в раздел с гайдами закинул.

Share this post


Link to post
Share on other sites

В нужное русло бы отправить этот радар у тебя есть раз во сколько он чтоб узнать есть ли вокруг тебя боты\игроки 

Share this post


Link to post
Share on other sites

Сделал бы тогда гайд по установке, раз в раздел с гайдами закинул.

Я бы с удовольствием оформил, только вот редактировать кнопка пропала, получается как создал так и будет

 

http://youtu.be/FfQFgF3ACLw

Edited by Alex39 (see edit history)

Share this post


Link to post
Share on other sites

Могу переоформить. Напиши как тебе надо и сделаю. В ЛС желательно :)

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
Sign in to follow this  

×
×
  • 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.