Jump to content
muskel

Multiple Car Horns

Recommended Posts

Have an Problem, when I add more than one horn to an car. Have modified "C_SUV_01_F",  added 3 Sounds to "weapons[]", and i can use all three ingame, changing with standard F-key, but it dosnt show up name at top right corner, where normally ammunition and Turrets are. Anyone an idea how to fix it?

 

Thx

 

here is my actual config.cpp

class CfgPatches {

    class Test_Vehicles {
        units[] ={"Test_SUV"};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {"A3_Soft_F_SUV","A3_Soft_F"};
    };
};

class cfgVehicleClasses
{
    class Test_Vehicles_class
    {
        displayName = "Test Vehicles";
    };
};

class CfgWeapons {
	/*extern*/ class SportCarHorn;
	
	class Horn_1: SportCarHorn {
		displayname = "Howler";
		reloadTime = 4;
		scope = 2;
		drySound[] = {"blablabla", 1, 1, 200};
	};
	
	class Horn_2: SportCarHorn {
		displayname = "Manuel";
		reloadTime = 4;
		scope = 2;
		drySound[] = {"blablabla", 1, 1, 200};
	};
	
	class Horn_3: SportCarHorn {
		displayname = "Takedown";
		reloadTime = 4;
		scope = 2;
		drySound[] = {"blablabla", 1, 1, 200};
	};	
};

class CfgVehicles {
	
	class LandVehicle;
	class Car: LandVehicle {
		/*extern*/ class NewTurret;
	};
	class Car_F: Car {
		class Turrets {

			class MainTurret: NewTurret {
				disableSoundAttenuation = 1;
				/*extern*/ class ViewOptics;
			};
		};
		/*extern*/ class EventHandlers;
		/*extern*/ class AnimationSources;
	};

        class SUV_01_base_F: Car_F {};
	class C_SUV_01_F: SUV_01_base_F {};
	class Test_SUV : C_SUV_01_F {
		vehicleClass = "Test_Vehicles_class";
		displayName = "Test SUV";
		hiddenSelections[] = {"Camo1"};
		hiddenSelectionsTextures[] = {"\A3\Soft_F_Gamma\SUV_01\Data\SUV_01_ext_CO.paa"};
		class Turrets {
		};
		weapons[] = {"Horn_1","Horn_2","Horn_3"};	
        };
};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×