ifvarn monstflags 0 // pulsing light
{
// hitag the var is the max brightness
// monstflags is the length of the cycle
// initshade is the time offset on the cycle
// tempe at a time = peak deviation from mid-intensity value * sin ( (frequency * time) + offset value )
setvarvar tempd timer
addvarvar tempd initshade
mulvarvar tempd monstflags // frequency * time
sin tempe tempd
mulvarvar tempe hitag
shiftvarr tempe 14
ifvarvarg tempe hitag setvarvar tempe hitag
setactor[THISACTOR].hitag tempe
}This is the new line of code I just added: ifvarvarg tempe hitag setvarvar tempe hitag
What it should do is prevent the intensity of the light from ever exceeding the original value. Let me know if that fixes it -- I haven't actually tested it.
Attached File(s)
-
DUKEPLUS.zip (85K)
Number of downloads: 224

Help
Duke4.net
DNF #1
Duke 3D #1









