Jump to content
  • 0

extra_rc.hpp Help


ElDubya

Question

Hi all, 

 

Kinda new to all these extra_rc.hpp mumbo jumbo. I changed the extra_rc.hpp for DZGM because it only has one item in it, so I thought why not make use of that file and add other stuff I want. Is that the way it works? I can just add and add and add to that file?

 

Here is where I am at currently, but it doesn't work. The brackets don't seem to line up any more the longer the file gets, even if I keep the same structure?

class ExtraRc {

	class ItemRadio {
		class GroupManagement {
		text = "Group Management";
		script = "execVM 'dzgm\loadGroupManagement.sqf'";
	};
};
	class glock17_EP1 {
		class CommitSuicide {
		text = "Commit Suicide";
		script = "execVM ""custom\fixes\suicide.sqf"";";
	};
};
	class M9 {
		class CommitSuicide {
		text = "Commit Suicide";
		script = "execVM ""custom\fixes\suicide.sqf"";";
	};
};    
	class M9SD {
		class CommitSuicide {
		text = "Commit Suicide";
		script = "execVM ""custom\fixes\suicide.sqf"";";
	};
};    
	class Makarov {
		class CommitSuicide {
		text = "Commit Suicide";
		script = "execVM ""custom\fixes\suicide.sqf"";";
	};
};
	class revolver_EP1 {
		class CommitSuicide {
		text = "Commit Suicide";
		script = "execVM ""custom\fixes\suicide.sqf"";";
	};
};    
	class UZI_EP1 {
		class CommitSuicide {
		text = "Commit Suicide";
		script = "execVM ""custom\fixes\suicide.sqf"";";
	};
};    
	class Sa61_EP1 {
		class CommitSuicide {
		text = "Commit Suicide";
		script = "execVM ""custom\fixes\suicide.sqf"";";
	};
};    
	class Colt1911 {
		class CommitSuicide {
		text = "Commit Suicide";
		script = "execVM ""custom\fixes\suicide.sqf"";";
	};
};        
	class UZI_SD_EP1 {
		class CommitSuicide {
		text = "Commit Suicide";
		script = "execVM ""custom\fixes\suicide.sqf"";";
	};
};
	class revolver_gold_EP1 {
		class CommitSuicide {
		text = "Commit Suicide";
		script = "execVM ""custom\fixes\suicide.sqf"";";
	};
};    
	class MakarovSD {
		class CommitSuicide {
		text = "Commit Suicide";
		script = "execVM ""custom\fixes\suicide.sqf"";";
	};
};
	class ItemGPS {
		class viewdistanceTitle {
		text = "View Distance:";
		script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
	};
};
	class distance1000m {
		text = "1000 Meters";
		script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
	};
};
	class distance1500m {
		text = "1500 Meters";
		script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
	};
};
	class distance2000m {
		text = "2000 Meters";
		script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
	};
};
	class distance3000m {
		text = "3000 Meters";
		script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
	};
};
	class distance5000m {
		text = "5000 Meters";
		script = "setViewDistance 5000; systemChat('ViewDistance: 5000'); systemChat('Warning: Higher the view distance Lower the FPS');";
		};
	};
};

Can someone please point out where I have muffed this up, and if possible, tell me how I can add a right-click on toolbox option that will let me right click the toolbox, build a bike then when I am finished, look at the bike, pack it back up and get my toolbox back?

 

 

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

 

you are trying to close  the class 

the GPS is the class Item for all the rest until the end  then close it like this...

 

class ItemGPS {
class viewdistanceTitle {
text = "View Distance:";
script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
};


class distance1000m {
text = "1000 Meters";
script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
};


class distance1500m {
text = "1500 Meters";
script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
};


class distance2000m {
text = "2000 Meters";
script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
};


class distance3000m {
text = "3000 Meters";
script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
};


class distance5000m {
text = "5000 Meters";
script = "setViewDistance 5000; systemChat('ViewDistance: 5000'); systemChat('Warning: Higher the view distance Lower the FPS');";
};
};
};

here is how it should look

 


class ExtraRc {
  class ItemRadio {
     class GroupManagement {
        text = "Group Management";
        script = "execVM 'dzgm\loadGroupManagement.sqf'";
     };
  };
  class ItemKnife {
        class farmhemp {
            text = "Harvest the weed";
            script = "execVM 'custom\hookah\hemp.sqf'";
        };
    };
class ItemKiloHemp {
        class smokeweed {
            text = "Smoke the shit";
            script = "execVM 'custom\hookah\druguse\weeduse.sqf'";
        };
    };
class ItemMorphine {
class ShootUp {
text = "Shoot up?";
script = "execVM 'custom\hookah\druguse\morphine_painkiller.sqf'";
};
};
class ItemPainkiller {
class PopPill {
text = "Pop some pills?";
script = "execVM 'custom\hookah\druguse\morphine_painkiller.sqf'";
};
};


