Posted by: Deinon - Tuesday, May 24, 2016 5:33:42 PM
A campaign mod I'm putting together deals a lot with civilians, with the intent being that the player will need to discern to prevent excessive civilian casualties. The AI-controlled enemy you face exploits this, the idea being that you will see no shortage of civilians who are exposed as "GLA" rebels and terrorists. Ideally I'd want to do this with the rebel units from the Demolitions general, changing an innocuous civilian passing by your base into an AK-47 wielding fanatic intent on closing the distance with your forces and self-detonating. What would need to be done in the INI files to add the ability for infantry to disguise as civilians, able to be unmasked by detectors - the same way the bomb truck can disguise as another vehicle?
Posted by: Zatsupachi - Tuesday, May 24, 2016 9:13:24 PM
I tried recreating the RA2 Spy in Generals, and so far you can't since the Bombtruck module that disguises it to other vehicles only targets vehicles.
I don't know maybe someone can show us some hidden module out there.
There are various overly complicated ways to do it tho but they're messy and will turn out very VERY glitchy.
Posted by: ComradeGeneral - Tuesday, May 24, 2016 10:18:58 PM
If you want to reverse the entire game, yeah it's possible.
You'll need to make infantry into VEHICLE kindof's. You'll need to make vehicles into INFANTRY kindof's. The disguise ability only works on VEHICLE targets, so if you want infantry to use the disguise ability and not be able to target vehicles, you basically have to flip everything upside down.
I remember reading somewhere that said the bomb truck disguise things were hard-coded into the game and can't be changed with ini.
I actually had a mission like this planned, with the ini made with the units that were going to be on the map. Mission was going to be using a small group of GLA units, with terrorists that can disguise as civilians, and sneaking through to blow up oil derricks.
Examples:
[code]
;turn infantry into VEHICLES...
;turn vehicles into INFANTRY...
Object GenericFemale01
KindOf = CAN_CAST_REFLECTIONS VEHICLE CAN_BE_REPULSED SELECTABLE
End
[/code]
[code]
Object AmericaInfantryMissileDefender
KindOf = PRELOAD SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT CAN_CAST_REFLECTIONS VEHICLE SCORE
End
[/code]
[code]
Object CarAsian1
KindOf = SELECTABLE CAN_ATTACK SHOW_PORTRAIT_WHEN_CONTROLLED INFANTRY
CrusherLevel = 2 ;What can I crush?: 1 = infantry, 2 = trees, 3 = vehicles
CrushableLevel = 2 ;What am I?: 0 = for infantry, 1 = for trees, 2 = general vehicles
End
[/code]
[code]
Object GLATankMarauder
KindOf = PRELOAD SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT CAN_CAST_REFLECTIONS SALVAGER WEAPON_SALVAGER INFANTRY SCORE
CrusherLevel = 2 ;What can I crush?: 1 = infantry, 2 = trees, 3 = vehicles
CrushableLevel = 2 ;What am I?: 0 = for infantry, 1 = for trees, 2 = general vehicles
End
[/code]
In my opinion though, it's a total waste of time and can have some wonky results. Rockets will directly hit infantry because they're technically a type of VEHICLE with this. Rockets will land on the ground inside tanks because they count as INFANTRY. Overall it's just not worth it.
Posted by: Deinon - Wednesday, May 25, 2016 3:23:57 AM
Well that's a bloody shame. :(
Thanks for the heads-up. Had it all planned out that there would be a mission where a stream of refugees would be spawning in - and fleeing from - a town near your base, passing close to its perimeter on a road leading out of the map, only on the opposite side of town the enemy base is cranking out infiltrators who slip into the crowd and then break away from it to try to breach your defenses if you aren't paying close enough attention. Not everyone who approaches your gates is a bad guy, though - hence discretion.
I never intended this ability to be in the hands of a playable team. The campaign mod puts the player in command of Kurdish forces squaring off against ISIS. I have no intention of making an ISIS campaign putting the player in a position to spawn these units.
Posted by: rey - Wednesday, May 25, 2016 12:21:52 PM
i think it could be easier for you to create new units with looks of civilians but payload of terrorists. so spawned units would look just like some part of a crowd. that is if you have knowledge to do all this.
Posted by: Rrtaya_tsamsiyu - Wednesday, May 25, 2016 3:49:20 PM
Or simply replace all of the terrorist art to that of the civilians. Wouldn't completely fix the disguise issue though. Maybe the art plus turning off automatic engagement, if that's possible
Posted by: ComradeGeneral - Wednesday, May 25, 2016 4:14:45 PM
[quote=Rrtaya_Tsamsiyu;140213]Or simply replace all of the terrorist art to that of the civilians. Wouldn't completely fix the disguise issue though. Maybe the art plus turning off automatic engagement, if that's possible[/quote]
Would it be possible to add variation with the art. What I mean is, when a technical is made, it chooses from 3 different chassis types. Would it be possible to make 3 or more terrorists (All with civilian textures), so when a barracks makes a terrorist, it picks a variation like it does with techincals?
I'm sure someone smarter than me knows.
Something with this I imagine, but with terrorist copies.
[code] BuildVariations = GLAVehicleTechnicalChassisOne GLAVehicleTechnicalChassisTwo GLAVehicleTechnicalChassisThree[/code]
Posted by: rey - Wednesday, May 25, 2016 8:46:49 PM
try to look ROTR code, there are infantry there produced with visual variants.