Jump to content

Yuri's Revenge custom Flak Trooper


StantonCree

Recommended Posts

So I got back into Red Alert 2 and I downloaded an unmodified rulesmd.ini for Yuri's Revenge. What I want to do is make the Soviet Flak Trooper be able to shoot ground targets and air targets while being garisoned. I got the garisoning part working but I can't figure out how to make him shoot both air and ground units. I'll post here what I got:

[FLAKT]
UIName=Name:FLAKT
Name=Flak Trooper
;Image=CONS
OccupyWeapon=FlakGuyAAGun; The weapon I use while Occupying.  Defaults to 0 (Primary)
EliteOccupyWeapon=FlakGuyAAGunE; The weapon I use while Occupying.  Defaults to 0 (Primary)
Occupier=yes ; I can Occupy UC buildings
OccupyPip=PersonWhite ; choices are green yellow white red blue purple
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=150
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
Link to comment
Share on other sites

Ok I made it work... sort off. BUT they will not attack anything unless the structure they garrison gets attacked first. I can't even set them to manually attack :/

 

These are the new updated settings:

; Flak Trooper
[FLAKT]
UIName=Name:FLAKT
Name=Flak Trooper
;Image=CONS
OccupyWeapon=FlakGuyAAGun; The weapon I use while Occupying.  Defaults to 0 (Primary)
EliteOccupyWeapon=FlakGuyAAGunE; The weapon I use while Occupying.  Defaults to 0 (Primary)
Occupier=yes ; I can Occupy UC buildings
OccupyPip=PersonYellow ; choices are green yellow white red blue purple
Category=Soldier
Primary=FlakGuyGun
Secondary=FlakGuyAAGun
Prerequisite=NAHAND
CrushSound=InfantrySquish
Strength=100
Armor=none
TechLevel=1
Pip=yellow
Sight=5
Speed=4
Owner=Russians,Confederation,Africans,Arabs,YuriCountry
Cost=150
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

The flak troopers now have yellow icons when they are inside a garrison. I also notice that while garrisoned their range is severly reduced for some reason.........

Edited by StantonCree
Link to comment
Share on other sites

I have made it completely functional now. I had to create a new weapon and projectile for the flak trooper, one that is capable of shooting air and land targets. I'm posting down here everything I did incase someone else is interested.

[FLAKT]
UIName=Name:FLAKT
Name=Flak Trooper
;Image=CONS
OccupyWeapon=FlakGuyGunAirNSurface; The weapon I use while Occupying.  Defaults to 0 (Primary)
EliteOccupyWeapon=FlakGuyGunAirNSurfaceE; The weapon I use while Occupying.  Defaults to 0 (Primary)
Occupier=yes ; I can Occupy UC buildings
OccupyPip=PersonYellow ; choices are green yellow white red blue purple
Category=Soldier
Primary=FlakGuyGunAirNSurface
Prerequisite=NAHAND
CrushSound=InfantrySquish
Strength=100
Armor=none
TechLevel=1
Pip=yellow
Sight=5
Speed=4
Owner=Russians,Confederation,Africans,Arabs,YuriCountry
Cost=150
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=FlakGuyGunAirNSurfaceE
IFVMode=3




[FlakGuyGunAirNSurface]		; Anti-surface-air gun for the Flak Trooper
Damage=20
ROF=20
Range=5
Projectile=FlakProjAGAA
Speed=50
Report=FlakTrackAttackGround		
Warhead=FlakWHAGAA
Anim=GUNFIRE

[FlakGuyGunAirNSurfaceE]		; Anti-surface-air Elite gun for the Flak Trooper
Damage=20
ROF=20
Range=5
Projectile=FlakProjAGAA
Speed=50
Report=FlakTrackAttackGround		
Warhead=FlakWHAGAA
Anim=GUNFIRE
Burst=2


[FlakProjAGAA]		; AA-AG bullet for Flak Trooper.
Image=none
Inviso=yes
AA=yes
AG=yes
;AN=no
Shadow=no
Ranged=yes		; Not homing, but ranged -- check fuse, explode if near target coords
Inaccurate=yes	; Bullets do not snap onto targets when "close enough".
FlakScatter=yes ; This weapon scatters its shots.
SubjectToCliffs=no
SubjectToElevation=yes
SubjectToWalls=no

[FlakWHAGAA]	; For anti-air flak weapons.
CellSpread=1.0
PercentAtMax=.1
;;Verses=150%,80%,50%,100%,20%,20%,0%,0%,0%,100%,100%	; no buildings
Verses=150%,80%,50%,100%,100%,20%,0%,0%,0%,100%,100%	; no buildings
AnimList=SMKPUFF
InfDeath=3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...