Jump to content
Steve_S

iconType issue

Recommended Posts

Hello everybody,

I have a problem. I want to make custom tracer ammo (for example .45ACP tracers).

The in-game tracers (such as .308Win, 5.56 etc.) have their own icons with a small white rhombus in the corner of the icon. So I want to make my tracers' icons look the same.

I made the ammunition config file exactly the same as the original config, but the icon didn't change at all. 

Here is my config:

Spoiler

class CfgPatches
{
	class DZ_Weapons_Ammunition
	{
		units[]={};
		weapons[]={};
		requiredVersion=0.1;
		requiredAddons[]=
		{
			"DZ_Weapons_Magazines"
		};
	};
};
class CfgMagazines
{
	class Ammunition_Base;
	class Ammo_45ACPTracer: Ammunition_Base
	{
		scope=2;
		displayName=".45ACP Tracers";
		descriptionShort=".45ACP Tracers";
		model="\dz\weapons\ammunition\45acp_LooseRounds.p3d";
		iconCartridge=1;
		iconType=1;
		weight=12;
		count=25;
		ammo="Bullet_45ACPTracer";
		class DamageSystem
		{
			class GlobalHealth
			{
				class Health
				{
					hitpoints=100;
					healthLevels[]=
					{
						
						{
							1,
							
							{
								"DZ\weapons\ammunition\data\45cal_loose.rvmat"
							}
						},
						
						{
							0.69999999,
							
							{
								"DZ\weapons\ammunition\data\45cal_loose.rvmat"
							}
						},
						
						{
							0.5,
							
							{
								"DZ\weapons\ammunition\data\45cal_loose_damage.rvmat"
							}
						},
						
						{
							0.30000001,
							
							{
								"DZ\weapons\ammunition\data\45cal_loose_damage.rvmat"
							}
						},
						
						{
							0,
							
							{
								"DZ\weapons\ammunition\data\45cal_loose_destruct.rvmat"
							}
						}
					};
				};
			};
		};
	};	
};	

 

 

I don't know how to solve this problem. So if you have any suggestions, please tell me.

Thanks in advance.

 

 

 

Edited by Steve_S

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

×