PDA

View Full Version : Body Armor



The Soldier
24-12-2011, 21:28
OK, two problems here:
I made Juggernaut armor for my mod. I added it to the game using the body armor file that the Russians use for their "shock troopers". Turns out, the Juggernaut armor doesn't work at all. Bullets pass through as if it were nothing. The same goes for the Russian body armor, no effect.
I can't get the health up from 100%. I tried modifying the health in the breed file for the Juggernaut, but it never works. Juggs can tale 3 SMG rounds without dying (with and without his Juggernaut armor) while the Rangers can take 6-7 SMG rounds before dying. Any solutions?

Dilust
27-12-2011, 13:28
Have you created the relative file in resource\set\stuff\body ?

The Soldier
27-12-2011, 18:40
Have you created the relative file in resource\set\stuff\body ?
Yes, I have. Named the file the same, changed th entity, etc. I think the devs may have gotten it wrong.

Trotskygrad
04-01-2012, 17:27
OK, two problems here:
I made Juggernaut armor for my mod. I added it to the game using the body armor file that the Russians use for their "shock troopers". Turns out, the Juggernaut armor doesn't work at all. Bullets pass through as if it were nothing. The same goes for the Russian body armor, no effect.
I can't get the health up from 100%. I tried modifying the health in the breed file for the Juggernaut, but it never works. Juggs can tale 3 SMG rounds without dying (with and without his Juggernaut armor) while the Rangers can take 6-7 SMG rounds before dying. Any solutions?

well, do you have an actual "model" defined for the body armor?

it seems like the actual "model" shown on the player needs to be able to deflect the bullets, for example, the panzerschreck has a gun shield that functionally deflects bullets.

I'd assume it has to be same for "body armor" items.

CTS
10-01-2012, 10:31
Make sure the new model and all the corresponding files are in the right place:
\resource\entity\inventory\-equipment\body\

It is critical that all the files are in place, and all the references to the new model/texture are edited as they should. ( as in body_armor.def body_armor.mdl body_armor.mtl )

----------------------------------------

Make sure you have the new type of armor added to a specific type of soldier, like here:
\resource\set\breed\mp\rus\flamer3.set

{armors
{head fieldcap1_rus}
{body "body_armor"}
}

Change body_armor to whatever the new model is called.

----------------------------------------

Check out:
\resource\properties\human.ext

{armor "body"
{mask "body"}
{volumes "body" "foot1l" "foot1r" "foot2l" "foot2r"}
{bone "IK_UpDown"}
{pierceAbsorb 32}
{HeatDamping 0.6}
}

That is where you specify how much damage will the body armor actually absorb.

----------------------------------------

This is all theory, just few hints for you to pay attention to :) I have not tested it personally, but I hope it might help. If I made any mistakes, or someone has something to add - please correct me.

Good luck!

The Soldier
16-01-2012, 19:33
well, do you have an actual "model" defined for the body armor?

it seems like the actual "model" shown on the player needs to be able to deflect the bullets, for example, the panzerschreck has a gun shield that functionally deflects bullets.

I'd assume it has to be same for "body armor" items.
Yes, I do. I made a .vol for it so it would wrap around the whole body. Still nothing.



Make sure the new model and all the corresponding files are in the right place:
\resource\entity\inventory\-equipment\body\

It is critical that all the files are in place, and all the references to the new model/texture are edited as they should. ( as in body_armor.def body_armor.mdl body_armor.mtl )

----------------------------------------

Make sure you have the new type of armor added to a specific type of soldier, like here:
\resource\set\breed\mp\rus\flamer3.set

{armors
{head fieldcap1_rus}
{body "body_armor"}
}

Change body_armor to whatever the new model is called.

----------------------------------------

Check out:
\resource\properties\human.ext

{armor "body"
{mask "body"}
{volumes "body" "foot1l" "foot1r" "foot2l" "foot2r"}
{bone "IK_UpDown"}
{pierceAbsorb 32}
{HeatDamping 0.6}
}

That is where you specify how much damage will the body armor actually absorb.

----------------------------------------

This is all theory, just few hints for you to pay attention to :) I have not tested it personally, but I hope it might help. If I made any mistakes, or someone has something to add - please correct me.

Good luck!

I have no problem with the breed, I found that out pretty early on. Yes, the armor is in the right place as well. Files are renamed correectly, blah. I think the place where the body armor absorbs is in it's .def file:

{game_entity
(include "/properties/stuff_small.ext")
{extender "stuff"
{item "juggernaut_armor"}
}
{volume "armor"
{able {visible 1}}
{thickness 20}
}
{Extension "juggernaut_armor.mdl"}
}

I made it thicker than a rifle could go through, just to test. Nothing.