Footbridge w/no hint for axis to destroy


(ZoSo) #1

OK, I built a footbridge for the Allies to build. Everything works except for one thing. When an Axis person walks up to it, after it’s built, it doesn’t show the flashing satchel charge, but it shows up on Axis command map.
Here’s what I have:

–Flag–
targetname - bridge_materials
frames - 190
modelscale - 0.4
skin - models/mapobjects/cmarker/allied_cflag.skin
model - models/mapobjects/cmarker/cmarker_flag.md3
spawnflags - 2
classname - misc_gamemodel

–Crates–
targetname - bridge_materials
skin - models/mapobjects/cmarker/allied_crates.skin
model - models/mapobjects/cmarker/cmarker_crates.md3
classname - misc_gamemodel

–Clip Brush around crates–
scriptname - woodbridge
targetname - bridge_materials
spawnflags - 2
classname - script_mover

–Footbridge–
scriptname - woodbridge
spawnflags - 8
targetname - woodbridge
classname - func_constructible

–Trigger Brush–
classname - trigger_objective_info
track - the Wooden Bridge
targetname - woodbridge_construction
scriptname - woodbridge
shortname - Wooden Foot Bridge
spawnflags - 2
objflag - 5

I also have a Origin Brush surrounding the crates and flag, which gives me an error during compiling:
Entity 0, Brush 186: origin brushes not allowed in world

Here’s the script(it’s based on the one from FuelDump):

woodbridge
{
	spawn
	{
		wait 200
		constructible_class 2
		setstate woodbridge invisible
		setstate bridge_materials default
		setstate woodbridge invisible
	}

	buildstart final
	{
		setstate woodbridge underconstruction
	}

	built final
	{
		setstate woodbridge default
		setstate bridge_materials invisible

		// Some kind of UI pop-up to alert players
		wm_announce	"Allied team has constructed the Wooden Foot Bridge!"
	}

	decayed final
	{
		setstate woodbridge invisible
		setstate bridge_materials default
	}

	death
	{
		setstate woodbridge invisible
		setstate bridge_materials default

		// Some kind of UI pop-up to alert players
		wm_announce	"Axis team has destroyed the Wooden Foot Bridge!"
	}

So what do I need to do to get the flashing satchel?

Thanks,
ZoSo


(ZoSo) #2

OK it works now :slight_smile:
Got the origin brush fixed too, just had to move it.