CABHUT:
	Inherits: ^BasicBuilding
	Tooltip:
		Name: Bridge repair hut
	Building:
		Footprint: x
		Dimensions: 1, 1
	BridgeHut:
		NeighbourOffsets: -1,-1, -1,0, -1,1, 0,-1, 0,1, 1,-1, 1,0, 1,1
	RenderSprites:
		Palette: player
	Targetable:
		TargetTypes: C4
	-IsometricSelectable:
	-IsometricSelectionDecorations:
	Interactable:
	SelectionDecorations:
	-Demolishable:
	-Explodes:
	-FrozenUnderFog:
	HiddenUnderShroud:
	MapEditorData:
		Categories: Bridge

^LowBridgeRamp:
	AlwaysVisible:
	RenderSprites:
		Palette: terraindecoration
	WithSpriteBody:
	AppearsOnRadar:
	RadarColorFromTerrain:
		Terrain: Bridge
	AppearsOnMapPreview:
		Terrain: Bridge
	BodyOrientation:
		UseClassicPerspectiveFudge: false
		QuantizedFacings: 1
	Tooltip:
		Name: Bridge
	MapEditorData:
		Categories: Bridge
	Interactable:

^LowBridge:
	Inherits: ^LowBridgeRamp
	Targetable:
		TargetTypes: Ground, Building, Bridge
		RequiresForceFire: true
	Health:
		HP: 50000
	Armor:
		Type: Concrete
	HitShape:

LOBRDG_A:
	Inherits: ^LowBridge
	Building:
		Footprint: ___
		Dimensions: 3, 1
	GroundLevelBridge:
		NeighbourOffsets: 1,-1, 1,1
	SpawnActorOnDeath:
		Actor: lobrdg_a_d
	-WithSpriteBody:
	WithBridgeSpriteBody:
		AOffset: 1,-1
		BOffset: 1,1
		Sequences: idle, idle2, idle3, idle4
		ADestroyedSequences: adead
		BDestroyedSequences: bdead
		ABDestroyedSequences: abdead
	ShakeOnDeath:
		Duration: 15
		Intensity: 6

LOBRDG_A_D:
	Inherits: LOBRDG_A
	EditorOnlyTooltip:
		Name: Dead Bridge
	-GroundLevelBridge:
	-AppearsOnRadar:
	BridgePlaceholder:
		DamageState: Dead
		ReplaceWithActor: lobrdg_a
		NeighbourOffsets: 1,-1, 1,1
	-WithBridgeSpriteBody:
	WithDeadBridgeSpriteBody:
		RampActors: lobrdg_r_ne, lobrdg_r_sw
		AOffset: 1,-1
		BOffset: 1,1
	Interactable:
		Bounds: 96, 48

LOBRDG_B:
	Inherits: ^LowBridge
	Building:
		Footprint: _ _ _
		Dimensions: 1, 3
	GroundLevelBridge:
		NeighbourOffsets: -1,1, 1,1
	SpawnActorOnDeath:
		Actor: lobrdg_b_d
	-WithSpriteBody:
	WithBridgeSpriteBody:
		AOffset: -1,1
		BOffset: 1,1
		Sequences: idle, idle2, idle3, idle4
		ADestroyedSequences: adead
		BDestroyedSequences: bdead
		ABDestroyedSequences: abdead
	ShakeOnDeath:
		Duration: 15
		Intensity: 6

LOBRDG_B_D:
	Inherits: LOBRDG_B
	EditorOnlyTooltip:
		Name: Dead Bridge
	-GroundLevelBridge:
	-AppearsOnRadar:
	BridgePlaceholder:
		DamageState: Dead
		ReplaceWithActor: lobrdg_b
		NeighbourOffsets: -1,1, 1,1
	-WithBridgeSpriteBody:
	WithDeadBridgeSpriteBody:
		RampActors: lobrdg_r_nw, lobrdg_r_se
		AOffset: 1,1
		BOffset: -1,1
	Interactable:
		Bounds: 96, 48

LOBRDG_R_SE:
	Inherits: ^LowBridgeRamp
	Building:
		Footprint: _ _ _
		Dimensions: 1, 3
	BridgePlaceholder:
		NeighbourOffsets: -1,1
	EditorOnlyTooltip:
		Name: Bridge Ramp

LOBRDG_R_NW:
	Inherits: ^LowBridgeRamp
	Building:
		Footprint: _ _ _
		Dimensions: 1, 3
	BridgePlaceholder:
		NeighbourOffsets: 1,1
	EditorOnlyTooltip:
		Name: Bridge Ramp

LOBRDG_R_NE:
	Inherits: ^LowBridgeRamp
	Building:
		Footprint: ___
		Dimensions: 3, 1
	BridgePlaceholder:
		NeighbourOffsets: 1,1
	EditorOnlyTooltip:
		Name: Bridge Ramp

LOBRDG_R_SW:
	Inherits: ^LowBridgeRamp
	Building:
		Footprint: ___
		Dimensions: 3, 1
	BridgePlaceholder:
		NeighbourOffsets: 1,-1
	EditorOnlyTooltip:
		Name: Bridge Ramp

^ElevatedBridgePlaceholder:
	AlwaysVisible:
	RenderSprites:
		Palette: terraindecoration
	WithSpriteBody:
	AppearsOnRadar:
	RadarColorFromTerrain:
		Terrain: Bridge
	AppearsOnMapPreview:
		Terrain: Bridge
	BodyOrientation:
		UseClassicPerspectiveFudge: false
		QuantizedFacings: 1
	Tooltip:
		Name: Bridge
	Immobile:
		OccupiesSpace: false
	MapEditorData:
		Categories: Bridge
	Interactable:
		Bounds: 96, 144

BRIDGE1:
	Inherits: ^ElevatedBridgePlaceholder

BRIDGE2:
	Inherits: ^ElevatedBridgePlaceholder

RAILBRDG1:
	Inherits: ^ElevatedBridgePlaceholder

RAILBRDG2:
	Inherits: ^ElevatedBridgePlaceholder
