Author Topic: Ragdolls do not project shadows  (Read 252 times)

0 Members and 1 Guest are viewing this topic.

EoceneMiacid

  • Full Member
  • ***
  • Posts: 243
  • Karma: +7/-16
    • View Profile
Ragdolls do not project shadows
« on: April 05, 2019, 05:25:38 AM »
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

  • Happy Happy Joy Joy
  • Administrator
  • Hero Member
  • *****
  • Posts: 997
  • Karma: +46/-4
  • Semi-Newbie.
    • View Profile
    • EarthQuake
Re: Ragdolls do not project shadows
« Reply #1 on: April 06, 2019, 03:35:32 PM »
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.
« Last Edit: April 06, 2019, 03:37:06 PM by The Happy Friar »

EoceneMiacid

  • Full Member
  • ***
  • Posts: 243
  • Karma: +7/-16
    • View Profile
Re: Ragdolls do not project shadows
« Reply #2 on: April 07, 2019, 04:28:50 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.

« Last Edit: April 14, 2019, 02:30:24 AM by EoceneMiacid »

EoceneMiacid

  • Full Member
  • ***
  • Posts: 243
  • Karma: +7/-16
    • View Profile
Re: Ragdolls do not project shadows
« Reply #3 on: April 16, 2019, 01:27:18 PM »
I noticed that this related to the scriptobject the NPC uses.

Investigation ongoing.

EoceneMiacid

  • Full Member
  • ***
  • Posts: 243
  • Karma: +7/-16
    • View Profile
Re: Ragdolls do not project shadows
« Reply #4 on: April 16, 2019, 03:18:15 PM »
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.