depthcharge

Upload: stevendouglas

Post on 01-Mar-2016

1 views

Category:

Documents


0 download

TRANSCRIPT

  • ; $Header: DepthCharge.txt Wed Apr 23 16:04:39 EDT 2003 $; $Revision: 1 $; $Copyrt1: Copyright (c) 2003, Sonalysts, Inc. All rights reserved. $;; Depth Charge

    var DetonateDepth

    ; Pick Random Depth SettingIF INIT THEN {

    DetonateDepth = ( -100 - RND 200 )IF DetonateDepth < TerrainAlt THEN {

    DetonateDepth = ( TerrainAlt + 50 )} ENDIF

    } ENDIF

    ; Blow Up At Selected DepthIF OwnAlt < DetonateDepth THEN {

    DETONATE} ENDIF