Jump to content
Sign in to follow this  
Breathe-0ut

Adding units (T-Rex) into factions

Recommended Posts

For my mod I want the T-Rex to be put into Yuri's forces (i.e. Yuri(Headquaters), and my new factions, #UriOps, Splinter Cell, and Psi Corps)

 

Here is Rexxy's orinigal ini data:

[DNOA]
UIName=Name:DNOA
Name=Animal T-Rex
NoShadow=yes
Category=AFV
Primary=TRexInfBite
Secondary=TRexBite;VirtualScanner
Strength=300 ;200
Organic=yes
Armor=Plate
TechLevel=-1
Turret=no
IsTilter=no
SelfHealing=yes
CrateGoodie=no
Sight=5
GuardRange=5
DefaultToGuardArea=yes ; SJM: Squid should move to use its two range 1 weapons like dogs and TDs
Speed=8
Owner=Russians,Confederation,Africans,Arabs,YuriCountry
Cost=2700;1000
Points=20
ROT=40
AllowedToStartInMultiplayer=no
Crewed=no
IsSelectableCombatant=yes
VoiceSelect=TRexSelect
VoiceMove=TrexMove
VoiceAttack=TrexMove
VoiceSecondaryWeaponAttack=TrexMove
VoiceFeedback=
DieSound=TrexDie
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
MovementZone=Infantry
ThreatPosed=25	; This value MUST be 0 for all building addons
Weight=.5
ImmuneToPsionics=yes
Explodes=no
AccelerationFactor=0.01
ZFudgeColumn=8
ZFudgeTunnel=13
Bombable=yes
Size=30
VeteranAbilities=STRONGER,FIREPOWER,ROF,SIGHT,FASTER
EliteAbilities=STRONGER,FIREPOWER,ROF
TooBigToFitUnderBridge=true
Crushable=no
Parasiteable=no
Trainable=no
NotHuman=yes
CloseRange=yes;gs such a short range attack that he needs to be able to do a intracell move
OmniCrushResistant=yes

 

So I figured making "TechLevel" and "Trainable" to 'X' and 'yes' would do they trick.

 

TechLevel=10

Trainable=yes

 

Further more I increased it's strength and lower the cost for multiplayer purposes.

 

Strength=400

Cost=1750

 

And because this is going to be for Yuri's Forces only,

 

Country=YuriCountry
;Country=YuriCountry,UriOps,SplinterCell,PsiCorps

 

But despite all this it still isn't showing up on Yuri's sidebar.

 

EDIT:

This is what I currently have it to:

[DNOA]
UIName=Name:DNOA
Image=DNOA
Name=T-Rex
NoShadow=yes
Category=AFV
Primary=TRexInfBite
Secondary=TRexBite;VirtualScanner
Prerequisite=YABRCK,YATECH
Strength=400
Organic=yes
Armor=Plate
TechLevel=10
Turret=no
IsTilter=no
SelfHealing=yes
CrateGoodie=yes
Sight=10
GuardRange=5
DefaultToGuardArea=yes ; SJM: Squid should move to use its two range 1 weapons like dogs and TDs
Speed=8
Owner=YuriCountry
Cost=1750
Points=20
ROT=40
AllowedToStartInMultiplayer=no
Crewed=no
IsSelectableCombatant=yes
VoiceSelect=TRexSelect
VoiceMove=TrexMove
VoiceAttack=TrexMove
VoiceSecondaryWeaponAttack=TrexMove
VoiceFeedback=
DieSound=TrexDie
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
MovementZone=Infantry
ThreatPosed=25	; This value MUST be 0 for all building addons
Weight=.5
ImmuneToPsionics=yes
Explodes=yes
AccelerationFactor=0.01
ZFudgeColumn=8
ZFudgeTunnel=13
Bombable=no
Size=30
VeteranAbilities=STRONGER,FIREPOWER,ROF,SIGHT,FASTER
EliteAbilities=STRONGER,FIREPOWER,ROF,SIGHT,FASTER
TooBigToFitUnderBridge=true
Crushable=no
Parasiteable=no
Trainable=yes
NotHuman=yes
CloseRange=yes;gs such a short range attack that he needs to be able to do a intracell move
OmniCrushResistant=yes

Edited by Breathe-0ut

Share this post


Link to post

Trainable means it can be promoted to veteran and elite status, it is not a requirement to be built.

 

The T-Rex is coded as a vehicle, not infantry. As you have a barracks as a prerequisite, but not a war factory, I assume you intended him to be an infantry unit. Might he not be showing up on the sidebar because you are not building a war factory during your tests?

Share this post


Link to post

Trainable means it can be promoted to veteran and elite status, it is not a requirement to be built.

 

The T-Rex is coded as a vehicle, not infantry. As you have a barracks as a prerequisite, but not a war factory, I assume you intended him to be an infantry unit. Might he not be showing up on the sidebar because you are not building a war factory during your tests?

Actually I am using War Factories, and I would have to anyway, YATECH requires the Psychic Radar AND War Factory.

Share this post


Link to post

Ah right, I overlooked that.

 

I don't know if Image can cause your problem, but you don't need it. Its Image by default is DNOA, but you are restating it.

Share this post


Link to post

Ah right, I overlooked that.

 

I don't know if Image can cause your problem, but you don't need it. Its Image by default is DNOA, but you are restating it.

I could 'attempt' to recreate T-Rex as a infantry.

Share this post


Link to post

Actually yes, that was the issue.

 

I re-created Rexxy as a infantry unit. Source code for kicks:

; T-Rex
[YREX]
UIName=Name:Tyrannosaurus Rex
Name=Tyrannosaurus Rex
Image=DNOA
Category=Soldier
Primary=TRexInfBite
Secondary=TRexBite
Prerequisite=YABRCK,YATECH
Crushable=no
Strength=500
Armor=plate
TechLevel=10
Pip=purple
Sight=16
Speed=8
Owner=YuriCountry
Cost=1750
Soylent=250
Points=69
IsSelectableCombatant=yes
VoiceSelect=TRexSelect
VoiceMove=TrexMove
VoiceAttack=TrexMove
VoiceSecondaryWeaponAttack=TrexMove
VoiceFeedback=
DieSound=TrexDie
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
PhysicalSize=1
MovementZone=Infantry
ThreatPosed=20 ; 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;that's right. this bitch can fit in IFV's
AllowedToStartInMultiplayer=no
ElitePrimary=TRexInfBiteE
EliteSecondary=TRexBiteE
IFVMode=0
Unnatural=yes
CloseRange=yes
DefaultToGuardArea=yes ; the much awaited dog default to move and attack when resting
GuardRange=2
SelfHealing=yes
ImmuneToPsionics=yes
Trainable=yes
Parasiteable=no

[TRexBiteE] ; T-Rex elite vehicle bite or in this case CHOW DOWN
Range=2
CellRangefinding=yes
Projectile=InvisibleLow
Speed=50
Damage=500
ROF=15
Warhead=TRexWH;  need to change InfDeath  HowitzerWH
Report=TrexAttack

[TRexInfBiteE] ; REXXY'S 'ELITE' HUMAN BEING EATING SPREE
Range=2
CellRangefinding=yes
Projectile=InvisibleLow
Speed=50
Damage=500
ROF=15
Warhead=TRexInfWH;  need to change InfDeath  HowitzerWH
Report=TrexAttack
;YEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH

 

 

Share this post


Link to post

This is not useful but...

 


Isnt the reason of Yuri's death because of the T-rex?

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×