greetings!
today, i’m going to show you a neat little trick that i discovered which helps you to get helmetless soldiers in your mods ( if players wants )
mostly useful if you want to get rid of your helmet and change it with something else. or, get rid of the helmet if you chose of doing so, or even use hairs instead ( due to the helmets hiding hairs )
so,
here is how you do it.
Disclaimer
( Note, you will need two different type of diffferent category. because devs made two types of headgears: skined_helmet
, and head
there are no differences. but in many occasions, if you have one of those two, and you try to wear another different type, you will end up with two helmets glitched to your head. which it’s not what you want. doesn’t look good so with this method, you can get rid of all helmets )
therefore, for the sake of example, i’ll choose any balaclava helmet ( usually those goes in the skined_helmet category ) and any other german helmet.
therefore, the two candidates for this example will be:
helmet_01_ger_cloth_b_winter_item ( on the left )
and
helmet_m355_medic_white_01_ger_summer_item ( on the right )
if you are not sure the cosmetic you are looking at in which category is in, check this property:
go to the option Item_equipToSlot
and click it:
it will tell you where it goes
( don’t worry about the faction, they will work independently from it. )
and then, all you have to do, is to paste the following line:
soldier_base_model_char
into animchar_res of both of the helmets.
and from there, you will be good to go.
( i reccomend to copy and paste multipletime the helmet on top of each other. so that there will be enough helmets for players as it will be an actual entity with just different skin. and eventually avoid running out of those )
The only issue
the only issue, which if you save and restart, at first it might seems they might have disappeared, but in reality, they did not. they just did what we told them to do. to become invisible.
and their hitboxes become dots
therefore, make sure to put them somewhere where you will be able to recognize them. for example, in my case, i use the scarecrow hands to understand and know where i left them. as when i will be in the game, there will be no white pixels appearing.
and voilà!
here is a little demonstration to show that it works:
i’ll take an american soldier, and give him no helmets, but some fancy hairs.
( ignore the error, it’s fine )
Considerations
-
i’m sure there’s a way with entities, but it wouldn’t work in multi ( yet ) and i don’t know how entities works anyway.
so if you are looking for those, you’re talking to the wrong person. -
if you die, the soldier will inevitable lose the helmet. hence, it would be best if you place more of these invisible helmets. ( usually around 50 should do. no fps loss, and shouldn’t be too heavy in the code )
-
there are probably some other invisible entities that you could use instead of
soldier_base_model_char
, though i havent found them ( nor looked that deeply due to those working as intended for the moment for the context ) -
perhaps, they will add hair customization with the merge, but i have no way to know that. i doubt customization will be top priority for devs in the merge.
-
technically, i somewhat lied saying that the faction doesn’t really matter. it doesn’t, but if you have the same type of helmet, the game might prevent you from wearing a helmet. as it recognizes that you are already wearing that type of helmet despite having a different skin. for example, the default helmet for the germans will not allow you to wear the german medic reskinned one as shown above. therefore, i suggest to use a field cap instead