View Single Post
Old 10-24-2004, 08:11 PM   #1 (permalink)
Silent_Killa
Senior Member
 
Join Date: May 2004
Location: My Secret Volcano Lair (USA)
Posts: 702
Send a message via AIM to Silent_Killa Send a message via MSN to Silent_Killa
Default Problem with code[solved]

Hey, I just added a Overlord style machine gun turret to my Black Eagle tank and it seems to work except for one thing... the turret doesn't turn! now the weapon can still fire in a 360 degree radius, but the turret doesn't turn... which is odd since it's basically a copy and paste job of the overlord gattling cannon... any ideas?
Code:
Object RussiaBlackEagleMGun

  ; *** ART Parameters ***
  SelectPortrait         = SNGatTower_L
  ButtonImage            = SNGatTower
  
  ;UpgradeCameo1 = Upgrade_Nationalism
  ;UpgradeCameo1 = Upgrade_ChinaUraniumShells
  ;UpgradeCameo2 = Upgrade_ChinaNuclearTanks
  ;UpgradeCameo4 = NONE
  ;UpgradeCameo5 = Upgrade_ChinaOverlordGattlingCannon
  
  
  Draw                    = W3DDependencyModelDraw ModuleTag_01
    OkToChangeModelColor  = Yes
    AttachToBoneInContainer = FIREPOINT01

    DefaultConditionState
      Model               = RVBlackEagle_G
      Turret              = TURRET01
      TurretPitch         = TURRET01
      WeaponFireFXBone    = PRIMARY GunMuzzle
    End

    ConditionState        = REALLYDAMAGED 
      Model               = RVBlackEagle_G
      Turret              = TURRET01
      TurretPitch         = TURRET01
      WeaponFireFXBone    = PRIMARY GunMuzzle
    End
  End

  ; ***DESIGN parameters ***
  Side             = Russia
  EditorSorting    = SYSTEM
  TransportSlotCount = 1
  WeaponSet
    Conditions          = None 
    Weapon              = PRIMARY   HumveeGun 
  End
  
  ArmorSet
    Conditions     = None
    Armor          = InvulnerableAllArmor ; We can't be hurt on the field.  We share damage from the Overlord with his damage module
  End
  VisionRange     = 200

  ; *** AUDIO Parameters ***
  UnitSpecificSounds
    TurretMoveStart = NoSound
    TurretMoveLoop  = NoSound ;TurretMoveLoop
    VoiceRapidFire  = NoSound
  End

  ; *** ENGINEERING Parameters ***
  KindOf            = PRELOAD PORTABLE_STRUCTURE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT CLICK_THROUGH IGNORED_IN_GUI
    Body            = StructureBody ModuleTag_02
    MaxHealth       = 100.0
    InitialHealth   = 100.0
  End

  Behavior = AIUpdateInterface ModuleTag_03
    Turret
      ControlledWeaponSlots = PRIMARY
      TurretTurnRate      = 60   // turn rate, in degrees per sec
      TurretPitchRate     = 60
      AllowsPitch         = Yes
    End
    AutoAcquireEnemiesWhenIdle = Yes 
  End

  Behavior             = DestroyDie ModuleTag_04
    ;nothing
  End

  Geometry            = BOX
  GeometryMajorRadius = 8.0
  GeometryMinorRadius = 8.0
  GeometryHeight      = 9.0
  GeometryIsSmall     = No      
  Shadow              = SHADOW_VOLUME
  ShadowSizeX = 45  ; minimum elevation angle above horizon. Used to limit shadow length

End
Silent_Killa is offline   Reply With Quote