mirror of
https://github.com/ravmustang/Halvs_PaintShop_eXpanded4Exile.git
synced 2024-08-30 17:22:12 +00:00
Move Veh Action to Exile and New textures
This commit is contained in:
parent
a6ef3a4fdd
commit
9c2326030a
16
README.md
16
README.md
@ -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
|
||||
|
@ -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{
|
||||
@ -324,34 +325,20 @@ while{alive player}do{
|
||||
}else{
|
||||
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;
|
||||
};
|
||||
|
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user