Hello there, I modify game for my own and I added params to Guardian GI and Flak Trooper: occupy: yes to unit and OccupantAnim=UCCONS to weapon string in rulesmd.
It's good, but Guardians GI (in occupy structure) don't automatically attacks air units (with ctrl button they're do), only ground with Missile Launcher.
[GGI]
UIName=Name:GuardianGI
Name=Guardian GI
Category=Soldier
Primary=M60
Secondary=MissileLauncher ;GEF New Guardian GI weapon
OpenTransportWeapon=1;defaults to -1 (decide normally) What weapon should I use in a Battle Fortress
Occupier=yes ; I can Occupy UC buildings
OccupyWeapon=MissileLauncher; The weapon I use while Occupying. Defaults to 0 (Primary)
EliteOccupyWeapon=MissileLauncherE; The weapon I use while Occupying. Defaults to 0 (Primary)
Prerequisite=GAPILE
CrushSound=InfantrySquish
Strength=100
Pip=white
Armor=none
TechLevel=2
Sight=6
Speed=3
Owner=British,French,Germans,Americans,Alliance
AllowedToStartInMultiplayer=no
Cost=400
Soylent=150
Points=10
IsSelectableCombatant=yes
VoiceSelect=GuardianGISelect
VoiceMove=GuardianGIMove
VoiceAttack=GuardianGIAttackCommand
VoiceFeedback=GuardianGIFear
VoiceSpecialAttack=GuardianGIMove
DieSound=GuardianGIDie
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
PhysicalSize=1
MovementZone=Infantry
ThreatPosed=10 ; This value MUST be 0 for all building addons
ImmuneToVeins=yes
ImmuneToPsionics=no
Bombable=yes
Deployer=yes
DeployFire=yes
; DeployTime=.022 ; PCG; Unused for now. Was maybe going to make its way in if we did
; a more explicit state machine for deploying b/c of autodeploy.
VeteranAbilities=STRONGER,FIREPOWER,ROF,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
Size=1
Crushable=yes
DeployedCrushable=no
DeploySound=GuardianGIDeploy
UndeploySound=GIUndeploy
ElitePrimary=M60E
EliteSecondary=MissileLauncherE ;GEF New Guardian GI weapon
;EliteSecondary=ParaE
IFVMode=16
PixelSelectionBracketDelta=-6;gs higher number draws lower. Pixel difference from normal for selection bracket
---------------------------------------------------------------------------------------------------------------------------------------------------
How to make them attack automatically on air units when they are in the building/structure?
Flak Troopers (in soviet bunker) attacks only JUMPJET (Rocketeer).
[FLAKT]
UIName=Name:FLAKT
Name=Flak Trooper
;Image=CONS
Category=Soldier
Primary=FlakGuyGun
Secondary=FlakGuyAAGun
Prerequisite=NAHAND,NARADR
CrushSound=InfantrySquish
Strength=100
Armor=none
TechLevel=1
Pip=white
Sight=5
Speed=4
Owner=Russians,Confederation,Africans,Arabs,YuriCountry
Cost=300
Soylent=150
Points=5
IsSelectableCombatant=yes
VoiceSelect=FlakTroopSelect
VoiceMove=FlakTroopMove
VoiceAttack=FlakTroopAttackCommand
VoiceFeedback=FlakTroopFear
VoiceSpecialAttack=FlakTroopMove
DieSound=FlakTroopDie
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
PhysicalSize=1
MovementZone=Infantry
;MovementZone=InfantryDestroyer ;GEF wow!!! copy paste bug from the original Disk Thrower!
ThreatPosed=5 ; This value MUST be 0 for all building addons
VeteranAbilities=STRONGER,FIREPOWER,ROF,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
ImmuneToVeins=yes
Size=1
AllowedToStartInMultiplayer=no
ElitePrimary=FlakGuyGunE
EliteSecondary=FlakGuyAAGunE
IFVMode=3
Occupier=yes ; I can Occupy UC buildings
OccupyWeapon=FlakGuyAAGun; The weapon I use while Occupying. Defaults to 0 (Primary)
EliteOccupyWeapon=FlakGuyAAGunE; The weapon I use while Occupying. Defaults to 0 (Primary)
------------------------------------------------------------------------------------------------------------------------------------------------
How to make them attack ALL air units when they are in the building/structure?