Amaurus
  • Amaurus
  • 100% (Exalted)
  • Major Topic Starter
17 years ago
I want to be able to disable demo bikes from being made on my map but some people think its "stategic" to have combat cycles. so i deleted the demo bike from the gla demolition general's arms dealer and put a normal gla combat cycle in its place. Still it can be used with a terrorist to make a demo bike. I want to get rid or the terrorists' ability to enter combat cycles AND ONLY combat cycles not cars and stuff.and i dont want to get rid of terrorists cause people think thats "strategic" too.
Hey your base is on fire.
Sponsor
Drummin
17 years ago
Why not just write a script?
*** IF ***
    True.
*** THEN ***
   'GLAVehicleCombatBike' becomes Buildable (No)
   'Demo_GLAVehicleCombatBike' becomes Buildable (No)
   'Slth_GLAVehicleCombatBike' becomes Buildable (No)
   'Chem_GLAVehicleCombatBike' becomes Buildable (No)
krit
  • krit
  • 100% (Exalted)
  • Commander in Chief
17 years ago
Drummin... He didn't want to completely disable, but only disable terrorists from entering Combat Bikes... On the other hand, why would you want to do that?
UserPostedImage 
CommieDog
17 years ago
Here's the code responsible for determining which infantry can ride the Combat Bike:
  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 = GLAInfantryWorker         RIDER1 WEAPON_RIDER1 STATUS_RIDER1 GLAVehicleCombatBikeDefaultCommandSet SET_NORMAL
    Rider2 = GLAInfantryRebel          RIDER2 WEAPON_RIDER2 STATUS_RIDER2 GLAVehicleCombatBikeDefaultCommandSet SET_NORMAL
    Rider3 = GLAInfantryTunnelDefender RIDER3 WEAPON_RIDER3 STATUS_RIDER3 GLAVehicleCombatBikeDefaultCommandSet SET_NORMAL
    Rider4 = GLAInfantryJarmenKell     RIDER4 WEAPON_RIDER4 STATUS_RIDER4 GLAVehicleCombatBikeJarmenKellCommandSet SET_NORMAL
    Rider5 = GLAInfantryTerrorist      RIDER5 WEAPON_RIDER5 STATUS_RIDER5 GLAVehicleCombatBikeDefaultCommandSet SET_SLUGGISH
    Rider6 = GLAInfantryHijacker       RIDER6 WEAPON_RIDER6 STATUS_RIDER6 GLAVehicleCombatBikeDefaultCommandSet SET_NORMAL
    Rider7 = GLAInfantrySaboteur       RIDER7 WEAPON_RIDER7 STATUS_RIDER7 GLAVehicleCombatBikeDefaultCommandSet SET_NORMAL
    ScuttleDelay          = 1500
    ScuttleStatus         = TOPPLED

    ;Standard TransportContain stuff
    Slots                 = 1
    InitialPayload        = GLAInfantryRebel 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
I suspect that all you would need to do is use a ReplaceModule block in a Map.ini file and copy this block of code in, commenting out the Rider5 line to remove support for the Terrorist.
UserPostedImage 
CommieDog: Because someone has to do your dirty work for you
Me Myself and Pi
17 years ago
Well disabling demo bikes unbalances the game. It's like taking away the the humvee from the USA generals.

But non the less, the only way to prevent infantry from garrisoning combat cycles is through a Map.ini file. But if you use a Map.ini file, it will cause a mismatch if all the players in the game don't have the map in advance.

So the best way you can do is either just allow the player to build regular combat cycles, or not to let him build them at all through scripting.
Sky Demon
17 years ago
I don't agree nor disagree with you Pi but I think there's a certain lee-weigh when it comes to Map.ini mismatches.

I agree with you that it does increase the risk of a mismatch but I think that it isn't like 'This maps got a map.ini, were gonna mismatch for sure'.
Drummin
17 years ago
I think the real issue is that changes made with a map.ini file won't apply to those who do not have the map. So if you were looking to make a muliplayer online map that doesn't have terrorists because you don't like them attacking you, you'd find you're the only one this map.ini applies to.
Amaurus
  • Amaurus
  • 100% (Exalted)
  • Major Topic Starter
17 years ago
I want to disable terrorists from entering the combat cycle cause most people hate demo bikes anyone agree? Thats all i want lol and thx CommieDog for suppling a code for me to use 😊
Hey your base is on fire.
krit
  • krit
  • 100% (Exalted)
  • Commander in Chief
17 years ago
I hate going against them... But not to the point of completely disabling them...
UserPostedImage