Jump to content
Sign in to follow this  
abs

Disable Goggles/Glasses In Addon Units

Recommended Posts

Hi,

So I'm retexturing some units, and I was wondering if it was somehow possible to disable the glasses/goggles from appearing. As of right now, I don't think they quite "fit".

1dsW5No.jpg

Thanks,

Abs

Share this post


Link to post
Share on other sites

I raised an issue on the feedback tracker about how glasses are handled: http://feedback.arma3.com/view.php?id=12017

I need to clarify though, are you talking about when when you specify glasses in a unit class linkeditems or when you don't?

To explain what I mean, if you dont specify anything then the game either uses a users profile selection or selects one for you. If you specify something then only that is used.

Share this post


Link to post
Share on other sites

I don't want them to appear on my units at all, by default. For example, right now the units have nothing in their config for linked items:

weapons[] = {};
respawnWeapons[] = {};
Items[] = {};
RespawnItems[] = {};
magazines[] = {};
respawnMagazines[] = {};
linkedItems[] = {};
respawnLinkedItems[] = {};

In this case, it differs from your bug.

Abs

Share this post


Link to post
Share on other sites
I don't want them to appear on my units at all, by default. For example, right now the units have nothing in their config for linked items:

weapons[] = {};
respawnWeapons[] = {};
Items[] = {};
RespawnItems[] = {};
magazines[] = {};
respawnMagazines[] = {};
linkedItems[] = {};
respawnLinkedItems[] = {};

In this case, it differs from your bug.

Abs

what you are trying to achieve is different but the issue I raised is relevant in terms of how the game handles priorities for glasses.

Anyway, as far as im aware there is no way of flagging that you want no glasses at all.

A workaround that might achieve what you want is to put an init eventhandler in the units class which removes any glasses. It would work the same as if you put it directly in the init of a unit in the editor i.e "removeGoggles this"

Edited by pomigit

Share this post


Link to post
Share on other sites

Try adding this to a units class

identityTypes[] = {"NoGlasses",0];

Share this post


Link to post
Share on other sites
Try adding this to a units class

identityTypes[] = {"NoGlasses",0];

Thanks for your replies, Pomigit and Surpher. Surpher, I already have this in my config:

identityTypes[] = {"LanguageENG_F", "Head_NATO", "G_NATO_default"};

How should I integrate yours into this? (Sorry...kinda noobish at configs, still.)

Thanks again!

Abs

Share this post


Link to post
Share on other sites

Yes integrate them, I think using "NoGlasses" alone cause units to have the same face.

identityTypes[] = {"NoGlasses","LanguageENG_F","Head_NATO","G_NATO_default"};

If you don't want your units to use glasses at all you can add this to your unit class.

glassesEnabled = 0;

Share this post


Link to post
Share on other sites

Awesome! Thanks man...I'm going to try this in a couple of hours. On the way to work right now. Will report back.

Abs

Share this post


Link to post
Share on other sites
Yes integrate them, I think using "NoGlasses" alone cause units to have the same face.

identityTypes[] = {"NoGlasses","LanguageENG_F","Head_NATO","G_NATO_default"};

Wouldn't he want to get rid of the G_NATO_default identityType from this array, since this is the one that assigns the glasses?

Share this post


Link to post
Share on other sites
Wouldn't he want to get rid of the G_NATO_default identityType from this array, since this is the one that assigns the glasses?

Just tried it, and it turns out the answer is that I don't have to get rid of the G_NATO_default value. It worked!

Thanks again, surpher! You're a lifesaver. :)

Abs

Share this post


Link to post
Share on other sites
Wouldn't he want to get rid of the G_NATO_default identityType from this array, since this is the one that assigns the glasses?

Yes this also seems to works.

identityTypes[] = {"LanguageENG_F","Head_NATO"};

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  

×