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
Sign in to follow this  
ProbusBoss

Видны прокси

Видны прокси(ящики), даже когда нет самих ящиков, сами прокси работают, но что тут все же не так? Не пойму что и как надо прописать, от чего это зависит.

 

class CfgVehicles {
	class Inventory_Base;
	class Container_Base;
	
	class WoodenCrate : Container_Base {
		inventorySlot[] = {"WoodenCrate", "WoodenCrate1", "WoodenCrate2", "WoodenCrate3", "WoodenCrate4", "WoodenCrate5"};
	};

class shelf3 : Inventory_Base {
		scope = 2;
		displayName = "shelf";
		descriptionShort = "shelf описание";
		attachments[]=
		{
			"WoodenCrate1",
			"WoodenCrate2",
			"WoodenCrate3",
			"WoodenCrate4",
			"WoodenCrate5"
		};
		model = "\Probus_fur\shelfs\shelf3\shelf3.p3d";
\\

class GUIInventoryAttachmentsProps {
			class Shelf3_1 {
				name = "1 полка";
				description = "";
				attachmentSlots[] = {"WoodenCrate1"};
				icon = "cat_common_cargo";
				selection = "inventory";
			};
			
			class Shelf3_2 {
				name = "2 полка";
				description = "";
				attachmentSlots[] = {"WoodenCrate2"};
				icon = "cat_common_cargo";
				selection = "inventory";
			};

\\

сlass CfgNonAIVehicles {
	class ProxyAttachment;
	
	class Proxywooden_case1 : ProxyAttachment {
		scope = 2;
		inventorySlot = "WoodenCrate1";
		model = "Probus_fur\proxy\w_crate1.p3d";
	};

	class Proxywooden_case2 : ProxyAttachment {
		scope = 2;
		inventorySlot = "WoodenCrate2";
		model = "Probus_fur\proxy\w_crate2.p3d";
	};
	
	class Proxywooden_case3 : ProxyAttachment {
		scope = 2;
		inventorySlot = "WoodenCrate3";
		model = "Probus_fur\proxy\w_crate3.p3d";
	};
};

\\

class CfgSlots {
	
	class Slot_WoodenCrate1 {
		name = "WoodenCrate1";
		displayName = "WoodenCrate1";
		ghostIcon = "missing";
	};
	
	class Slot_WoodenCrate2 {
		name = "WoodenCrate2";
		displayName = "WoodenCrate2";
		ghostIcon = "missing";
	};
	
	class Slot_WoodenCrate3 {
		name = "WoodenCrate3";
		displayName = "WoodenCrate3";
		ghostIcon = "missing";
	};
};



 

Пожалуйста, Войдите или Зарегистрируйтесь, чтобы увидеть это: Вложение.

Edited by ProbusBoss (see edit history)

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 5

Сам разобрался, не сразу понял, но имя класса прокси должно совпадать с названием p3d используемого прокси. Оставлю тут, если вдруг кто будет искать ответы.
 

class CfgNonAIVehicles {
	class ProxyAttachment;
	
	class Proxyw_crate1 : ProxyAttachment {
		scope = 2;
		inventorySlot = "WoodenCrate1";
		model = "Probus_fur\proxy\w_crate1.p3d";
	};
};

 

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
Sign in to follow this  

×
×
  • 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.