Move Veh Action to Exile and New textures

This commit is contained in:
DESKTOP-UH65DCE\MusTanG 2017-04-19 21:40:26 -05:00
parent a6ef3a4fdd
commit 9c2326030a
3 changed files with 24 additions and 21 deletions

View File

@ -69,7 +69,7 @@ All skins provided in this pack are the property of DonkeyPunch Community Gaming
#### OUTPUT = 1,2-STRING,3-STRING,4-STRING,5,6,7,8,9,10,11,12,13,14,15-STRING,16,17,18,19
####.
## STEP 6:
## STEP 6a:
#### --add class Paint to your CfgInteractionMenus under class Construction >> Actions
#### class Construction
#### {
@ -86,6 +86,20 @@ All skins provided in this pack are the property of DonkeyPunch Community Gaming
#### };
####.
## STEP 6b:
#### --add class Paint to your CfgInteractionMenus
#### class Car and class Air and class Boat
####
#### class Actions
####
#### class Paint : ExileAbstractAction
#### {
#### title = "Paint Vehicle";
#### condition = "((locked ExileClientInteractionObject) isEqualTo 0) && ((locked ExileClientInteractionObject) != 1) && (ExileClientNearPaintShop)";
#### action = "ExileClientInteractionObject call HALV_paintshop_opendialog";
#### };
####.
## Step 7:
#### --add this to your CfgExileCustomCode
#### class CfgExileCustomCode

View File

@ -308,6 +308,7 @@ while{alive player}do{
player sideChat "-- Paint Shop --";
_sendmessage = false;
};
ExileClientNearPaintShop = true;
if(player isEqualTo vehicle player)then{
if !(Backpack player in ["","B_Parachute","B_O_Parachute_02_F","B_I_Parachute_02_F","B_B_Parachute_02_F"])then{
if(_HALV_panitshop_bagaction< 0)then{
@ -325,33 +326,19 @@ while{alive player}do{
player removeAction _HALV_panitshop_uniformaction;
_HALV_panitshop_uniformaction = -1;
};
_nearvehicles = (player nearEntities [["Air","LandVehicle","Ship"],40])-[player];
if !(_nearvehicles isEqualTo _lastsearch)then{{player removeAction _x}forEach _HALV_panitshop_vehicleactions;_HALV_panitshop_vehicleactions = [];};
if(count _HALV_panitshop_vehicleactions < 1)then{
{
if !(_x isKindOf "Wreck_Base")then{
_txt = (gettext (configFile >> 'cfgvehicles' >> (typeOf _x) >> 'displayName'));
_action = player addAction [format["<img size='1.5'image='\a3\Ui_f\data\map\VehicleIcons\iconmanmedic_ca.paa'/> <t color='#0096ff'>Paint %1</t>",_txt], {(_this select 3) call HALV_paintshop_opendialog;}, _x,1, false, true, "", ""];
_HALV_panitshop_vehicleactions pushBack _action;
};
}forEach _nearvehicles;
};
_lastsearch = _nearvehicles;
}else{
{player removeAction _x}forEach _HALV_panitshop_vehicleactions+[_HALV_panitshop_bagaction,_HALV_panitshop_uniformaction];
_HALV_panitshop_vehicleactions = [];
{player removeAction _x}forEach [_HALV_panitshop_bagaction,_HALV_panitshop_uniformaction];
_HALV_panitshop_uniformaction = -1;
_HALV_panitshop_bagaction = -1;
_lastsearch = [];
};
}else{
_sendmessage = true;
{player removeAction _x}forEach _HALV_panitshop_vehicleactions+[_HALV_panitshop_bagaction,_HALV_panitshop_uniformaction];
_HALV_panitshop_vehicleactions = [];
{player removeAction _x}forEach [_HALV_panitshop_bagaction,_HALV_panitshop_uniformaction];
_HALV_panitshop_uniformaction = -1;
_HALV_panitshop_bagaction = -1;
_lastsearch = [];
ExileClientNearPaintShop = false;
};
sleep 2;
};

View File

@ -11,8 +11,10 @@
*/
//these are the classnames of buildings that will activate the paintshop
_paintshopbuildings = ["Land_CarService_F","Land_Repair_center","Exile_Construction_Flag_Static"];
//these are the classnames of buildings that will activate the paintshop for uniforms / back packs / vehicles
//Base Painting is based on your own territory and the action is built into exile code
//Vehicle Painting is based on _paintshopBuildings and the action is built into exile code
_paintshopbuildings = ["Land_CarService_F","Land_Repair_center"];
//add textures and preset colors here
_textures = [