[r2256] Death States and Decals

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: [r2256] Death States and Decals

Re: [r2256] Death States and Decals

by randi » Sun Apr 04, 2010 8:35 pm

When you make the death state instant, that means it's removed before the game has a chance to do any further processing with it after calling SetState.

Re: [r2256] Death States and Decals

by NeuralStunner » Sun Apr 04, 2010 6:15 pm

I know, I was mostly joking.

Re: [r2256] Death States and Decals

by Demolisher » Sun Apr 04, 2010 6:12 pm

NeuralStunner wrote:I think it also affects sounds. (Projectiles with a 0-tic Death state don't play a DeathSound.)

The best approach seems to be "don't do that". :P "TNT1 A 1" does the job well enough.
It seems like a "don't do that", but it could be unintended nonetheless, and if it doesn't get changed, (don't do that) it should be on the wiki, so people aren't baffled why it doesn't work.

Re: [r2256] Death States and Decals

by NeuralStunner » Sun Apr 04, 2010 6:05 pm

I think it also affects sounds. (Projectiles with a 0-tic Death state don't play a DeathSound.)

The best approach seems to be "don't do that". :P "TNT1 A 1" does the job well enough.

[r2256] Death States and Decals

by Demolisher » Sun Apr 04, 2010 5:43 pm

If you have a 0 tic death state, no decals are spawned.

Code: Select all

Actor "WeaponProj_SmallBullet" : "FastProjectile"
{
   Height 4
   Radius 2
   Speed 64
   Damage (ACS_ExecuteWithResult(800, 3))
   DamageType "None"
   Decal "Bulletchip"
   +BloodSplatter
   States
   {
   Spawn:
      BULL AA 0 A_Jump(256, "Normal")
   Normal:
      BULL A -1 Bright
      Stop
   Tracer:
      BULL B -1 Bright
      Stop
   Death:
      TNT1 A 0 A_SpawnItem("BulletPuff")
      Stop
   XDeath:
      TNT1 A 0
      Stop
   }
}
This example has no decal, but if I change

Code: Select all

Death:
      TNT1 A 0 A_SpawnItem("BulletPuff")
      Stop
To

Code: Select all

Death:
      TNT1 A 1 A_SpawnItem("BulletPuff")
      Stop
It works.

Top