Jump to content

Photo

Yuri's Revenge custom Flak Trooper


2 replies to this topic

#1
StantonCree

StantonCree

    Fan

  • Supporter
  • PipPipPip
  • 328 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


#2
StantonCree

StantonCree

    Fan

  • Supporter
  • PipPipPip
  • 328 posts

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, 24 September 2018 - 07:42 PM.


#3
StantonCree

StantonCree

    Fan

  • Supporter
  • PipPipPip
  • 328 posts

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




Reply to this topic



  


IPB skins by Skinbox
Page loaded in: 1.109 seconds