  class Binocular {
class viewdistanceTitle {
text = "View Distance:";
script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
};
class distance400m {
text = "400 Meters";
script = "setViewDistance 400; systemChat('ViewDistance: 400');";
};
class distance600m {
text = "600 Meters";
script = "setViewDistance 600; systemChat('ViewDistance: 600');";
};
class distance800m {
text = "800 Meters";
script = "setViewDistance 800; systemChat('ViewDistance: 800');";
};
class distance1000m {
text = "1000 Meters";
script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
};
class distance1250m {
text = "1250 Meters";
script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
};
class distance1500m {
text = "1500 Meters";
script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
};
class distance2000m {
text = "2000 Meters";
script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
};
class distance3000m {
text = "3000 Meters";
script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
};
class distance5000m {
text = "5000 Meters";
script = "setViewDistance 5000; systemChat('ViewDistance: 5000'); systemChat('Warning: Higher the view distance Lower the FPS');";
};
};
};

for deploy bike 

class ItemToolbox {
class BuildBike {
text = "Deploy Bike";
script = "['MMT_Civ'] execVM 'custom\EVD\EVD_deploy.sqf'";
};
};

 

Link to comment
Share on other sites

  • 0

notice your extra };

    class ItemGPS {
        class viewdistanceTitle {
        text = "View Distance:";
        script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
    };
};

