Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Patrick

[ZDoom] Crushing Actors?

Recommended Posts

to make enemy corpses gib-able, I'm having a new actor spawned on the death of an enemy. I seem to be having 2 problems with this.

First of all, the newly spawned corpse doesnt seem to want to be crushed by doors, etc. It has a crush state, and it worked when it was part of the monster.

Secondly, the newly spawned actor doesn't seem to want to take the old actor's translation (see the code below) does anyone have any ideas what I'm doing wrong?

Actor TheDude {
      States{
      Death:
             DUDE I 4 A_Gravity
	     DUDE J 4 A_Scream
	     DUDE K 4 A_NoBlocking
	     DUDE L 4
             TNT1 A 0 A_SpawnItemEx("Dead_Dude1", 0, 0, 0, 0, 0,0,SXF_TRANSFERTRANSLATION)
	     Stop
   }
}

//The Spawned dead guy
ACTOR Dead_Dude1{
   Health          10
   Radius           16
   Height           16
   Mass            10
     +CORPSE
     +DROPOFF
     -NOLIFTDROP
     -NOBLOCKMAP
     -Solid
     +FLOORCLIP
     +SHOOTABLE
   States {
   Spawn:
           DUDE M 1
           Loop
   Death:
           TNT1 A 0 A_SpawnItem("Gibs_Spawner")
           Stop
   Crush:
           TNT1 A 0 A_PlaySound ("misc/gibbed")
           TNT1 A 0 A_SpawnItem("Gibs_Spawner")
           Stop
   }
}

Share this post


Link to post

whohoo, I just found the hackiest solution to this problem ....

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×