Page 1 of 1

[fixed]+noalert problem with 1.0.00

Posted: Wed Mar 01, 2006 1:54
by Enjay
The following flashlight weapon does not alert monsters in 2.0.98 and earlier, but does in 1.0.00.

Code: Select all

ACTOR DoomFlashLightBeam
{
	Speed 100
	Mass 5
	+NOGRAVITY
	+NOCLIP
	+NOBLOCKMAP
	+DONTSPLASH
	Renderstyle NONE
     States 
     { 
     Spawn: 
        NONE AABBCCDDEE 1 
        Stop
	} 
}

ACTOR DoomFlashLight : Weapon 21046
{
Scale 0.2
+NOALERT
+DONTBOB
Weapon.SelectionOrder 4000
Inventory.PickupSound "misc/i_pkup" 
Inventory.PickupMessage "You got the Flashlight"
States 
{ 
Spawn: 
   NJTU A -1 
   LOOP 
Ready: 
   NJT1 A 1 A_WeaponReady 
   Goto Ready
Deselect: 
   NJT1 A 1 A_Lower 
   Loop
Select: 
   NJT1 A 1 A_Raise 
   Loop
Fire: 
   NJT1 A 0 A_PlaySound("DoomFlashlighton")
   NJT1 A 1 A_FireCustomMissile("DoomFlashLightBeam",0,0,0,0)
   goto Hold
Hold:
   NJT1 A 1 A_FireCustomMissile("DoomFlashLightBeam",0,0,0,0)
   NJT1 A 0 A_Refire
   NJT1 A 1 A_PlaySound("DoomFlashlightoff")
   Goto Ready
 } 
}

Posted: Wed Mar 01, 2006 10:38
by Graf Zahl
Yet another 2.0.99 bug...