Page 1 of 1

LIGHTS modifications help

Posted: Wed Jan 17, 2007 12:48
by Deamonic
I've recently been doing some DECORATE (FINALLY found out how to use it) work for use in a levelset I'm making for GZDoom, and I've been having some problems with the lights.
I want a barrel that emits a light before it has been shot, and an even larger light after its been shot. So far I've been able to get it to light up AFTER being shot (Thats what I did first) but now I've noticed that its rather hard to see before you shoot it, and want a beacon so that its easier to see in dark areas (So you can light them up)

This is the code I've got in LIGHTS for the barrel:

Code: Select all

// Burning barrel
flickerlight2 FIREBARREL
{
    color 1.0 0.9 0.0
    size 64
    secondarySize 72
    interval 0.1
    offset 0 32 0
}

// Shootable barrel beacon
pointlight BARRELBEACON
{
    color 1.0 1.0 0.8
    size 16
    offset 0 44 0
}

object BurningBarrel
{
    frame FCAN { light FIREBARREL }
}

object shootbarrel
{
    frame FCAN { light FIREBARREL }
    frame BALA { light BARRELBEACON }
}
I'm not exactly sure whats wrong; Is it that LIGHTS wont let me define two lights on one object, or that I have to define them some other way.

Posted: Wed Jan 17, 2007 14:37
by Graf Zahl
without the shootbarrel it's hard to tell.

Posted: Sat Jan 20, 2007 13:29
by Deamonic
Shootbarrel decorate code is:

Code: Select all

actor shootbarrel 20247 
{      
     radius 16 
     height 51 
     painchance 256 
     +SHOOTABLE 
     +SOLID 
     +NOBLOOD 
     +NODAMAGE 
     +NODAMAGETHRUST 
     states 
     { 
     spawn: 
          BALA A 1
          loop 
     pain: 
          FCAN ABC 4 bright 
          loop 
     } 
}


Posted: Sat Jan 20, 2007 14:02
by Graf Zahl
Hm. That should work. I'd have to check the code to see what's wrong.

Posted: Sat Jan 20, 2007 23:40
by Vaecrius
Doesn't flickerlight take chance, not interval?

Posted: Thu Jan 25, 2007 3:03
by Deamonic
Is there any way I could make it spawn an object with a light when it spawns?
The barrel light idea is looking pretty bleak right now... I'll play with it, see if I can do anything.