FileFront Forums

FileFront Forums (http://forums.filefront.com/)
-   CnC Modding, Mapping and Editing (http://forums.filefront.com/cnc-modding-mapping-editing-273/)
-   -   Can't I change the CommandSet ini freely? (http://forums.filefront.com/cnc-modding-mapping-editing/270841-cant-i-change-commandset-ini-freely.html)

Mobius 1 August 23rd, 2006 07:32 AM

Re: Can't I change the CommandSet ini freely?
 
*whispers* in the behavior modules of the GLA worker *whispers*

taclled August 23rd, 2006 07:34 AM

Re: Can't I change the CommandSet ini freely?
 
lol oh and where do i place it

Mobius 1 August 23rd, 2006 08:00 AM

Re: Can't I change the CommandSet ini freely?
 
With the behavior modules of ur dozer. Look at the usa dozer, and get a look at how it's modules are placed, then, you will know young grasshopper.

taclled August 23rd, 2006 08:40 AM

Re: Can't I change the CommandSet ini freely?
 
yes master but do i replace the bean with the new bean or do i add onther bean to the pot

Mere_Mortal August 23rd, 2006 11:23 AM

Re: Can't I change the CommandSet ini freely?
 
lol

It really doesn't entirely matter where you put the modules, so long as each one has a unique name (like ModuleTag_01, ModuleTag_02 etc). Some do matter though, like an AI module MUST be placed BEFORE the Locomotor, else the unit will not move.

Usually, when I'm creating a new or cloned Object, I tend to group certain bits together, like upgrade, specials, damage details, etc. And I tend to put the Locomotor right at the very end just so it's out of my way.

As an example, here's my A10...

Code:

Object Thunderbolt

  SelectPortrait        = SAWarthog_L
  ButtonImage            = SAWarthog

  UpgradeCameo1          = Upgrade_AmericaAdvancedTraining
  UpgradeCameo2          = Upgrade_AmericaCountermeasures
  UpgradeCameo3          = Upgrade_ChinaAircraftArmor

; --------- [ ART Parameters ] --------- ;

  Draw = W3DModelDraw W3D
    OkToChangeModelColor = Yes
    ExtraPublicBone      = WeaponA01
    ExtraPublicBone      = WeaponA02
    ExtraPublicBone      = WeaponA03
    ExtraPublicBone      = WeaponA04
    ExtraPublicBone      = WeaponA05
    ExtraPublicBone      = WeaponA06
    DefaultConditionState
      Model              = AVWarthog
      WeaponMuzzleFlash  = PRIMARY MuzzleFX01
      WeaponFireFXBone  = PRIMARY Muzzle01
      ParticleSysBone    = Engine01 JetBlackTrailThin
      ParticleSysBone    = Engine02 JetBlackTrailThin
      ParticleSysBone    = Wingtip01 JetContrailThin
      ParticleSysBone    = Wingtip02 JetContrailThin
    End
    ConditionState = REALLYDAMAGED
      Model              = AVWarthog_D
      WeaponMuzzleFlash  = PRIMARY MuzzleFX01
      WeaponFireFXBone  = PRIMARY Muzzle01
    End
    AliasConditionState  = RUBBLE
  End

; -------- [ DESIGN Parameters ] ------- ;

  KindOf = PRELOAD SELECTABLE CAN_CAST_REFLECTIONS CAN_ATTACK VEHICLE AIRCRAFT SCORE

  DisplayName            = OBJECT:A10Thunderbolt

  EditorSorting          = VEHICLE
  RadarPriority          = UNIT

  TransportSlotCount    = 0
  VisionRange            = 300
  ShroudClearingRange    = 300
  IsTrainable            = Yes
  ExperienceValue        = 50 100 150 400
  ExperienceRequired    =  0 150 450 900

  BuildCost              = 2500
  BuildTime              = 30

  Prerequisites
    Object              = Airfield
    Object              = StrategyCenter
  End

  WeaponSet
    Conditions = None
    Weapon              = PRIMARY    ThunderboltVulcan
    Weapon              = SECONDARY  ThunderboltMissileWeapon
    AutoChooseSources    = PRIMARY    FROM_PLAYER FROM_SCRIPT FROM_AI
    AutoChooseSources    = SECONDARY  NONE
  End

  ArmorSet
    Conditions = None
    Armor                = AirplaneArmor
    DamageFX            = None
  End

  CommandSet            = CommandSet_Thunderbolt

  MaxSimultaneousOfType  = 4

; -------- [ AUDIO Parameters ] -------- ;

  VoiceSelect          = ComancheVoiceSelect
  VoiceMove            = ComancheVoiceMove
  VoiceGuard            = ComancheVoiceMove
  VoiceAttack          = ComancheVoiceAttack
  SoundAmbient          = A10ThunderboltAmbientLoop

  UnitSpecificSounds
    SoundEject          = PilotSoundEject
    VoiceEject          = PilotVoiceEject
    VoiceCreate        = ComancheVoiceCreate
    VoiceFireRocketPods = ComancheVoiceAttackRocket
    StartDive          = A10ThunderboltDive
    Afterburner        = RaptorAfterburner
  End

; ----- [ ENGINEERING Parameters ] ----- ;

  Body = ActiveBody Body
    MaxHealth            = 500
    InitialHealth        = 500
  End

  Behavior = JetAIUpdate AI
    MinHeight              = 5
    TakeoffPause            = 500
    TakeoffDistForMaxLift  = 0%
    ReturnToBaseIdleTime    = 10000
    Turret
      TurretTurnRate        = 0
      TurretPitchRate      = 0
      ControlledWeaponSlots = PRIMARY
    End
    AutoAcquireEnemiesWhenIdle = Yes
  End

  Behavior = ExperienceScalarUpgrade Experience
    TriggeredBy          = Upgrade_AmericaAdvancedTraining
    AddXPScalar          = 1
  End

  Behavior = MaxHealthUpgrade Health
    ChangeType          = ADD_CURRENT_HEALTH_TOO
    TriggeredBy          = Upgrade_ChinaAircraftArmor
    AddMaxHealth        = 100
  End

  ClientUpdate  = AnimatedParticleSysBoneClientUpdate SysBone
  End

; -------- [ DAMAGE Parameters ] ------- ;

  Behavior = JetSlowDeathBehavior SlowDeath
    DestructionDelay                = 99999999
    RollRate                        = 0.0
    RollRateDelta                  = 100%
    PitchRate                      = 0.0
    FallHowFast                    = 110.0%
    FXInitialDeath                  = FX_JetDeathInitial
    OCLInitialDeath                = None
    DelaySecondaryFromInitialDeath  = 500
    FXSecondary                    = FX_JetDeathSecondary
    OCLSecondary                    = None
    FXHitGround                    = FX_JetDeathHitGround
    OCLHitGround                    = OCL_A10DeathHitGround
    DelayFinalBlowUpFromHitGround  = 200
    FXFinalBlowUp                  = FX_JetDeathFinalBlowUp
    OCLFinalBlowUp                  = OCL_A10DeathFinalBlowUp
  End

  Behavior = FlammableUpdate Flammable
    AflameDuration    = 5000
    AflameDamageAmount = 3
    AflameDamageDelay  = 500
  End

; ------- [ GEOMETRY Parameters ] ------ ;

  Locomotor = SET_NORMAL  A10ThunderboltLocomotor
  Locomotor = SET_TAXIING BasicJetTaxiLocomotor

  Behavior = PhysicsBehavior Physics
    Mass  = 500
  End

  Geometry = Cylinder
  GeometryIsSmall = Yes
  GeometryMajorRadius = 10
  GeometryMinorRadius = 10
  GeometryHeight = 10
  Shadow = SHADOW_VOLUME
  ShadowSizeX = 89

End


Mobius 1 August 23rd, 2006 11:27 AM

Re: Can't I change the CommandSet ini freely?
 
Nice A10.

Mere_Mortal August 23rd, 2006 11:32 AM

Re: Can't I change the CommandSet ini freely?
 
Ya, I just wish I could figure out how the SpecialPower manages to fire the Vulcan AND the Missiles. I can make it do one or the other, just not both at once. Oh well, it's a nice unit to have, a bit powerful though hence the max of 4.

taclled August 23rd, 2006 11:49 AM

Re: Can't I change the CommandSet ini freely?
 
oh so as long as it isnt between any other code and it is infront of the the locomoter i should be fine

Mere_Mortal August 23rd, 2006 11:53 AM

Re: Can't I change the CommandSet ini freely?
 
Each module must be itself, you can't have one module stuck inside another. As for the Locomotor, so far as I'm aware, it must only be after the AI module but doesn't matter about any others.

You might take a look at the ZH Module List so you can see how each one works...
http://www.sleipnirstuff.com/forum/v...p?f=14&t=13171

taclled August 23rd, 2006 01:18 PM

Re: Can't I change the CommandSet ini freely?
 
interesting i will download

medicdude August 23rd, 2006 06:57 PM

Re: Can't I change the CommandSet ini freely?
 
The Superpower does everything through the OCL. You may notice that the superweapon A10 doesn't have a missile weapon (and IIRC, it doesn't have the vulcan either). The OCL drops the missiles (vehicle payload really) and has a strafing weapon option that the cannon uses.

Mere_Mortal August 23rd, 2006 07:36 PM

Re: Can't I change the CommandSet ini freely?
 
Ah, I overlooked StrafingWeaponSlot. That explains all then. Hmm...I wonder if there's anyway to get that into the Object itself? I'll probably look into it tomorrow.

taclled August 23rd, 2006 11:53 PM

Re: Can't I change the CommandSet ini freely?
 
huh interesting what is OCL and IRC

Mere_Mortal August 24th, 2006 03:37 AM

Re: Can't I change the CommandSet ini freely?
 
OCL = ObjectCreationList, whose references are in the INI file.

IIRC = If I Remember Correctly

taclled August 24th, 2006 04:39 AM

Re: Can't I change the CommandSet ini freely?
 
ohh i thouhgt they were both files lol please forgive my noobish ways

medicdude August 24th, 2006 07:05 AM

Re: Can't I change the CommandSet ini freely?
 
You shall be forgiven... this time.

Anyway, I had an A10 that both dropped bombs and fired a cannon. I don't remember any issues... the Scorpion tank uses both the primary (cannon) and secondary (rocket) weapon, same with the Comanche, and the Ranger does the same before you select what weapon he should use.

medicdude August 24th, 2006 07:06 AM

Re: Can't I change the CommandSet ini freely?
 
I was going to make a module list... now I don't have to :D

Mere_Mortal August 24th, 2006 07:47 AM

Re: Can't I change the CommandSet ini freely?
 
Ah, the Scorpion and the Comanche certainly do, although I'm dubious about the Ranger. Yeh, I was going to look into it, that I shall be off to do so :)

Hey, I got it. AutoChooseSources = SECONDARY was set to none.

taclled August 24th, 2006 10:45 AM

Re: Can't I change the CommandSet ini freely?
 
well i found out one problem i cant have two secondarys and after looking through the files i found out two do something like that i need to use Tertiary instead of secondary what whould i use if i wanted to give some one 4 weapons for the fourth weapon

Mobius 1 August 24th, 2006 11:28 AM

Re: Can't I change the CommandSet ini freely?
 
Quadriary?? I dunno...Dude, I've been wanting to know that for the lognest time.

taclled August 24th, 2006 11:37 AM

Re: Can't I change the CommandSet ini freely?
 
well i guess i won't be finding out to soon if you dont know

Mere_Mortal August 24th, 2006 12:49 PM

Re: Can't I change the CommandSet ini freely?
 
I don't think you can have a fourth weapon, at least to the best of my knowledge.

There are ways you can improvise on the other hand, like using WeaponSetUpgrade in the same way as the Worker's CommandSetUpgrade. That is, pressing an upgrade button which changes the WeaponSet, then you can press another button to change it again, but at the same time will remove the previous upgrade so it can be used again. You would still only have a max of 3 weapons at a time, but at least you can allow the object to access more than three.

You can always have more than one WeaponSet anyway, but you need an upgrade or status change (eg, CombatBike) to switch between them.

In addition, you can also use behaviour modules to use weapons, such a SpecialAbility.

Another option is to use the Overlord/HelixContain module so that you can include a contained object within the main object, thus allowing you to have as many weapons as there are objects, x3. Take the Helix & Overlord and their Gattling weapon as a prime example.

medicdude August 24th, 2006 01:03 PM

Re: Can't I change the CommandSet ini freely?
 
Directly, yes, there's only three weapon slots. However, as MereMortal said, there's plenty of ways to add more.

The best for your situation is probably using an OCL and a contained object - the Gattling Cannon Overlord method.

taclled August 24th, 2006 01:03 PM

Re: Can't I change the CommandSet ini freely?
 
i think ill stay with a max of 3 weapons
i hate your dang complex terms ahhhhhhh lol

Mere_Mortal August 24th, 2006 01:20 PM

Re: Can't I change the CommandSet ini freely?
 
Well, stick with it and you'll get to know what's what in good time.

taclled August 24th, 2006 01:37 PM

Re: Can't I change the CommandSet ini freely?
 
Thats a good thing...right???

Mere_Mortal August 25th, 2006 02:08 AM

Re: Can't I change the CommandSet ini freely?
 
Well, it's a good thing if you and can persevere, learning by trial & error. Otherwise it's a waste of time, whichever applies to you ;)

