Oh ok! : P
MissionConfigFile: Config_Dynamic_Makers.hpp
Code
class JMSCOOPER_DYN_MARKERS
{
//- DRUGS FIELDS
class cocaine_field_marker_1
{
text="Champ de coca";
type="Maels_illegal_field";
color="ColorRed";
shape="ICON";
size=0.55;
shop_appear=1;
shop_price=24000;
destroy[]={"EAST"};
destroy_item="destroy_field";
positions="cocaine";
distance=20;
};
class cannabis_field_marker_1: cocaine_field_marker_1
{
text="Champ de cannabis";
shop_price=15000;
positions="cannabis";
};
class meth_field_marker_1: cocaine_field_marker_1
{
text="Champ d'ephedra";
shop_price=35000;
positions="meth";
};
class heroin_field_marker_1: cocaine_field_marker_1
{
text="Champ de pavot";
shop_price=26000;
positions="heroin";
};
//- Blanchiment
class launder_marker_1
{
text="Blanchiment";
type="Maels_illegal_blanchiment";
color="ColorRed";
shape="ICON";
size=0.55;
shop_appear=1;
shop_price=45550;
linked="launder_stand_1";
destroy[]={"EAST"};
destroy_item="destroy_stand";
positions="launder";
distance=5;
};
//- BLACKMARKETS
class blackMarket_marker_1
{
text="Marché noir";
type="Maels_sell";
color="ColorRed";
shape="ICON";
size=0.55;
shop_appear=1;
shop_price=28950;
linked="blackMarket_stand_1";
destroy[]={"EAST"};
destroy_item="destroy_stand";
positions="stands_general";
distance=5;
};
class blackMarket_marker_2: blackMarket_marker_1
{
linked="blackMarket_stand_2";
};
//- RECELEURS
class cars_seller_marker_1
{
text="Receleur de véhicules";
type="Maels_luxe_car";
color="ColorRed";
shape="ICON";
size=0.55;
shop_appear=1;
shop_price=20500;
linked="cars_seller_stand_1";
destroy[]={"EAST"};
destroy_item="destroy_stand";
positions="stands_general";
distance=5;
};
class cars_seller_marker_2: cars_seller_marker_1
{
linked="cars_seller_stand_2";
};
//- DEALERS
class drugs_seller_marker_1
{
text="Dealeur";
type="Maels_sell";
color="ColorRed";
shape="ICON";
size=0.55;
shop_appear=1;
shop_price=35000;
linked="drugs_seller_stand_1";
destroy[]={"EAST"};
destroy_item="destroy_stand";
positions="stands_general";
distance=5;
};
class drugs_seller_marker_2: drugs_seller_marker_1
{
linked="drugs_seller_stand_2";
};
//- ARCHEOLOGIE
class archeologie_field_marker_1
{
text="Site archéologique";
type="Maels_archeo";
color="ColorRed";
shape="ICON";
size=0.55;
shop_appear=1;
shop_price=10700;
destroy[]={"EAST"};
destroy_item="destroy_archeo";
positions="archeologie";
distance=20;
};
class renovation_marker
{
text="Rénovation d'artefacts";
type="Maels_archeo_renove";
color="ColorRed";
shape="ICON";
size=0.55;
shop_appear=1;
shop_price=8400;
linked="archeologie_process_stand_1";
destroy[]={"EAST"};
destroy_item="destroy_stand";
positions="stands_general";
distance=5;
};
//- PILLAGE
class pillage_field_marker_1
{
text="Pillage d'épave";
type="Maels_archeo";
color="ColorRed";
shape="ICON";
size=0.55;
shop_appear=1;
shop_price=11900;
destroy[]={"EAST"};
destroy_item="destroy_field";
positions="pillage";
distance=20;
};
//- METH PROCESS
class soufre_process_marker_1
{
text="Hydratation du soufre";
type="Maels_sell";
color="ColorRed";
shape="ICON";
size=0.55;
shop_appear=1;
shop_price=7500;
linked="soufre_process_stand_1";
destroy[]={"EAST"};
destroy_item="destroy_stand";
positions="stands_general";
distance=5;
};
//- REBELS
class rebel_marker_1
{
text="Camp rebelle";
type="Maels_rebel";
color="ColorRed";
shape="ICON";
size=0.55;
shop_appear=1;
shop_price=55000;
linked="rebel_stand_1";
destroy[]={"EAST"};
destroy_item="destroy_stand";
positions="rebels";
distance=5;
nearObjects[]={"Campfire_burning_F"};
};
class rebel_marker_2: rebel_marker_1
{
linked="rebel_stand_2";
};
class corail_field_marker_1
{
text="Barrière de corail";
type="Maels_corail";
color="ColorRed";
shape="ICON";
size=0.55;
shop_appear=1;
shop_price=16500;
destroy[]={"EAST"};
destroy_item="destroy_field";
positions="recif";
distance=20;
};
};
Alles anzeigen
fn_dynamicMarkers_destroy.sqf
Code
private["_marker", "_message", "_item"];_marker = [_this, 0, "", [""]] call BIS_fnc_param;if (_marker isEqualTo "") exitWith {};if ((player distance (getMarkerPos _marker)) <= 20) then{_item = getText(missionConfigFile >> "JMSCOOPER_DYN_MARKERS" >> _marker >> "destroy_item");if ((_item isEqualTo "") || (([_item] call HyundraClient_fnc_itemCount) > 0)) then{if ([format["Vous êtes sur le point de détruire <t color='#74DF00'>%1</t><br/>.", (markerText _marker)], "Validation", "Valider", "Annuler"] call BIS_fnc_guiMessage) then{if ((player distance (getMarkerPos _marker)) < 20) then{if (_item != "") then {[false, _item, 1] call HyundraClient_fnc_handleInv};(format["%1 %2 a détruit %3.",([(side player), (player getVariable ["rank", 0])] call HyundraClient_fnc_rankToStr),(player getVariable ["realname", profileName]),(markerText _marker)]) remoteExecCall ["systemChat", playerSide];[_marker] remoteExec ["HyundraServeur_fnc_dynamicMarkers_update", 2];} else {["Vous êtes trop loin."] call HyundraClient_fnc_error;};};} else {[format["Vous avez besoin de <t color='#FF8000'>%1</t> pour détruire <t color='#DF0101'>%2</t>.", [_item] call HyundraClient_fnc_itemGetName, (markerText _marker)]] call HyundraClient_fnc_error;};};
fn_dynamicMarkers_reveal.sqf
Code
private["_marker", "_index"];_marker = [_this, 0, "", [""]] call BIS_fnc_param;if (_marker isEqualTo "") exitWith {};_index = [_marker, g_dynamic_markers_discovered] call HyundraClient_fnc_index;if (_index isEqualTo -1) then {g_dynamic_markers_discovered pushBack [_marker, getMarkerPos _marker];} else {(g_dynamic_markers_discovered select _index) set [1, getMarkerPos _marker];};if ((markerAlpha _marker) isEqualTo 0) then {_marker setMarkerAlphaLocal 1;};
fn_dynamicMarkers_update.sqf
Code
private "_marker";_marker = [_this, 0, "", [""]] call BIS_fnc_param;if (_marker isEqualTo "") exitWith {};if (!g_connected) exitWith {};if (str(playerSide) in getArray(missionConfigFile >> "JMSCOOPER_DYN_MARKERS" >> _marker >> "shown")) then{_marker setMarkerAlphaLocal 1;[format["Le marqueur <t color='#74DF00'>%1</t> a changé d'emplacement.", (markerText _marker)]] call HyundraClient_fnc_info;} else {private "_index";_index = [_marker, g_dynamic_markers_discovered] call HyundraClient_fnc_index;if (_index != -1) then{g_dynamic_markers_discovered deleteAt _index;[format["Le marqueur <t color='#74DF00'>%1</t> n'est plus d'actualité.", (markerText _marker)]] call HyundraClient_fnc_info;};};