Posted by: Amaurus - Tuesday, October 7, 2008 6:19:19 PM
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 [b]AND ONLY[/b] combat cycles not cars and stuff.and i dont want to get rid of terrorists cause people think thats "strategic" too.
Posted by: Drummin - Tuesday, October 7, 2008 7:06:50 PM
Why not just write a script?
[code]*** IF ***
True.
*** THEN ***
'GLAVehicleCombatBike' becomes Buildable (No)
'Demo_GLAVehicleCombatBike' becomes Buildable (No)
'Slth_GLAVehicleCombatBike' becomes Buildable (No)
'Chem_GLAVehicleCombatBike' becomes Buildable (No)
[/code]
Posted by: krit - Tuesday, October 7, 2008 7:09:23 PM
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?
Posted by: CommieDog - Tuesday, October 7, 2008 7:42:16 PM
Here's the code responsible for determining which infantry can ride the Combat Bike:[code] 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[/code]
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.
Posted by: Me Myself and Pi - Tuesday, October 7, 2008 9:03:34 PM
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.
Posted by: Sky Demon - Wednesday, October 8, 2008 8:38:16 AM
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'.
Posted by: Drummin - Wednesday, October 8, 2008 9:55:54 AM
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.
Posted by: Amaurus - Thursday, October 9, 2008 2:08:57 PM
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 [blush]
Posted by: krit - Thursday, October 9, 2008 3:52:27 PM
I hate going against them... But not to the point of completely disabling them...