should be 

  class ItemGPS {
        class viewdistanceTitle {
        text = "View Distance:";
        script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
    };

here is mine

 

class Binocular_Vector  {
class viewdistanceTitle {
text = "View Distance:";
script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
};
class distance400m {
text = "400 Meters";
script = "setViewDistance 400; systemChat('ViewDistance: 400');";
};
class distance600m {
text = "600 Meters";
script = "setViewDistance 600; systemChat('ViewDistance: 600');";
};
class distance800m {
text = "800 Meters";
script = "setViewDistance 800; systemChat('ViewDistance: 800');";
};
class distance1000m {
text = "1000 Meters";
script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
};
class distance1250m {
text = "1250 Meters";
script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
};
class distance1500m {
text = "1500 Meters";
script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
};
class distance2000m {
text = "2000 Meters";
script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
};
class distance3000m {
text = "3000 Meters";
script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
};
class distance5000m {
text = "5000 Meters";
script = "setViewDistance 5000; systemChat('ViewDistance: 5000'); systemChat('Warning: Higher the view distance Lower the FPS');";
};
};

Link to comment
Share on other sites

  • 0

Calamity is right but heres mine aswel just for you to compare more

class ExtraRc {
    class ItemRadio {
        class GroupManagement {
            text = "Group Management";
            script = "execVM 'dzgm\loadGroupManagement.sqf'";
        };
		};
		class ItemToolbox {
        class DeployBike {
            text = "Deploy Bike";
            script = "execVM 'custom\bike.sqf'";
        };
   
        class DeployMozzie {
            text = "Deploy Motorbike";
            script = "execVM 'custom\motor.sqf'";
        };
    
        class DeployMotorbike {
            text = "Deploy Gyro";
            script = "execVM 'custom\gyro.sqf'";
        };
    };
		

    class Binocular_Vector  {
                    class viewdistanceTitle {
                            text = "View Distance:";
                            script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
                    };
                    class distance400m {
                            text = "400 Meters";
                            script = "setViewDistance 400; systemChat('ViewDistance: 400');";
                    };
                    class distance600m {
                            text = "600 Meters";
                            script = "setViewDistance 600; systemChat('ViewDistance: 600');";
                    };
                    class distance800m {
                            text = "800 Meters";
                            script = "setViewDistance 800; systemChat('ViewDistance: 800');";
                    };
                    class distance1000m {
                            text = "1000 Meters";
                            script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
                    };
                    class distance1250m {
                            text = "1250 Meters";
                            script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
                    };
                    class distance1500m {
                            text = "1500 Meters";
                            script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
                    };
                    class distance2000m {
                            text = "2000 Meters";
                            script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
                    };
                    class distance3000m {
                            text = "3000 Meters";
                            script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
                    };
            };
            class Binocular {
                    class viewdistanceTitle {
                            text = "View Distance:";
                            script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
                    };
                    class distance400m {
                            text = "400 Meters";
                            script = "setViewDistance 400; systemChat('ViewDistance: 400');";
                    };
                    class distance600m {
                            text = "600 Meters";
                            script = "setViewDistance 600; systemChat('ViewDistance: 600');";
                    };
                    class distance800m {
                            text = "800 Meters";
                            script = "setViewDistance 800; systemChat('ViewDistance: 800');";
                    };
                    class distance1000m {
                            text = "1000 Meters";
                            script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
                    };
                    class distance1250m {
                            text = "1250 Meters";
                            script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
                    };
                    class distance1500m {
                            text = "1500 Meters";
                            script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
                    };
                    class distance2000m {
                            text = "2000 Meters";
                            script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
                    };
                    class distance3000m {
                            text = "3000 Meters";
                            script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
                    };
            };


};
Link to comment
Share on other sites

  • 0

this is what i use, im still working on adding more pistols for suicide. but all this is good to compare you can copy paste this and remove what u dont use and add what u want to use.

 

class ExtraRc {
    class Binocular_Vector  {
        class viewdistanceTitle {
            text = "View Distance:";
            script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
        };
        class distance400m {
            text = "400 Meters";
            script = "setViewDistance 400; systemChat('ViewDistance: 400');";
        };
        class distance600m {
            text = "600 Meters";
            script = "setViewDistance 600; systemChat('ViewDistance: 600');";
        };
        class distance800m {
            text = "800 Meters";
            script = "setViewDistance 800; systemChat('ViewDistance: 800');";
        };
        class distance1000m {
            text = "1000 Meters";
            script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
        };
        class distance1250m {
            text = "1250 Meters";
            script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
        };
        class distance1500m {
            text = "1500 Meters";
            script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
        };
        class distance2000m {
            text = "2000 Meters";
            script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
        };
        class distance3000m {
            text = "3000 Meters";
            script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
        };
        class distance5000m {
            text = "5000 Meters";
            script = "setViewDistance 5000; systemChat('ViewDistance: 5000'); systemChat('Warning: Higher the view distance Lower the FPS');";
        };
    };
    class Binocular {
        class viewdistanceTitle {
            text = "View Distance:";
            script = "systemChat('Change View Distance Locally. Click on one of the distance options');";
        };
        class distance400m {
            text = "400 Meters";
            script = "setViewDistance 400; systemChat('ViewDistance: 400');";
        };
        class distance600m {
            text = "600 Meters";
            script = "setViewDistance 600; systemChat('ViewDistance: 600');";
        };
        class distance800m {
            text = "800 Meters";
            script = "setViewDistance 800; systemChat('ViewDistance: 800');";
        };
        class distance1000m {
            text = "1000 Meters";
            script = "setViewDistance 1000; systemChat('ViewDistance: 1000');";
        };
        class distance1250m {
            text = "1250 Meters";
            script = "setViewDistance 1250; systemChat('ViewDistance: 1250');";
        };
        class distance1500m {
            text = "1500 Meters";
            script = "setViewDistance 1500; systemChat('ViewDistance: 1500');";
        };
        class distance2000m {
            text = "2000 Meters";
            script = "setViewDistance 2000; systemChat('ViewDistance: 2000'); systemChat('Warning: Higher the view distance Lower the FPS');";
        };
        class distance3000m {
            text = "3000 Meters";
            script = "setViewDistance 3000; systemChat('ViewDistance: 3000'); systemChat('Warning: Higher the view distance Lower the FPS');";
        };
        class distance5000m {
            text = "5000 Meters";
            script = "setViewDistance 5000; systemChat('ViewDistance: 5000'); systemChat('Warning: Higher the view distance Lower the FPS');";
        };
    };
    class glock17_EP1 {
        class suicide {
        text = "Commit Suicide";
        script = "[] execVM 'custom\suicide.sqf'";
        };
    };
    class M9 {
        class suicide {
        text = "Commit Suicide";
        script = "[] execVM 'custom\suicide.sqf'";
        };
    };
    class M9SD {
        class suicide {
        text = "Commit Suicide";
        script = "[] execVM 'custom\suicide.sqf'";
        };
    };
    class Makarov {
        class suicide {
        text = "Commit Suicide";
        script = "[] execVM 'custom\suicide.sqf'";
        };
    };
    class MakarovSD {
        class suicide {
        text = "Commit Suicide";
        script = "[] execVM 'custom\suicide.sqf'";
        };
    };
    class revolver_EP1 {
        class suicide {
        text = "Commit Suicide";
        script = "[] execVM 'custom\suicide.sqf'";
        };
    };
    class UZI_EP1 {
        class suicide {
        text = "Commit Suicide";
        script = "[] execVM 'custom\suicide.sqf'";
        };
    };
    class Sa61_EP1 {
        class suicide {
        text = "Commit Suicide";
        script = "[] execVM 'custom\suicide.sqf'";
        };
    };
    class Colt1911 {
        class suicide {
        text = "Commit Suicide";
        script = "[] execVM 'custom\suicide.sqf'";
        };
    };
    class revolver_gold_EP1 {
        class suicide {
        text = "Commit Suicide";
        script = "[] execVM 'custom\suicide.sqf'";
        };
    };
    class UZI_SD_EP1 {
        class suicide {
        text = "Commit Suicide";
        script = "[] execVM 'custom\suicide.sqf'";
        };
    };
    class ItemToolbox {
        class BuildBike {
            text = "Deploy Bike";
            script = "['MMT_Civ'] execVM 'custom\EVD\EVD_deploy.sqf'";
        };
        class BuildMotorcycle {
            text = "Deploy Motorcycle";
            script = "['TT650_Civ'] execVM 'custom\EVD\EVD_deploy.sqf'";
        };
        class BuildMozzie {
            text = "Deploy Mozzie";
            script = "['CSJ_GyroC'] execVM 'custom\EVD\EVD_deploy.sqf'";
        };
    };
    class ItemMap {
        class locate {
            text = "Locate Vehicles";
            script = "execVM 'custom\locate_vehicle.sqf'";
        };
        class identify {
            text = "Identify Keys";
            script = "execVM 'custom\locate_vehicle.sqf'";
        };        
    };    
    class ItemRadio {
        class GroupManagement {
            text = "Group Management";
            script = "execVM 'dzgm\loadGroupManagement.sqf'";
        };
    };
    class ItemKnife {
        class farmhemp {
            text = "Harvest the weed";
            script = "execVM 'custom\hemp.sqf'";
        };
    };
    class ItemKiloHemp {
        class smokeweed {
            text = "Smoke the shit";
            script = "execVM 'custom\smokeshit.sqf'";
        };
    };    
    class ItemBriefcase100oz {
        class carepackage {
            text = "Call carepackage";
            script = "execVM 'custom\carepackage.sqf'";
        };
    };
    class bulk_ItemSandbag {
        class sandWatchTower {
            text = "Sandbag Watch Tower";
            script = "[""Land_Fort_Watchtower"",[""ItemToolbox"",""ItemEtool"",""ItemHatchet_DZE""],[[""PartPlankPack"", 1],[""bulk_ItemSandbag"", 1],[""forest_net_kit"", 1]],[0,6.5,2.5]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
        class bigNest {
            text = "Sandbag Big Nest";
            script = "[""Land_fortified_nest_big"",[""ItemToolbox"",""ItemEtool"",""ItemHatchet_DZE""],[[""PartPlankPack"", 1],[""bulk_ItemSandbag"", 1],[""ItemBurlap"", 1]],[0,8,1.1]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
        class bigCamp {
            text = "Sandbag Camp";
            script = "[""WarfareBCamp"",[""ItemToolbox"",""ItemEtool"",""ItemHatchet_DZE""],[[""PartPlankPack"", 1],[""bulk_ItemSandbag"", 1],[""ItemBurlap"", 1]],[0,10,1.1]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
    };
    class ItemPole {
        class milWatchMedium {
            text = "Small Watch Tower";
            script = "[""Land_vez"",[""ItemToolbox"",""ItemEtool"",""ItemCrowbar"",""ItemSledge""],[[""PartGeneric"", 1],[""ItemPole"", 1]],[0,4,4.6]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
        class metalWatchTower {
            text = "Medium Watch Tower";
            script = "[""Land_radar_EP1"",[""ItemToolbox"",""ItemEtool"",""ItemCrowbar"",""ItemSledge""],[[""PartGeneric"", 1],[""ItemPole"", 1],[""CinderBlocks"", 1]],[0,4.5,6.7]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
        class lightWatchTower {
            text = "High Watch Tower (Light)";
            script = "[""Land_Ind_IlluminantTower"",[""ItemToolbox"",""ItemEtool"",""ItemCrowbar"",""ItemSledge""],[[""PartGeneric"", 1],[""ItemPole"", 1],[""ItemLightBulb"", 1],[""CinderBlocks"", 1]],[0,3,10]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
        class stopBoom {
            text = "STOP Gate";
            script = "[""ZavoraAnim"",[""ItemToolbox"",""ItemEtool""],[[""PartGeneric"", 1],[""ItemPole"", 1]],[0,3,4.4]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
        class scaffoldSmall {
            text = "Small Scaffold";
            script = "[""MAP_leseni2x"",[""ItemToolbox"",""ItemEtool""],[[""PartGeneric"", 1],[""ItemPole"", 1],[""PartWoodPlywood"", 1]],[0,3,1.55]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
        class scaffoldHigh {
            text = "High Scaffold";
            script = "[""MAP_leseni4x"",[""ItemToolbox"",""ItemEtool""],[[""PartGeneric"", 1],[""ItemPole"", 1],[""PartWoodPlywood"", 1],[""ItemWoodLadder"", 1]],[0,3,3.87]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
    };
    class PartGeneric {
        class climbingObstacle {
            text = "Climbing Obstacle";
            script = "[""Land_Climbing_Obstacle"",[""ItemToolbox""],[[""PartGeneric"", 1],[""PartWoodPlywood"", 1]],[0,3,1.1]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
        class metalHouse1 {
            text = "Small Metal House 1";
            script = "[""mbg_slum01_EO"",[""ItemToolbox""],[[""PartGeneric"", 1],[""PartWoodPlywood"", 1]],[0,3,1.6]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
        class metalHouse2 {
            text = "Small Metal House 2";
            script = "[""mbg_slum02_EO"",[""ItemToolbox""],[[""PartGeneric"", 1],[""PartWoodPlywood"", 1]],[0,3,1.6]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
        class metalHouse3 {
            text = "Small Metal House 3";
            script = "[""mbg_slum03h_EO"",[""ItemToolbox""],[[""PartGeneric"", 1],[""PartWoodPlywood"", 1]],[0,3,1.7]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
    };
    class PartPlankPack {
        class castleStairs {
            text = "Castle Stairs";
            script = "[""Land_A_Castle_Stairs_A"",[""ItemToolbox"",""ItemCrowbar"",""ItemSledge""],[[""PartPlankPack"", 1],[""PartPlywoodPack""]],[-4,6,3.8]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
        class heliPadRound {
            text = "Heli Pad";
            script = "[""HeliHCivil"",[""ItemToolbox""],[[""PartPlankPack"", 1]],[0,7.5,0]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
    };
    class PartPlywoodPack {
        class stopSignBlue {
            text = "Stop Sign";
            script = "[""Sign_Checkpoint_US_EP1"",[""ItemToolbox""],[[""PartPlywoodPack"", 1]],[0,2,0.45]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
    };
    class ItemFuelBarrel {
        class smallFuelTank {
            text = "Fuel Tank";
            script = "[""Land_Ind_TankSmall2_EP1"",[""ItemToolbox"",""ItemSledge""],[[""ItemPole"", 1],[""PartGeneric"", 1],[""ItemFuelBarrel"", 1]],[0,3,1.5]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
        class fireBarrelBurn {
            text = "Fire Barrel Burning";
            script = "[""Land_Fire_barrel_burning"",[""ItemHatchet_DZE""],[[""PartWoodPile"", 1],[""ItemFuelBarrel"", 1]],[0,2,0.65]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
    };    
    class ItemWaterbottle {
        class waterWell {
            text = "Water Well";
            script = "[""MAP_Misc_WellPump"",[""ItemToolbox"",""ItemEtool"",""ItemSledge""],[[""ItemWaterbottle"", 1],[""PartGeneric"", 1],[""PartPlankPack"", 1]],[0,3,0.9]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
        class waterPump {
            text = "Water Pump";
            script = "[""Land_pumpa"",[""ItemToolbox"",""ItemEtool"",""ItemSledge""],[[""ItemWaterbottle"", 1],[""PartGeneric"", 1],[""ItemPole"", 1]],[0,4.5,1.2]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
    };
    class PartWoodPile {
        class campFireLarge {
            text = "CampFire Burning";
            script = "[""Land_Campfire_burning"",[""ItemToolbox"",""ItemHatchet_DZE""],[[""PartWoodPile"", 1],[""CinderBlocks"", 1]],[0,4,0.4]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
    };
    class ItemLightBulb {
        class runwayBlueLight {
            text = "Runway Light Blue";
            script = "[""ASC_runway_BluelightB"",[""ItemToolbox""],[[""ItemLightBulb"", 1],[""PartGeneric"", 1]],[0,2,0.2]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
        class runwayYellowLight {
            text = "Runway Light Yellow";
            script = "[""ASC_runway_YellowlightB"",[""ItemToolbox""],[[""ItemLightBulb"", 1],[""PartGeneric"", 1]],[0,2,0.2]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
        class cam {
            text = "Cam";
            script = "[""Microphone3_ep1"",[""ItemToolbox""],[[""ItemLightBulb"", 1],[""PartGeneric"", 1],[""Laserbatteries"", 1]],[0,5,3]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
        class smallTV {
            text = "TV";
            script = "[""SmallTV"",[""ItemToolbox""],[[""ItemLightBulb"", 1],[""PartGeneric"", 1],[""Laserbatteries"", 1]],[0,3,1.5]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
    };
    class CinderBlocks {
        class cinderBlockBY {
            text = "Color Cinder Block";
            script = "[""Land_CncBlock_Stripes"",[""ItemToolbox""],[[""CinderBlocks"", 1],[""PartGeneric"", 1]],[0,2,0.4]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
        class rampConcreteNormal {
            text = "Concrete Ramp";
            script = "[""RampConcrete"",[""ItemToolbox""],[[""CinderBlocks"", 1],[""cinder_wall_kit"", 1]],[0,8,0.5]] execVM ""custom\snap_pro\player_build.sqf"";";
        };
    };
//AK-74    
    class AK_74 {
        class akgl {
            text = "Attatch Grenade Launcher";
            script = "execVM ""OWS\scripts\upgrades\ak\ak74gl.sqf"";";
        };
        class aks {
            text = "Attatch Folding Stock";
            script = "execVM ""OWS\scripts\upgrades\ak\aks74.sqf"";";
        };
    };    
    class AK_74_GL {
        class akglkobra {
            text = "Attatch Kobra Sight";
            script = "execVM ""OWS\scripts\upgrades\ak\ak74glkobra.sqf"";";
        };
        class ak_remgl {
            text = "Detatch Grenade Launcher";
            script = "execVM ""OWS\scripts\downgrades\ak\ak74gl.sqf"";";
        };
    };    
    class AK_74_GL_kobra {
        class akgl_remkobra {
            text = "Detatch Kobra Sight";
            script = "execVM ""OWS\scripts\downgrades\ak\ak74glkobra.sqf"";";
        };
    };    
    class AKS_74 {
        class aks74kobra {
            text = "Attatch Kobra Sight";
            script = "execVM ""OWS\scripts\upgrades\ak\aks74kobra.sqf"";";
        };
        class aks74pso {
            text = "Attatch PSO Scope";
            script = "execVM ""OWS\scripts\upgrades\ak\aks74pso.sqf"";";
        };
        class aks74nspu {
            text = "Attatch NSPU Scope";
            script = "execVM ""OWS\scripts\upgrades\ak\aks74nspu.sqf"";";
        };
        class aks74goshawk {
            text = "Attatch Goshawk Scope";
            script = "execVM ""OWS\scripts\upgrades\ak\aks74gos.sqf"";";
        };
        class aks_remstock {
            text = "Detatch Folding Stock";
            script = "execVM ""OWS\scripts\downgrades\ak\aks74.sqf"";";
        };
    };    
    class AKS_74_kobra {
        class aks_remkobra {
            text = "Detatch Kobra Sight";
            script = "execVM ""OWS\scripts\downgrades\ak\aks74kobra.sqf"";";
        };
    };    
    class AKS_74_pso {
        class aks_rempso {
            text = "Detatch PSO Scope";
            script = "execVM ""OWS\scripts\downgrades\ak\aks74pso.sqf"";";
        };
    };    
    class AKS_74_NSPU {
        class aks_remnspu {
            text = "Detatch NSPU Scope";
            script = "execVM ""OWS\scripts\downgrades\ak\aks74nspu.sqf"";";
        };
    };    
    class AKS_74_GOSHAWK {
        class aks_remgos {
            text = "Detatch Goshawk Scope";
            script = "execVM ""OWS\scripts\downgrades\ak\aks74gos.sqf"";";
        };
    };
//AK-107
    class AK_107_kobra {
        class ak107gl {
            text = "Attatch Grenade Launcher";
            script = "execVM ""OWS\scripts\upgrades\ak\ak107gl.sqf"";";
        };
        class ak107pso {
            text = "Attatch PSO Scrope";
            script = "execVM ""OWS\scripts\upgrades\ak\ak107pso.sqf"";";
        };
    };    
    class AK_107_pso {
        class ak107pso {
            text = "Attatch Grenade Launcher";
            script = "execVM ""OWS\scripts\upgrades\ak\ak107psogl.sqf"";";
        };
        class ak107rempso {
            text = "Detatch PSO Scope";
            script = "execVM ""OWS\scripts\downgrades\ak\ak107pso.sqf"";";
        };
    };    
    class AK_107_GL_kobra {
        class ak107remgl {
            text = "Detatch Grenade Launcher";
            script = "execVM ""OWS\scripts\downgrades\ak\ak107gl.sqf"";";
        };
    };    
    class AK_107_GL_pso {
        class ak107psoremgl {
            text = "Detatch Grenade Launcher";
            script = "execVM ""OWS\scripts\downgrades\ak\ak107psogl.sqf"";";
        };
    };    
//Bizon
    class Bizon {
        class bizonsd {
            text = "Attatch Suppressor";
            script = "execVM ""OWS\scripts\upgrades\misc\bizon.sqf"";";
        };
    };    
    class bizon_silenced {
        class bizonremsd {
            text = "Detatch Suppressor";
            script = "execVM ""OWS\scripts\downgrades\misc\bizon.sqf"";";
        };
    };    
//AKM
    class AK_47_M {
        class akms {
            text = "Attatch Folding Stock";
            script = "execVM ""OWS\scripts\upgrades\ak\akm.sqf"";";
        };
    };    
    class AK_47_S {
        class akm {
            text = "Detatch Folding Stock";
            script = "execVM ""OWS\scripts\downgrades\ak\akm.sqf"";";
        };
    };    
//AKS74U
    class AKS_74_U {
        class aksd {
            text = "Attatch Suppressor + Kobra";
            script = "execVM ""OWS\scripts\upgrades\ak\aks74u.sqf"";";
        };
    };    
    class AKS_74_UN_kobra {
        class aksu {
            text = "Detatch Suppressor + Kobra";
            script = "execVM ""OWS\scripts\downgrades\ak\aks74u.sqf"";";
        };
    };
//SVD    
    class SVD {
        class svdcamo {
            text = "Add Forest Camo";
            script = "execVM ""OWS\scripts\upgrades\snipers\svdcamo.sqf"";";
        };
        class svdcamodes {
            text = "Add Desert Camo";
            script = "execVM ""OWS\scripts\upgrades\snipers\svdcamodes.sqf"";";
        };
        class svdnspu {
            text = "Attatch NSPU Scope";
            script = "execVM ""OWS\scripts\upgrades\snipers\svdnspu.sqf"";";
        };
    };    
    class SVD_des_EP1 {
        class svd_remcam {
            text = "Remove Camo";
            script = "execVM ""OWS\scripts\upgrades\snipers\svdcamodes.sqf"";";
        };
    };    
    class SVD_CAMO {
        class svd_remcamdes {
            text = "Remove Camo";
            script = "execVM ""OWS\scripts\upgrades\snipers\svdcamo.sqf"";";
        };
    };    
    class SVD_NSPU_EP1 {
        class svd_remnspu {
            text = "Detatch NSPU Scope";
            script = "execVM ""OWS\scripts\upgrades\snipers\svdnspu.sqf"";";
        };
    };
////US Weapons
//M4's
    class M4A1 {
        class m4a1cco {
            text = "Attatch CCO Sight";
            script = "execVM ""OWS\scripts\upgrades\m4\m4cco.sqf"";";
        };
        class m4a1holo {
            text = "Attatch Holo + M203";
            script = "execVM ""OWS\scripts\upgrades\m4\m4holo.sqf"";";
        };
        class m4a1rco {
            text = "Attatch RCO + M203";
            script = "execVM ""OWS\scripts\upgrades\m4\m4rco.sqf"";";
        };
    };    
    class M4A1_Aim {
        class m4a1camo {
            text = "Add Camo";
            script = "execVM ""OWS\scripts\upgrades\m4\m4ccoc.sqf"";";
        };
        class m4a1 {
            text = "Detatch CCO Sight";
            script = "execVM ""OWS\scripts\downgrades\m4\m4cco.sqf"";";
        };
    };    
    class M4A1_HWS_GL {
        class m4a1_2 {
            text = "Detatch Holo + M203";
            script = "execVM ""OWS\scripts\downgrades\m4\m4holo.sqf"";";
        };
    };    
    class M4A1_RCO_GL {
        class m4a1_3 {
            text = "Detatch RCO + M203";
            script = "execVM ""OWS\scripts\downgrades\m4\m4rco.sqf"";";
        };
    };    
    class M4A1_Aim_camo {
        class m4a1ccosd {
            text = "Attatch Suppressor";
            script = "execVM ""OWS\scripts\upgrades\m4\m4ccosd.sqf"";";
        };
        class m4a1camoholo {
            text = "Attatch Holo + M203";
            script = "execVM ""OWS\scripts\upgrades\m4\m4holocamo.sqf"";";
        };
        class m4a1_4 {
            text = "Remove Camo";
            script = "execVM ""OWS\scripts\downgrades\m4\m4ccoc.sqf"";";
        };
    };    
    class M4A1_AIM_SD_camo {
        class m4a1camo {
            text = "Detatch Suppressor";
            script = "execVM ""OWS\scripts\downgrades\m4\m4ccosd.sqf"";";
        };
    };    
    class M4A1_HWS_GL_camo {
        class m4a1holosd {
            text = "Attatch Suppressor";
            script = "execVM ""OWS\scripts\upgrades\m4\m4holocamosd.sqf"";";
        };
        class m4a1camo2 {
            text = "Detatch Holo + M203";
            script = "execVM ""OWS\scripts\downgrades\m4\m4holocamo.sqf"";";
        };
    };
    class M4A1_HWS_GL_SD_Camo {
        class m4a1holocamo {
            text = "Detatch Suppressor";
            script = "execVM ""OWS\scripts\downgrades\m4\m4holocamosd.sqf"";";
        };
    };    
//MP5
    class MP5A5 {
        class mp5_sd {
            text = "Attatch Suppressor";
            script = "execVM ""OWS\scripts\upgrades\misc\mp5.sqf"";";
        };
    };    
    class MP5SD {
        class mp5remsd {
            text = "Detatch Suppressor";
            script = "execVM ""OWS\scripts\downgrades\misc\mp5.sqf"";";
        };
    };    
//M16
    class M16A2 {
        class m16cco {
            text = "Attatch CCO Sight";
            script = "execVM ""OWS\scripts\upgrades\m16\m16cco.sqf"";";
        };
        class m16acg {
            text = "Attatch Acog Scope";
            script = "execVM ""OWS\scripts\upgrades\m16\m16acg.sqf"";";
        };
        class m16gl {
            text = "Attatch Grenade Launcher";
            script = "execVM ""OWS\scripts\upgrades\m16\m16gl.sqf"";";
        };
    };    
    class M16A4 {
        class m16remcco {
            text = "Detatch CCO Sight";
            script = "execVM ""OWS\scripts\downgrades\m16\m16cco.sqf"";";
        };
    };    
    class M16A4_ACG {
        class m16acggl {
            text = "Attatch Grenade Launcher";
            script = "execVM ""OWS\scripts\upgrades\m16\m16acggl.sqf"";";
        };
        class m16remacg {
            text = "Detatch Acog";
            script = "execVM ""OWS\scripts\downgrades\m16\m16acg.sqf"";";
        };
    };    
    class M16A4_ACG_GL {
        class m16remgl2 {
            text = "Detatch Grenade Launcher";
            script = "execVM ""OWS\scripts\downgrades\m16\m16acggl.sqf"";";
        };
    };    
////Misc Weapons
//FAL
    class FN_FAL {
        class falnv {
            text = "Attatch ANPVS4";
            script = "execVM ""OWS\scripts\upgrades\misc\fal"";";
        };
    };
    class FN_FAL_ANPVS4 {
        class fal {
            text = "Detatch ANPVS4";
            script = "execVM ""OWS\scripts\downgrades\misc\fal"";";
        };
    };
//G36
    class G36C_camo {
        class g36ccsd {
            text = "Attatch Holo + Suppressor";
            script = "execVM ""OWS\scripts\upgrades\misc\g36ccsd.sqf"";";
        };
    };    
    class G36C {
        class g36csd {
            text = "Attatch Holo + Suppressor";
            script = "execVM ""OWS\scripts\upgrades\misc\g36csd.sqf"";";
        };
    };    
    class G36_C_SD_eotech {
        class g36c {
            text = "Detatch Holo + Suppressor";
            script = "execVM ""OWS\scripts\downgrades\misc\g36csd.sqf"";";
        };
    };    
    class G36_C_SD_camo {
        class g36cc {
            text = "Detatch Holo + Suppressor";
            script = "execVM ""OWS\scripts\downgrades\misc\g36ccsd.sqf"";";
        };
    };
//M110
    class M110_NVG_EP1 {
        class m110tws {
            text = "Attatch TWS Scope";
            script = "execVM ""OWS\scripts\upgrades\snipers\m110tws.sqf"";";
        };
    };    
    class M110_TWS_EP1 {
        class m110nv {
            text = "Detatch TWS Scope";
            script = "execVM ""OWS\scripts\downgrades\snipers\m110tws.sqf"";";
        };
    };    
//MK17's
    class SCAR_H_LNG_Sniper {
        class mk17snipersd {
            text = "Attatch Suppressor";
            script = "execVM ""OWS\scripts\upgrades\snipers\mk17snipersd.sqf"";";
        };
    };    
    class SCAR_H_LNG_Sniper_SD {
        class mk17sniper {
            text = "Detatch Suppressor";
            script = "execVM ""OWS\scripts\downgrades\snipers\mk17snipersd.sqf"";";
        };
    };    
    class SCAR_H_CQC_CCO {
        class mk17sd {
            text = "Attatch Suppressor";
            script = "execVM ""OWS\scripts\upgrades\misc\mk17sd.sqf"";";
        };
    };    
    class SCAR_H_CQC_CCO_SD {
        class mk17sdtws {
            text = "Attatch TWS Scope";
            script = "execVM ""OWS\scripts\upgrades\misc\mk17sdtws.sqf"";";
        };
        class mk17cco {
            text = "Detatch Silencer";
            script = "execVM ""OWS\scripts\downgrades\misc\mk17cco.sqf"";";
        };
    };    
    class SCAR_H_STD_TWS_SD {
        class mk17sd2 {
            text = "Detatch TWS Scope";
            script = "execVM ""OWS\scripts\downgrades\misc\mk17sdtws.sqf"";";
        };
    };    
};

Link to comment
Share on other sites

  • 0

This is my pack.sqf im using Enhanced Vehicle Deployment by TheFarix the part i edited added this         player addWeapon "ItemToolbox";

just under        _radius = 1;

now when packing vehicle players get toolbox back.

 

/*
    Enhanced Vehicle Deployment by TheFarix
*/

if (dayz_combat == 1) exitwith { cutText ["\n\nYou are in combat and cannot perform that action!", "PLAIN DOWN"] };

private ["_obj","_animState","_started","_finished"];

if(DZE_ActionInProgress) exitWith { cutText ["Vehicle packing already in progress." , "PLAIN DOWN"]; };
DZE_ActionInProgress = true;

player removeAction s_player_packVehicle;
s_player_packVehicle = 1;

_obj = _this select 3;

cutText ["Packing vehicle started", "PLAIN DOWN"];

[1,1] call dayz_HungerThirst;
player playActionNow "Medic";

[player,"repair",0,false] call dayz_zombieSpeak;
[player,50,true,(getPosATL player)] spawn player_alertZombies;

r_interrupt = false;
_animState = animationState player;
r_doLoop = true;
_started = false;
_finished = false;

while {r_doLoop} do {
    _animState = animationState player;
    _isMedic = ["medic",_animState] call fnc_inString;
    if (_isMedic) then {
        _started = true;
    };
    if (_started and !_isMedic) then {
        r_doLoop = false;
        _finished = true;
    };
    if (r_interrupt) then {
        r_doLoop = false;
    };
    sleep 0.1;
};
r_doLoop = false;
        
    if (_finished) then {
    // Double check that object is not null
    if(!isNull(_obj)) then {
        _ipos = getPosATL _obj;
        _type = typeOf _obj;

        _materials = [_type] call EVDGetMaterials;

        //Delete from hive
        _objectID  = _obj getVariable ["ObjectID","0"];
        _objectUID = _obj getVariable ["ObjectUID","0"];
        _activatingPlayer = player;
        PVDZE_obj_Delete = [_objectID,_objectUID,_activatingPlayer];
        publicVariableServer "PVDZE_obj_Delete";

        deleteVehicle _obj;

        if (_ipos select 2 < 0) then {
            _ipos set [2,0];
        };

        _radius = 1;
        player addWeapon "ItemToolbox";
        // give refund items
        if((count _materials) > 0) then {
            _item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
            {
                _itemOut = _x select 0;
                _countOut = _x select 1;
                if (typeName _countOut == "ARRAY") then {
                    _countOut = round((random (_countOut select 1)) + (_countOut select 0));
                };
                _item addMagazineCargoGlobal [_itemOut,_countOut];
            } forEach _materials;

            _item setposATL _iPos;

            player reveal _item;

            player action ["Gear", _item];
        };
    } else {
        cutText [(localize "str_epoch_player_91"), "PLAIN DOWN"];
    };
} else {
    r_interrupt = false;
    player switchMove "";
    player playActionNow "stop";
    cutText ["Canceled packing vehicle", "PLAIN DOWN"];
};

DZE_ActionInProgress = false;
s_player_packVehicle = -1;
 

Link to comment
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
  • Advertisement
  • Discord

×
×
  • Create New...