Dead Bodies: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
No edit summary
(+for AIs without ragdoll models)
Line 5: Line 5:


Though, you can move it around in-game (use cvar g_dragEntity 1), and then use the saveRagdolls console command to write the ragdoll position out to the map file.
Though, you can move it around in-game (use cvar g_dragEntity 1), and then use the saveRagdolls console command to write the ragdoll position out to the map file.
If a ragdoll doesn't exist (for example, animals), the solution is to kill the AI at map start.
# Create the appropriate entity
# Target that entity from any worldspawn brush or patch (select worldspawn, then entity, control k...now all worldspawn show the entity as target)
# Setup a "Trigger" response via the entity Stim/Response panel
# Add a "Response Effect" of "Kill", selecting the entity name as the target
Note the entity will go through the death anim, so don't have the player start be in earshot at start.


[[Category:Editing]]
[[Category:Editing]]

Revision as of 22:55, 15 November 2013

To create a dead body in your mission:

Create entity > darkmod > ragdoll then select the one you want. Place it approximately where you want it to fall. You can't pose it like in Thief as far as I know so it falls like a ragdoll.

Though, you can move it around in-game (use cvar g_dragEntity 1), and then use the saveRagdolls console command to write the ragdoll position out to the map file.

If a ragdoll doesn't exist (for example, animals), the solution is to kill the AI at map start.

  1. Create the appropriate entity
  2. Target that entity from any worldspawn brush or patch (select worldspawn, then entity, control k...now all worldspawn show the entity as target)
  3. Setup a "Trigger" response via the entity Stim/Response panel
  4. Add a "Response Effect" of "Kill", selecting the entity name as the target

Note the entity will go through the death anim, so don't have the player start be in earshot at start.