HELP! Helmets dont fall off when a soldier is die!


-=Rus_Ivan=-
05-01-2007, 12:51 PM
Guys! Please help me with my problem!
I made 3D models of soldiers, but in game helmets do not fall off from a heads after a soldier is die.
QS script is from native valve model. I did not see there a line something like "attach helmet" or something.
Maybe anybod know how I can attach write string in QS for attach falling off helmet to a soldier?

Watevaman
05-01-2007, 02:52 PM
As far as I know, the default models have a helmet .smd separate from the main model's .smd with it's own physics hitbox and stuff. Did you do that during the modelling process or is it one big .smd?

Wile E Coyote
05-01-2007, 03:53 PM
No I've checked the files, he has a helmet model. It's a compile problem with the model itself, just as he stated. Even in the HLMV his model helmets do not dissapear like they are supposed to

http://www.wiledod.com/temp/ivan.gif

-=Rus_Ivan=-
05-01-2007, 08:25 PM
The model of a helmet which is carried by the soldier when he is alive, and model which rolls down from a head when it has died - is different models.
I told about helmet model from dead soldier. It placing in ...\dod\models\helmets, but in QS script i cant see string attaching this model.

Watchtower
05-13-2007, 05:36 AM
If your still wondering about this - Your problem lies in the code.

The helmet is always attached to the soldier's main body until the code calls for it to fall off in specific events, such as an entity like env_shake from a grenade explosion, which if the soldier is within a particular radius, the helmet is then called to fly off. I cant remember off hand if the helmet flies off from a headshot.

Regardless, helmet will always stay on unless those specific events take place, which is seperate from the whole modeling process, attachment and qstrings, etc. If this is a custom model replacement for DoD:Source, then theres nothing you can do about it and your custom model will adhere to the dod rules.

-=Rus_Ivan=-
05-15-2007, 06:10 AM
After the soldiers death, a helmet is slides and jumps by the ground, but the helmet which at the soldier on a head does not vanish. We can see two helmets in this scene, on the soldiers head, and on the ground!
When I began to work above this problem I have found out that actually in this situation SOURCE uses two models of a helmet: One is in .smd file american_helmet_reference.smd which lays in .mdl file with model of the soldier, and the second is in a folder \models\helmet.
How It works: while the soldier is alive, his wearing a helmet from a file american_helmet_reference.smd. When the soldier to be killed - works the engine trigger, the helmet from american_helmet_reference.smd is vanishes and the helmet from a folder \models\helmet is appear and start to slides by the ground.
As in my case, the helmet is sliding by the ground and during same time other helmet was on a head (!) and I don`t know how I can correct this problem.
I have decided to hide a helmet which slide by the ground. For this purpose I decompil a helmet, remove all polygons except one, and reduced size of this single polygon down to a limit. Therefore it became absolutely invisible. Then I put a new helmet file in a folder \models\helmet. Except that I have replaced a sound of a sliding helmet with silence.
Now the helmet which should sliding by the ground is not visible and looks like that it is not present.

So, my problem that when there is a second helmet a sliding by the ground, first helmet (from a head of the soldier) should disappear, but it does not disappear. :(

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.