View Single Post
Old 06-30-2004, 09:37 AM   #1 (permalink)
CodeCat
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default 2 turrets, 1 problem

Ok I have this model which has 2 turrets, a Turret and AltTurret. But these turrets belong to the same weapon (PRIMARY). MUZZLE01, BARREL01, MUZZLE03 and BARREL03 are on TURRET01, MUZZLE02, BARREL02, MUZZLE04 and BARREL04 are on TURRET02. So how do I get the game to use the MUZZLE and BARREL bones on both of the turrets? I tried this code:

Code:
Turret             = Turret01
AltTurret          = Turret02
WeaponFireFXBone   = PRIMARY Muzzle
WeaponLaunchBone   = PRIMARY Muzzle
WeaponRecoilBone   = PRIMARY Barrel
Code:
Behavior = AIUpdateInterface ModuleTag_03
  Turret
    TurretTurnRate     = 80
    RecenterTime       = 5000
    ControlledWeaponSlots = PRIMARY
  End
  AltTurret
    TurretTurnRate     = 80
    RecenterTime       = 5000
    ControlledWeaponSlots = PRIMARY
  End
  TurretsLinked = Yes
End
In this case, both turrets turn equally and point at the same target (like I want them to). But when they fire, all the shots come from the first turret. So I want the shots to come from the second turret aswell. Basically I want it to consider the BARREL and MUZZLE bones of both turrets equal, so it fires from both turrets. Right now it only uses the bones from the first turret, disregarding the second.

So, any ideas?
CodeCat is offline   Reply With Quote