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)

taclled August 19th, 2006 01:39 PM

Re: Can't I change the CommandSet ini freely?
 
Thanks and id do a similar thing for trying to allow other vehicles build a building (ex. Supply truck - Speaker toweres)

Mere_Mortal August 20th, 2006 12:26 AM

Re: Can't I change the CommandSet ini freely?
 
No, take a look at the Worker. Since he is a Harvester and Dozer, his WorkerAI module would suit the SupplyTruck well in this scenario because it would simply replace SupplyTruckAI. You also need KindOf = DOZER and a ProductionUpdate module.

taclled August 20th, 2006 02:51 AM

Re: Can't I change the CommandSet ini freely?
 
so id copy and edit the Workers code to suit the supply truck

Mere_Mortal August 20th, 2006 01:11 PM

Re: Can't I change the CommandSet ini freely?
 
Pretty much. You should check the current data for the SupplyTruck and use those settings for the WorkerAI module (such as max boxes, scan range, etc). You won't be needing SupplyTruckAI after (only one AI module can be used per object).

taclled August 20th, 2006 11:21 PM

Re: Can't I change the CommandSet ini freely?
 
so anything that doesnt look like it has to do with building things leave alone

Mere_Mortal August 21st, 2006 01:54 AM

Re: Can't I change the CommandSet ini freely?
 
This should suffice...
Code:

  Behavior = WorkerAIUpdate AI
;  RepairHealthPercentPerSecond  = 2%
;  AutoAcquireEnemiesWhenIdle    = Yes
    BoredTime                    = 5000
    BoredRange                    = 150
    MaxBoxes                      = 4
    SupplyCenterActionDelay      = 1000
    SupplyWarehouseActionDelay    = 150
    SupplyWarehouseScanDistance  = 700
    SuppliesDepletedVoice = SupplyTruckVoiceSuppliesDepleted
  End

By the way, I omitted the repair ability because I think it makes sense that it can't do so.
If you want it to be able to repair all structures, simply uncomment the first two lines.

taclled August 21st, 2006 02:27 PM

Re: Can't I change the CommandSet ini freely?
 
so just add this were the worker has it or does it matter if it is in beginning or end
and i can add this to any thing to make it be abler to build things like say red guard- bunker

Mere_Mortal August 22nd, 2006 01:51 AM

Re: Can't I change the CommandSet ini freely?
 
Just remove the SupplyTruckAIUpdate module and replace it with the above. The WorkerAIUpdate is intended for a unit that can harvest and construct. I assume your RedGuard will only be able to construct, so in that case, use the DozerAIUpdate...
Code:

  Behavior = DozerAIUpdate AI
    RepairHealthPercentPerSecond = 2%
    BoredTime                    = 5000
    BoredRange                  = 150
    AutoAcquireEnemiesWhenIdle  = Yes
  End

Again, if you don't want the RedGuard to be able to repair structures, use this...
Code:

  Behavior = DozerAIUpdate AI
    AutoAcquireEnemiesWhenIdle  = Yes
  End

Also note that you need KindOf = DOZER for both the RedGuard and SupplyTruck. Furthermore, you can only have one AI module for an object, so you must also remove the AIUpdateInterface module from the RedGuard.

taclled August 22nd, 2006 12:14 PM

Re: Can't I change the CommandSet ini freely?
 
i didnt quite understand what you said lol

Mere_Mortal August 22nd, 2006 12:46 PM

Re: Can't I change the CommandSet ini freely?
 
What bit exactly don't you understand? I really don't think there's any Layman's Terms I could use.


All times are GMT -7.

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