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,668
Posts: 94,539

Administrators:
DeeZire, Redemption

There are currently 44 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements

DeeZire Online > Editing Community > Command and Conquer Editing > Generals & Zero Hour Editing » In need of some modding help, a few questions

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

Reply
 
LinkBack Thread Tools
Old 04-01-2007, 05:23 AM   #1 (permalink)
Member
 
Join Date: Nov 2003
Posts: 47
Send a message via MSN to Xenomorph
Default In need of some modding help, a few questions

I've a few modding questions that I've been trying to work out on my own for a while now without any luck, so I was wondering if anyone could help me with them.

1.) How do I create a turret on top of a turret that won't inherit it's parent turret's rotation, but will move with it? For instance, I've been trying to create a machine gun turret on top of the main gun turret of a tank, but the MG turret is always facing the wrong way when firing because it adds the main turret's rotation angle to its own. Like the Overlord's gattling turret.

2.) How do I set a custom camera hight for shell maps that doesn't use default (max) setting, as defined in GameData.ini?

3.) How do I set up a suicide OCL that doesn't make a "Unit Lost" audio to play? I'm trying to create a "deploy" unit that uses a suicide weapon and an OCL to create the deployed unit, but I always get the Unit Lost played when it happens. Is it possible to circumvent this, or am I just SOL?

Thanks in advance to any advice or help.
Xenomorph is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-01-2007, 04:56 PM   #2 (permalink)
Senior Member
 
CommieDog's Avatar
 
Join Date: Oct 2004
Location: Alaska (Hell Frozen Over)
Posts: 370
Default Re: In need of some modding help, a few questions

Quote:
Originally Posted by Xenomorph";p=&quot View Post
1.) How do I create a turret on top of a turret that won't inherit it's parent turret's rotation, but will move with it? For instance, I've been trying to create a machine gun turret on top of the main gun turret of a tank, but the MG turret is always facing the wrong way when firing because it adds the main turret's rotation angle to its own. Like the Overlord's gattling turret.
If you're using the AltTurret code for that, I don't think it will ever work properly. You'll have to convert over to OverlordContain logic.

Quote:
Originally Posted by Xenomorph";p=&quot View Post
3.) How do I set up a suicide OCL that doesn't make a "Unit Lost" audio to play? I'm trying to create a "deploy" unit that uses a suicide weapon and an OCL to create the deployed unit, but I always get the Unit Lost played when it happens. Is it possible to circumvent this, or am I just SOL?
Add SUICIDE to the weapon's RadiusDamageAffects= line.
CommieDog is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-01-2007, 06:40 PM   #3 (permalink)
Member
 
Join Date: Nov 2003
Posts: 47
Send a message via MSN to Xenomorph
Default

I'm already using the Overlord Draw and Transport codes, but I'm still getting that problem. Are there some settings I have to enable in gmax on the model?

As for the suicide weapon, I already have SUICIDE in there.
Code:
Weapon GladiatorSuicideWeapon
  PrimaryDamage = 999999
  PrimaryDamageRadius = 1
  SecondaryDamage = 0
  SecondaryDamageRadius = 0
  AttackRange = 999999
  DamageType = PENALTY
  DeathType = EXTRA_2
  RadiusDamageAffects = SUICIDE SELF ALLIES NOT_SIMILAR
  WeaponSpeed = 999999
  ClipSize = 1
  ClipReloadTime = 999999
  DamageDealtAtSelfPosition = Yes
  LeechRangeWeapon = Yes
End
Is there something in this code I should put there?
Xenomorph is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-07-2008, 10:48 PM   #4 (permalink)
Senior Member
 
Join Date: Jan 2008
Posts: 325
Default

Check is the OverlordContain module has
PassengersInTurret = Yes
This tells it to take into account the parent turret's angle.

Also check that the turret turn rates in the AI module of the parent unit and the portable structure are the same. If they are different it will mess up the angle of the portable structure turret.

Another way is to not use overlordcontain but just have 2 turrets in the parent object. Turret and AltTurret, see the battleship for example.

If the other turret is in a seperate W3D model (a la technical gunner), it should attach to a bone in the parent vehicle model that is not part of the parent vehicle's turret, ie that does not turn.

As for deployable units, why not just use DeployStyleAIUpdate?
See the ChinaVehicleNukeLauncher and AmericaVehicleSentryDrone for examples. You can have the Draw module use different models or animations for the packed and unpacked states, see the nuke cannon for example.

If you want to use the suiciding method, see the teleporting Tardis in my Laser General mod 1.0, or the laser drone that converts into a laser turret building in my America Mission 8 for Zero Hour single player mission. Somehow they do not say "Unit Lost" when they suicide.
beng is online now  
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
Questions about ZH modding Star Dragon Generals & Zero Hour Editing 0 07-07-2007 07:55 PM
RA2 Modding Questions - Please Help HopeInTheFormOFAGI Red Alert 2 & Yuri's Revenge Editing 3 03-12-2006 01:41 PM
RA2 Modding Questions - Please Help HopeInTheFormOFAGI Red Alert 2 & Yuri's Revenge Editing 0 03-12-2006 12:00 AM
Some modding questions, please help. Goldeagle Red Alert 2 & Yuri's Revenge Editing 15 09-05-2005 05:08 AM
2 modding questions jonwil Red Alert 2 & Yuri's Revenge Editing 18 05-06-2005 06:45 AM


All times are GMT -4. The time now is 02:29 PM.


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