News:

One Minute Game Review by The Happy Friar: https://ugetube.com/@OneMinteGameReviews
Also on Rumble: https://rumble.com/c/c-1115371

idTech 4 (aka Doom 3 tech) Discord Server! https://discord.gg/9wtCGHa

Main Menu

Ragdolls do not project shadows

Started by EoceneMiacid, April 05, 2019, 05:25:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

EoceneMiacid

Whenever a monster or NPC is killed and transitions into a ragdoll, it stops projecting a shadow.
Some NPC's do not exhibit this, interestingly. I'm looking at the ragdoll and material definitions but I can't figure out what causes this. Can anyone help?

The Happy Friar

#1
never noticed, you are correct.
My first thought is it's the burnaway skin.  Game doesn't do shadows with transparent materials.
EDIT: second possability, monster uses a shadow mesh & it's not in ragdolls.
EDIT2: I bet that's it as non burning ragdolls have shadows.

EoceneMiacid

#2
Quote from: The Happy Friar on April 06, 2019, 03:35:32 PM
never noticed, you are correct.

Ah, so it isn't because of my hacking then. Good to know.

Looking at the ragdolls, it doesn't appear to matter whether they are given a model or skin to work with, they will just use the model from the entity that calls it. In Doom 3, several entities (with different models) share the same ragdoll.

As for burnaway skins, I completely removed those. I like my bodies to stay put. Maybe this has some side effect.


EoceneMiacid

I noticed that this related to the scriptobject the NPC uses.

Investigation ongoing.

EoceneMiacid

Found it :)

the function monster_base::state_Killed() was calling a bunch of functions related to burning away the models, which I have disabled entirely.

Now all of the models stay forever and the shadows are correct too.