id Tech Forums

id Tech 4 (Doom3/Prey/Q4) => id Tech 4 Scripting => Topic started by: bitterman on October 10, 2017, 03:06:22 AM

Title: How to activate ragdoll after spawning?
Post by: bitterman 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.
Title: Re: How to activate ragdoll after spawning?
Post by: Snehk on October 10, 2017, 04:06:48 AM
Maybe try to spawn it using testModel command?
Title: Re: How to activate ragdoll after spawning?
Post by: The Happy Friar 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.
Title: Re: How to activate ragdoll after spawning?
Post by: bitterman on October 11, 2017, 12:36:39 PM
Thanks guys. I try it.