taclled August 25th, 2006 02:10 AM

Re: Can't I change the CommandSet ini freely?
 
oh k so to make units build something they need that code and ill give up giving a unit 4 weapons lol

medicdude August 25th, 2006 07:28 AM

Re: Can't I change the CommandSet ini freely?
 
It's a waste of time anyway :p I've thrown away so much time on this stuff... well, it is fun and there is learning involved. I guess that makes it a non-waste of time?

taclled August 25th, 2006 07:44 AM

Re: Can't I change the CommandSet ini freely?
 
so it is or is not a waste of time

Mere_Mortal August 25th, 2006 08:07 AM

Re: Can't I change the CommandSet ini freely?
 
It depends on what you want and expect to come of it. In my case, I'd probably be doing very little else so I'm at least keeping myself occupied. But it is a waste of time if you spend months or years on a project only to decide it was never worth it at after all. I think Medic knows what I mean ;)

taclled August 25th, 2006 08:26 AM

Re: Can't I change the CommandSet ini freely?
 
k do you think ill find out what you mean because im not loking forward to it lol

Mere_Mortal August 25th, 2006 08:46 AM

Re: Can't I change the CommandSet ini freely?
 
Oh, i was referring to the one of Medic's mods that never made it. A shame that so much went into it but was never completed. You might regard that as a waste of time, but then like Medic said, if you're learning and have good times to look back on, it could never have been unworthy.

taclled August 25th, 2006 10:18 AM

Re: Can't I change the CommandSet ini freely?
 
oh well in that case.......

medicdude August 26th, 2006 07:35 AM

Re: Can't I change the CommandSet ini freely?
 
That's your decision to make. It's your time that you're spending wisely and/or wasting.

taclled August 26th, 2006 10:00 AM

Re: Can't I change the CommandSet ini freely?
 
well not like i have anything better to do and if the mod gets good enough ill post if not ill flush it


All times are GMT -7.

Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.