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

это на уровне мода поетому и не работает и работать не будет

Share this post


Link to post
Share on other sites







  • 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

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.