Jump to content
Sign in to follow this  
Fortran

Javelin Hud Replacement ?

Recommended Posts

Just trying to do a simple replacement for the Javelin's hud to create something more realistic. Created a new Optic model and texture which all looks fine, then wrote a quick replacement config:

class CfgPatches
{
class javelin_hud
{
units[] = {};
weapons[] = {};
requiredAddons[] = {};
};
};

class CfgAddons
{
class PreloadAddons
{
 class javelin_hud
 {
  list[] = {"javelin_hud"};
 };
};
};

class cfgWeapons
{
class Default;
class LauncherCore;
class Launcher;
class Javelin: Launcher
{
 modelOptics = "\javelin_hud\javelin_optika.p3d";

};
};

But no-dice, in-game the javelin is still using the same TOW optika hud as normal. Can anybody see where im messing this up ?

Share this post


Link to post
Share on other sites

Do not use PreloadAddons please. It only messes up savegames..

Share this post


Link to post
Share on other sites

not sure if its an issue but maybe try change

modelOptics = "\javelin_hud\javelin_optika.p3d";

to

modelOptics = "\javelin_hud\javelin_optika";

Share this post


Link to post
Share on other sites
Do not use PreloadAddons please. It only messes up savegames..

Ah ok wasn't aware of that, only added it after having the problem described in the first post. Actually didn't know about that code before and found that same code inside the GDT Javelin addon you posted here (http://forums.bistudio.com/showthread.php?t=87226) so I figured it was worth a try, will remove it if it causes issues.

not sure if its an issue but maybe try change

modelOptics = "\javelin_hud\javelin_optika.p3d";

to

modelOptics = "\javelin_hud\javelin_optika";

Yeah tried that also, still no luck, still loading the original optics. Thanks for the input though, will keep trying until it works. If the config looks ok it must be some other issue, will have another look.

---------- Post added at 12:10 AM ---------- Previous post was Yesterday at 11:26 PM ----------

Ok well this is weird, even if I attempt to change the display name it makes no difference.

Final config:

class CfgPatches
{
class javelin_hud
{
units[] = {};
weapons[] = {};
requiredAddons[] = {};
};
};

class cfgWeapons
{
class Default;
class LauncherCore;
class Launcher;
class Javelin: Launcher
{
 displayName = "NEWJAV";
 modelOptics = "\javelin_hud\javelin_optika";
};
};

But no changes in-game. Have removed all addons and am just trying loading it with this single new one so no conflicts there, but nothing seems to be working with it...

Edited by Fortran

Share this post


Link to post
Share on other sites

Well you need to define requiredAddons dependency correctly.

Right now, your addon is loaded and overwritten by BI files.

So add all instances where the Javelin is modified by BI addons.

Share this post


Link to post
Share on other sites

Ah ok, still trying to get to grips with replacements, thank you very much Kju, works now! Can get on with getting it to function properly now with any luck.

jav2.jpg

Share this post


Link to post
Share on other sites

Sure :) Im actually in the process of trying to get it to function correctly (ie icons light up due to user actions). I will be releasing that for either the Bis Javelin or for my own Javelin model, including different attack modes, correct hand positions etc.

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  

×