Jump to content


Photo

Producing multiple infantry


  • Please log in to reply
9 replies to this topic

#1 f22

f22
  • New Members
  • 6 posts

Posted 27 July 2004 - 05:07 PM

I would like to make squads of infantry. I want it to be that if u by one ranger, u get 5. I can not find what code to edit to make this happen.

#2 Dark Ruler of Chaos

Dark Ruler of Chaos
  • New Members
  • 56 posts
  • Location:In my Mind

Posted 27 July 2004 - 05:50 PM

Try the coding for the......... troop crawler

#3 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 27 July 2004 - 06:13 PM

Look at the chinese barracks, and it's production update module. That is how you get 2 redguard when you build one. You can modify that and use it in the American barracks to give you 5 rangers for the cost of 1.
:)
Posted Image

Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.

Too cute! | Server Status: If you can read this, it's up |

#4 NVShacker

NVShacker
  • New Members
  • 17 posts

Posted 27 July 2004 - 06:58 PM

Be sure to add a QueueProductionExitUpdate module too, as it will allow your infantry to exit single file as apposed to spawning into themselves.

#5 f22

f22
  • New Members
  • 6 posts

Posted 29 July 2004 - 01:29 AM

That worked. Thanks

#6 the_kid

the_kid

    L337 Pwnerer of N00bs

  • Project Team
  • 1,734 posts
  • Location:La$ Vega$, NV
  • Projects:freelancing between what interests me
  •  + TRIPLEhelix

Posted 30 July 2004 - 02:28 AM

what about commanding squads of infanty as if it was 1, is it possible to somehow group them in a way that you can move and attack as if it was one infantry, but lays down fire and dies individually?

#7 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 30 July 2004 - 02:57 AM

It can be done with the Angry mob logic, but that brings its own difficulties, including problems with transports, buildings, etc.
:p
Posted Image

Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.

Too cute! | Server Status: If you can read this, it's up |

#8 the_kid

the_kid

    L337 Pwnerer of N00bs

  • Project Team
  • 1,734 posts
  • Location:La$ Vega$, NV
  • Projects:freelancing between what interests me
  •  + TRIPLEhelix

Posted 31 July 2004 - 03:59 AM

yeah, I just remembered aobut the angry mob, but would I have to create a whole new model for a squad of rangers, or could I just have the engine group the soldiers?

#9 AdmiralGT

AdmiralGT

    title available

  • Members
  • 1,702 posts
  • Location:Bristol, UK
  • Projects:Petrolution

Posted 31 July 2004 - 09:17 AM

The Angry Mob is just a collection of models. You can see this from the coding of the Nexus

 Behavior            = SpawnBehavior ModuleTag_05
    SpawnNumber       = 10
    SpawnReplaceDelay = 30000; 30 seconds

        SpawnTemplateName = GLAInfantryAngryMobPistol01; Aladdin
        SpawnTemplateName = GLAInfantryAngryMobRock02; Woman in the Gypsy Costume
        SpawnTemplateName = GLAInfantryAngryMobMolotov02; The Lady with the hot sauce
        SpawnTemplateName = GLAInfantryAngryMobPistol03; Skinny Guy with the Green Beret
        SpawnTemplateName = GLAInfantryAngryMobRock04; Fat guy with the tank top
        SpawnTemplateName = GLAInfantryAngryMobMolotov02; The Lady with the hot sauce
        SpawnTemplateName = GLAInfantryAngryMobPistol05; The robed dude with the Man-Veil



    ExitByBudding = Yes;!

    InitialBurst = 5; the first set of 5 will not delay
    OneShot     = No
    AggregateHealth = Yes
    SlavesHaveFreeWill = No
  End

So you can just make a new nexus (or use the Angry Mob Nexus) and change the spawn units to AmericaInfantryRanger or AmericaInfantryMissileDefender.

#10 the_kid

the_kid

    L337 Pwnerer of N00bs

  • Project Team
  • 1,734 posts
  • Location:La$ Vega$, NV
  • Projects:freelancing between what interests me
  •  + TRIPLEhelix

Posted 01 August 2004 - 05:28 AM

ha, thats cool, I should toy with this later...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users