; ver. 1.39 DWX
var DetonateDepth

; Pick Random Depth Setting
IF INIT THEN {
	DetonateDepth = ( -100 - RND 200 )
	IF DetonateDepth < TerrainAlt THEN {
		DetonateDepth = ( TerrainAlt + 50 )
	} ENDIF
IF ( OwnName $= "Accident - Internal Explosion" ) THEN {
	DETONATE
} ENDIF
} ENDIF

; Blow Up At Selected Depth
IF OwnAlt < DetonateDepth THEN {
	DETONATE
} ENDIF

