DerWolf
  • DerWolf
  • 50.25% (Neutral)
  • Private Topic Starter
11 years ago
Hello, I have searched the forums of modding communities that have this game and I cannot find anything that matches what I am looking for. I would like to be able to have the unit exit a vehicle eg. GLA combat bike, but have it reusable. This is the behavior module that I took from the combat bike and edited for it, any information anyone has would be greatly appreciated on this subject.


Behavior = RiderChangeContain ModuleTag_16
    ;A list of each valid rider that is allowed to ride this object. Each rider is
    ;assigned a modelcondition state, a weaponset flag, an object status bit, and
    ;a commandset override. The actual object is hidden inside the container so the 
    ;visible rider is fluff. Also riders are deleted (not killed) when the bike is
    ;destroyed, so all deaths must be OCLs on the bike.
    Rider1 = AmericaInfantryColonelBurton         RIDER1 WEAPON_RIDER1 STATUS_RIDER1 AmericaInfantryCenturionCommandSet SET_NORMAL
    Rider2 = AmericaInfantryRanger          RIDER2 WEAPON_RIDER2 STATUS_RIDER2 AmericaInfantryCenturionCommandSet SET_NORMAL
    Rider3 = AmericaInfantryMissileDefender RIDER3 WEAPON_RIDER3 STATUS_RIDER3 AmericaInfantryCenturionCommandSet SET_NORMAL
    Rider4 = AmericaInfantryPilot     RIDER4 WEAPON_RIDER4 STATUS_RIDER4 AmericaInfantryCenturionCommandSet SET_NORMAL
    Rider5 = AmericaInfantryPathfinder      RIDER5 WEAPON_RIDER5 STATUS_RIDER5 AmericaInfantryCenturionCommandSet SET_NORMAL
    Rider6 = AmericaInfantryCIAOfficer       RIDER6 WEAPON_RIDER6 STATUS_RIDER6 AmericaInfantryCenturionCommandSet SET_NORMAL
    ;ScuttleDelay          = 
    ;ScuttleStatus         = 

    ;Standard TransportContain stuff
    Slots                 = 1
    ScatterNearbyOnExit   = No
    HealthRegen%PerSec    = 0
    DamagePercentToUnits  = 100%  ; This module will Delete the rider on death, but we need to kill him as well so he doesn't pick up the bike's salvage crate.
    BurnedDeathToUnits    = No    ; And no Burned death.
    AllowInsideKindOf     = INFANTRY
    ExitDelay         = 250
    NumberOfExitPaths = 1 ; Defaults to 1.  Set 0 to not use ExitStart/ExitEnd, set higher than 1 to use ExitStart01-nn/ExitEnd01-nn
    GoAggressiveOnExit = Yes ; AI Will tell people to set their mood to Aggressive on exiting
    DoorOpenTime = 0
  End

P.S. I attached the full unit .INI file.   Centurion.INI.txt (19kb) downloaded 3 time(s).
Sponsor
DerWolf
  • DerWolf
  • 50.25% (Neutral)
  • Private Topic Starter
11 years ago
Never mind I found the answer.



  Behavior = CreateObjectDie ModuleTag_X10
    DeathTypes = NONE +TOPPLED
    CreationList = OCL_Centurion_ToppledHulk
    TransferPreviousHealth = Yes
  End
and then adding a -TOPPLED to all death modules and creating a

Behavior = SlowDeathBehavior ModuleTag_X11
    DeathTypes = NONE +TOPPLED
    SinkDelay = 0
    SinkRate = 1.5     ; in Dist/Sec
    DestructionDelay = 0
End
you can get a seamless result.
CommieDog
11 years ago
That's actually pretty clever. I would have thought it impossible.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
Annihilationzh
11 years ago
For future reference, you can also spawn a fake passenger using the same method as portable structures. That will allow infantry to get on and off the bike.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Gameanater
11 years ago

For future reference, you can also spawn a fake passenger using the same method as portable structures. That will allow infantry to get on and off the bike.

Originally Posted by: Annihilationzh 



If don't mind me asking, what exactly does this have to do with the building?
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
Annihilationzh
11 years ago

If don't mind me asking, what exactly does this have to do with the building?

Originally Posted by: Gameanater 


It took me a while to understand what you were asking. I'm still not entirely sure, but here goes...

Overlords can spawn a gattling cannon as a passenger inside themselves. If you give this code to a combat bike, you can spawn infantry on the combat bike, which will cause the driver to get off the bike and be replaced. Now you can make your infantry fake (invisible, unattackable, etc) and make the upgrade free and instant and name the upgrade "Evacuate."

Voila. The bike now looks like it's empty when you evacuate it, but it remains standing because it still has a rider.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
UTD^Force
11 years ago

If don't mind me asking, what exactly does this have to do with the building?

Originally Posted by: Annihilationzh 


It took me a while to understand what you were asking. I'm still not entirely sure, but here goes...

Overlords can spawn a gattling cannon as a passenger inside themselves. If you give this code to a combat bike, you can spawn infantry on the combat bike, which will cause the driver to get off the bike and be replaced. Now you can make your infantry fake (invisible, unattackable, etc) and make the upgrade free and instant and name the upgrade "Evacuate."

Voila. The bike now looks like it's empty when you evacuate it, but it remains standing because it still has a rider.

Originally Posted by: Gameanater 



Cool, that's really smart 🙂
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs