7 field(Actor) int lightCooldown;
10 public void monsterThink (Actor me) {
12 if (!me) return; // it can die/fallout
14 if (--me.lightCooldown <= 0) {
16 me.attachedLightRGBX(200, 0, 0, 0);
19 for (Actor other = getNextTouchListItem; other; other = getNextTouchListItem) {
22 me.attachedLightRGBX(200, 0, 0, 48);
23 me.lightCooldown = 10;
24 if (!other.isPlayer) {
25 other.attLightXOfs = 0;
26 other.attLightYOfs = -12;
27 other.attachedLightRGBX(200, 100, 0, 32);
28 other.lightCooldown = 10;