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

    Create a theme in the appropriate section
    No need to write everything in the chat!
  • Sell or buy?

    Use the services of a guarantor
    We will make your transaction safe
  • Don't want a BAN?

    Please read our rules
    Don't disturb the order
  • Visit the market

    There you can sell or buy
    Everything related to game servers
  • 0
Sign in to follow this  
rss_adm

Вернуть работу ПНВ с DMR

Всем привет!

 

Помогите пожалуйста разобраться кто знает или делал.

 

Версия 1.0.6.2

 

За работу пнв с дмр отвечает файл DMR.hpp который лежит в dayz_code\Configs\CfgWeapons\Rifles\ (я взял свежий с гитхаба Epochmod c фиксом)

class DMR_DZ : DMR
{
	//model = "z\addons\dayz_communityweapons\dmr\dmr.p3d";
	displayName = $STR_DZ_WPN_DMR_NAME;
	
	//memoryPointCamera = "opticView";
	
	//magazines[] = {20Rnd_762x51_DMR};
	
	class Single : Single
	{
		//reloadTime = 0.6;
		//recoil = "recoil_single_primary_4outof10";
		//recoilProne = "recoil_single_primary_prone_4outof10";
	};
	
	//A2OA DMR does not allow NVG after 2018-04-05 CorePatch
	visionMode[] = {"Normal", "NVG"};
	
	class Attachments
	{
		Attachment_Ghillie = "DMR_Gh_DZ";
	};
};

class DMR_SKN : DMR_DZ {};

class DMR_Gh_DZ : DMR_DZ
{
	model = "z\addons\dayz_communityweapons\dmr\dmr_ghillie.p3d";
	picture = "\z\addons\dayz_communityweapons\dmr\data\w_dmr_ghillie_ca.paa";
	displayName = $STR_DZ_WPN_DMR_GH_NAME;
	
	memoryPointCamera = "opticView";
	
	class Attachments {};
	
	class ItemActions
	{
		class RemoveGhillie
		{
			text = $STR_DZ_ATT_GHIL_RMVE;
			script = "; ['Attachment_Ghillie',_id,'DMR_DZ'] call player_removeAttachment";
		};
	};
};

Я его положил в миссию, переопределил в файле CfgWeapons.hpp:

	class DMR : Rifle
	{
		class Single;
	};
	#include "Rifles\DMR.hpp"

Положил в миссию файл CfgWeapons.hpp и добавил на него путь в description.ext

#include "fixes\Configs\CfgWeapons\CfgWeapons.hpp"

 

Ошибок нет, но фикс не работает :(

Уже не знаю куда копать..

 

Edited by rss_adm (see edit history)

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts


  • 0

Нельзя переопределять некоторые конфиги, в т.ч. CfgWeapons.

Share this post


Link to post
Share on other sites
  • 0

в 1063 пофиксят дмр и конфиги калашей с несуществующим рпк патроном

Share this post


Link to post
Share on other sites
  • 0

rss_adm Делай свой аддон, и там меняй конфиг. В миссии нельзя переопределить,или создать новый конфиг для weapons\magazines и т.п.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...