Sign in to follow this  
Followers 0
CameronMcDonald

Custom nvg proxy

7 posts in this topic

OK, putting it as simply as I can:

I want to put new NVGs on my units without resorting to scripts. This can be done by changing the paths of the NVG proxy of a unit; and has been done before (for example, the spy from Queen's Gambit has a custom NVG model).

However... it's not working for me. Whenever I change the path of the proxy, and I know the path is correct, because the custom NVG model appears in the correct place, the model does not act like NVGs, that is, it never goes away.

Things that just don't add up:

a) The path of the BIS NVG proxy is \ca\weapons\NVG_proxy. Such a directory doesn't exist. Assuming the \ca\ is somehow a pseudonym for the ArmA addons folder, I tried using \ca\myaddonscustomNVGpath, but still got farked up NVGs.

b) There doesn't seem to be a single entry in all of the standard models' code, hex edited or otherwise, or config that points towards the standard BIS NVG model's path, but it seems to be the only thing that works!

Please, I REALLY need help with this one - I don't want to have to weigh my units down with scripts again. Lend a brother a hand. sad_o.gif

Share this post


Link to post
Share on other sites

In your soldier config, create a custom proxy:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class cfgNonAIVehicles

       {

       //Inherit the base class

       class ProxyGoggles;

       class ProxyMyNVGoggles : ProxyGoggles

               {

               model="\MyAddon\MyNVGoggles.p3d";

               };

       };

In your *.p3d create a proxy and point it to the one in your config proxy:MyNVGoggles. After that the game engine will handle the rest.

Share this post


Link to post
Share on other sites

Also, the path ca\weapons\NVG_proxy.p3d does exist.

It points to the weapons.pbo inside which is the NVG_proxy.p3d model and presumable its textures.

Planck

Share this post


Link to post
Share on other sites
...(for example, the spy from Queen's Gambit has a custom NVG model)

He does?

This was news to me so I loaded up ArmA only to find that the spy in my install has just come back from the future where he's had 10th generation NV retinal implants done

10thgennvgsku9.jpg

Sorry for bumping this solved thread I just feel a bit ripped off, however I don't consider it worth a new thread in troubleshooting.

Share this post


Link to post
Share on other sites

I am having the same problem and the solution is not working for me in ArmA2 CO. I made a model of PVS-14 and made a proxy with the path to the model I also added this in my config:

class CfgNonAIVehicles {
class ProxyGoggles;	// External class reference
class ProxyNVG_Proxy;
class pvs14_proxy : ProxyNVG_Proxy {
 model = "\mar_inf_marines\data\msot\gear\pvs_14\pvs14_proxy.p3d";
};
};

class CfgWeapons {
class Default;
class Binocular;
class NVGoggles;

class PVS14: NVGoggles {
 		displayName = "PVS-14";
 		nameSound = "nvgoggles";
 		simulation = "NVGoggles";
 		showEmpty = 0;
 		muzzlePos = "usti hlavne";
 		muzzleEnd = "konec hlavne";
 		value = 5;
 		opticsZoomMin = 1.0;
 		opticsZoomMax = 1.0;
 		modelOptics = "\ca\weapons\optika_night";
 		model = "\mar_inf_marines\data\msot\gear\pvs_14\pvs14_proxy";
 		picture = "\mar_inf_marines\data\msot\gear\pvs_14\mar_pvs14_ca.paa";

 		class Library  {
  			libTextDesc="Night vision goggles are intended for observation and terrain orientation at night. They work by intensifying the already available light in conditions of low illumination using, for instance, light from the moon or the stars.";
      };
 			descriptionShort = "Night Vision Goggles";
	};
};

The proxy is not acting like the BI NVG proxy, as it shows all the time (even during the day) Any suggestions???

Edited by Meatball0311

Share this post


Link to post
Share on other sites

class cfgNonAIVehicles {
class ProxyGoggles;	// External class reference

class ProxyANPVS14 : ProxyGoggles {
	scope = public;
	model = "\DDAM_Basis\ANPVS14.p3d";
};

class ProxyANPVS7 : ProxyGoggles {
	scope = public;
	model = "\DDAM_Basis\ANPVS7.p3d";
};
};

in the proxy you need to link / path to the new NVG

(double click on the proxy and enter ei \ddam_basis\anpvs14 )

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
Followers 0