Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
koder

Помогите с созданием мода пж

Я хочу сделать мод на сухой паёк(ИРП) чтобы из него после распаковки выпадали консервы допустим 5 шт.

У меня он появляется в инвентаре но невидно модельки его, а она есть.

Чисто пустое место даже в руке не появляется.

В p3d только mesh сам и Fire....  

В Addon Builder прописано 

еще ниже конфиг мода.

*.emat;*.edds;*.ptc;*.c;*.imageset;*.layout;*.ogg;*.png;*.paa;*.rvmat;*.wrp;*.p3d
class CfgPatches {
	class DZ_Weapons_Ammunition {
		units[] = {};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = { "DZ_Weapons_Magazines" };
	};
};

class CfgVehicles {
	class Box_Base;	

	class irp_a : Box_Base {
		scope = 2;
		displayName = "IRP";
		descriptionShort = "$STR_CfgVehicles_AmmoBox_556x45_20Rnd1";
		//model = "irpMir\irp.p3d";
		model = "\irp.p3d";
		rotationFlags = 17;
		weight = 85;
		itemSize[] = { 3,2 };

		class DamageSystem {
			class GlobalHealth {
				class Health {
					hitpoints = 100;
					healthLevels[] = { {1.0, {"DZ\weapons\ammunition\data\556_20RoundBox.rvmat"}}, {0.7, {"DZ\weapons\ammunition\data\556_20RoundBox.rvmat"}}, {0.5, {"DZ\weapons\ammunition\data\556_20RoundBox_damage.rvmat"}}, {0.3, {"DZ\weapons\ammunition\data\556_20RoundBox_damage.rvmat"}}, {0.0, {"DZ\weapons\ammunition\data\556_20RoundBox_destruct.rvmat"}} };
				};
			};
		};

		class Resources {
			class SardinesCan {
				value = 1;
				variable = "quantity";
			};
		};

		class AnimEvents {
			class SoundWeapon {
				class interact {
					soundset = "ammoboxUnpack_SoundSet";
					id = 70;
				};
			};
		};
	};

};

код материала 

ambient[]={1,1,1,1};
diffuse[]={1,1,1,1};
forcedDiffuse[]={0,0,0,0};
emmisive[]={0,0,0,1};
specular[]={0.70999998,0.70999998,0.70999998,1};
specularPower=200;
PixelShaderID="Super";
VertexShaderID="Super";
class Stage1
{
	texture="irpMir\data\irp_nohq.paa";
	uvSource="tex";
	class uvTransform
	{
		aside[]={1,0,0};
		up[]={0,1,0};
		dir[]={0,0,0};
		pos[]={0,0,0};
	};
};
class Stage2
{
	texture="#(argb,8,8,3)color(0.5,0.5,0.5,0.5,DT)";
	uvSource="tex";
	class uvTransform
	{
		aside[]={1,0,0};
		up[]={0,1,0};
		dir[]={0,0,0};
		pos[]={0,0,0};
	};
};
class Stage3
{
	texture="#(argb,8,8,3)color(0,0,0,0,MC)";
	uvSource="tex";
	class uvTransform
	{
		aside[]={1,0,0};
		up[]={0,1,0};
		dir[]={0,0,0};
		pos[]={0,0,0};
	};
};
class Stage4
{
	texture="#(argb,8,8,3)color(1,1,1,1,AS)";
	uvSource="tex";
	class uvTransform
	{
		aside[]={1,0,0};
		up[]={0,1,0};
		dir[]={0,0,0};
		pos[]={0,0,0};
	};
};
class Stage5
{
	texture="";
	uvSource="tex";
	class uvTransform
	{
		aside[]={1,0,0};
		up[]={0,1,0};
		dir[]={0,0,0};
		pos[]={0,0,0};
	};
};
class Stage6
{
	texture="#(ai,32,128,1)fresnel(0.3,0.6)";
	uvSource="none";
};
class Stage7
{
	texture="";
	uvSource="tex";
	class uvTransform
	{
		aside[]={1,0,0};
		up[]={0,1,0};
		dir[]={0,0,0};
		pos[]={0,0,0};
	};
};

За основу взял боксы патрон

Edited by koder
Немного понятней написал (see edit history)

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

model = "\irp.p3d";

надо писать:

model = "название аддона\irp.p3d";

Share this post


Link to post
Share on other sites







  • 0

model.cfg бы посмотреть, а так же селекшены в самой модели. И да, первый вариант в котором указан путь модели - верный, раскоменть его. Второй удали.

Edited by Shamrock (see edit history)

Share this post


Link to post
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

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.