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
222Orbita

Серверостроение – ProxyAttachment

Доброго времени суток! Подскажите, пожалуйста, как через фикс можно отключить прокси с объекта, если нет возможности убрать его напрямую из мода? Вот пример: есть авто с прописанным прокси на Shoulder и Melee, мне нужно убрать прокси, что бы вещи не отображались на авто.
 

class CfgNonAIVehicles
{
	class ProxyAttachment;
	class ProxyVehiclePart:ProxyAttachment{};
	class Proxyshovel:ProxyVehiclePart
	{
		model="\dz\gear\tools\shovel.p3d";
		inventorySlot[]=
		{
			"Shoulder",
			"Melee"
		};
	};
	class Proxywoodaxe:ProxyVehiclePart
	{
		model="\dz\weapons\melee\blade\woodaxe.p3d";
		inventorySlot[]=
		{
			"Shoulder",
			"Melee"
		};
	};
};

Как это можно убрать через фикс? Пытался оставить строки model и inventorySlot с пустыми кавычками, не срабатывает. Предметы также отображаются. Спасибо!

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Попробуйте создать "фейковые" прокси с пустыми .p3d моделями и переопределить их. 

1. Создайте пустую .p3d модель (например empty_proxy.p3d) 

2. Используйте ее вместо стандартной:

class CfgNonAIVehicles
{
	class ProxyAttachment;
	class ProxyVehiclePart: ProxyAttachment {};

	class Proxyshovel: ProxyVehiclePart
	{
		model = "\путь до пустой модели\empty_proxy.p3d";
		inventorySlot[] = {};
	};
	class Proxywoodaxe: ProxyVehiclePart
	{
		model = "\путь до пустой модели\empty_proxy.p3d";
		inventorySlot[] = {};
	};
};

 

Share this post


Link to post
Share on other sites



  • 0

@alero сделал немного иначе. Переопределил слоты на новые, переписал их в аттачментах и переписал их на прокси. Тоже сработало. Спасибо

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.