
Nothing major or game breaking though.
Code: Select all
States {
Spawn:
ROCK A -1;
Stop;
Use:
TNT1 A 1 { invoker.ToggleActive(); }
loop;
}
virtual void ToggleActive() {
if(Active) { Active = false; owner.A_StartSound("DDZ_Flashlight_Off", CHAN_AUTO, 0, 0.5); }
else { Active = true; owner.A_StartSound("DDZ_Flashlight_Off", CHAN_AUTO, 0, 0.5); }
}
Code: Select all
TNT1 A 1 { invoker.ToggleActive(); }
Code: Select all
TNT1 A 1 { invoker.ToggleActive(); A_AlertMonsters(512);}
Code: Select all
override void DoEffect() {
super.DoEffect();
Quality = CVar.GetCvar("ddz_fl_quality").GetInt();
Type = CVar.GetCvar("ddz_fl_type").GetInt();
Mount = CVar.GetCvar("ddz_fl_pos").GetInt();
if(Active) {
owner.A_AlertMonsters(512);
Code: Select all
if(Active) {
if (level.time % 35 == 0) { owner.A_AlertMonsters(512); }
Code: Select all
virtual void ToggleActive() {
if(Active) { Active = false; owner.A_StartSound("DDZ_Flashlight_Off", CHAN_AUTO, 0, 0.5); }
else { Active = true; owner.A_StartSound("DDZ_Flashlight_Off", CHAN_AUTO, 0, 0.5); }