Simon Volpert zdoomrl / master nukebarrel / Decorate.nukebarrel
master

Tree @master (Download .tar.gz)

Decorate.nukebarrel @masterraw · history · blame

// ZDoomRL - Gameplay Modifications for DoomRL Arsenal
// Author: Simon Volpert <simon@simonvolpert.com>
// Project page: https://simonvolpert.com/zdoomrl/
// This program is free software, released under the MIT license. See the LICENSE file for more information

// Nuclear barrel map marker infrastructure
ACTOR ZSNuclearBarrelMapMarker : MapMarker {
	States {
		Spawn:
			ZSNU K -1
			Stop
	}
}

ACTOR ZSNuclearBarrelBeacon : RLPermanentInventory {}

ACTOR ZSNuclearBarrelDetectorPing : CustomInventory {
	-CountItem
	+Inventory.AlwaysPickup
	+Inventory.UnDroppable
	+Inventory.UnTossable
	+Inventory.IgnoreSkill
	Inventory.MaxAmount 1
	Inventory.PickupMessage ""
	Inventory.PickupSound ""
	States {
		Spawn:
			TNT1 A 1
			Stop
		Pickup:
			TNT1 A 0 ACS_NamedExecuteAlways("PlaceDangerSign", 0)
			Stop
	}
}

ACTOR ZSNuclearBarrelDetector : CustomInventory {
	-CountItem
	+Inventory.AlwaysPickup
	+Inventory.UnDroppable
	+Inventory.UnTossable
	+Inventory.IgnoreSkill
	Inventory.MaxAmount 1
	Inventory.PickupMessage ""
	Inventory.PickupSound ""
	States {
		Spawn:
			TNT1 A 1
			Stop
		Pickup:
			TNT1 A 0 A_RadiusGive("ZSNuclearBarrelDetectorPing", 2048, RGF_OBJECTS | RGF_NOSIGHT, 1, "", "RLNuclearBarrel")
			TNT1 A 2
			Stop
	}
}