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 }
}