logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,581
Total Threads: 8,667
Posts: 94,503

Administrators:
DeeZire, Redemption

There are currently 48 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 06-30-2004, 09:37 AM   #1 (permalink)
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  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-30-2004, 09:53 AM   #2 (permalink)
Senior Member
 
Join Date: Aug 2003
Location: UK
Posts: 704
Send a message via MSN to Mithril
Default

The AltTurret command will only make both turrets fire if you attack an enemy unit directly, instead of ctrl shooting at the ground...
Mithril is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-30-2004, 10:03 AM   #3 (permalink)
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

So how do I connect the two turrets without using AltTurret?
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-30-2004, 10:37 AM   #4 (permalink)
Senior Member
 
Join Date: Aug 2003
Location: UK
Posts: 704
Send a message via MSN to Mithril
Default

Dunno.. overlord contain? That may be one way..
Mithril is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-30-2004, 11:14 AM   #5 (permalink)
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

Or a weapon for each turret. But that brings the problem that force-firing doesn't trigger the SECONDARY weapon, which is kinda important for a weapon like this (it's the Cruiser in case you're wondering). But I guess it's the best option we have.
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-30-2004, 11:36 AM   #6 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 306
Send a message via AIM to Vger Send a message via MSN to Vger Send a message via Yahoo to Vger
Default

Take a look at the battle ship code since it seems to have both turrets firing at the same target in that mission in zh.
Vger is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 06-30-2004, 11:41 AM   #7 (permalink)
Senior Member
 
Join Date: Aug 2003
Location: UK
Posts: 704
Send a message via MSN to Mithril
Default

Yes but they have probably told the ship to directly attack a target and therefore it didn't rely on the AutoAcquireEnemies line or force fire
Mithril is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-01-2004, 01:00 AM   #8 (permalink)
Senior Member
 
Join Date: Feb 2003
Location: USA
Posts: 306
Send a message via AIM to Vger Send a message via MSN to Vger Send a message via Yahoo to Vger
Default

Yes in the mission you told the ship where to fire by clicking a button or just by clicking on the enemy unit. If the code was changed for it to auto aquire enemies it might just work. Try it out and see.
Vger is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-01-2004, 04:33 AM   #9 (permalink)
Member
 
Join Date: Nov 2003
Posts: 86
Default

tried the shotsperbarrel like on the overlord?
kurairyu is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-01-2004, 11:57 AM   #10 (permalink)
Member
 
Join Date: Jun 2004
Location: Germany
Posts: 76
Send a message via ICQ to Ingoneur
Default

u need
Turret = Turret

because when u leave the 01 away the game takes both turrets.
Ingoneur is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
two turrets, one problem DaLump Generals & Zero Hour Editing 1 11-04-2004 04:47 PM
2 turrets Azan Red Alert 2 & Yuri's Revenge Editing 3 07-31-2004 04:31 AM
== IFV Turrets == Infraid Red Alert 2 & Yuri's Revenge Editing 3 07-03-2004 10:20 AM
4 Turrets? Mithril Generals & Zero Hour Editing 2 11-23-2003 07:30 AM
Turrets JhonnyRey Red Alert 2 & Yuri's Revenge Editing 5 04-01-2003 04:03 PM


All times are GMT -4. The time now is 07:10 AM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.