Author Topic: How to activate ragdoll after spawning?  (Read 50 times)

0 Members and 1 Guest are viewing this topic.

bitterman

  • Sr. Member
  • ****
  • Posts: 250
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
How to activate ragdoll after spawning?
« on: October 10, 2017, 03:06:22 AM »
When I spawn char_campbell_bfg.af then it starts as "live" npc. To start this ragdoll I must to kill npc.
Is there a way to spawn "already dead" ragdoll (I mean key/val in .def or script command)?
(it spawns via dropitemAF() )

Thanks.
« Last Edit: October 10, 2017, 03:14:29 AM by bitterman »

Snehk

  • Newbie
  • *
  • Posts: 32
  • Karma: +4/-0
  • Doom Newbie
    • View Profile
Re: How to activate ragdoll after spawning?
« Reply #1 on: October 10, 2017, 04:06:48 AM »
Maybe try to spawn it using testModel command?

The Happy Friar

  • Happy Happy Joy Joy
  • Administrator
  • Hero Member
  • *****
  • Posts: 852
  • Karma: +41/-4
  • Semi-Newbie.
    • View Profile
    • EarthQuake
Re: How to activate ragdoll after spawning?
« Reply #2 on: October 10, 2017, 06:59:17 AM »
There's no default ragdoll entity so you can't.  His model doesn't use the same skeleton as other characters in the game (the model with the BFG anyway) so you can't replace another character's model with his in the already defined "env" ragdolls.
you can:
a) make a new entity
b) spawn the live guy & have a script/trigger to kill him.

Those should work.

bitterman

  • Sr. Member
  • ****
  • Posts: 250
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Re: How to activate ragdoll after spawning?
« Reply #3 on: October 11, 2017, 12:36:39 PM »
Thanks guys. I try it.