Posted: Fri Oct 22, 2021 6:20 am Post subject:
Allied Repair Vehicle ?
I'm trying to give the allies a buildable repair vehicle instead of having to put an engineer in a IFV but when I build it, even though I give it the repair arm, it does not come out with it but comes out without a turret.
What is it that I'm missing in the code ?
RULESMD
;Infantry Repair Vehicle - IRV
[IRV]
UIName=Name:IFRV
Image=FV
Name=Infantry Repair Vehicle
Prerequisite=GAWEAP
Primary=RepairBullet
Strength=325
Category=Transport
Armor=medium
DeployTime=.022
TechLevel=3
LeadershipRating=2
Sight=8
PipScale=Passengers
Speed=12
CrateGoodie=no
Owner=British,French,Germans,Americans,Alliance
AllowedToStartInMultiplayer=yes
Cost=750
Soylent=600
Points=20
ROT=5
Crusher=no
TooBigToFitUnderBridge=true
Turret=yes ;GEF should be no for ifv???
Passengers=2
Gunner=yes
AirRangeBonus=4 ;GEF this should always be less than or equal to the range of the primary weapon. Otherwise targeting issues could arise
;GEF If you change TurretCount, find this line in objtype.h and change it to reflect the new number of turrets
;#define OBJTYPE_DIM_TurretMax 15
;Or Weapon Count.
;TurretCount=15
;HasTurretTooltips=yes
If it only has 1 weapon then you dont need any of the IFV code, so you can Remove all of this:
Passengers=2
Gunner=yes
AirRangeBonus=4 ;GEF this should always be less than or equal to the range of the primary weapon. Otherwise targeting issues could arise
;GEF If you change TurretCount, find this line in objtype.h and change it to reflect the new number of turrets
;#define OBJTYPE_DIM_TurretMax 15
;Or Weapon Count.
;TurretCount=15
;HasTurretTooltips=yes
TurretCount=1
WeaponCount=1
RepairTurretIndex=2
RepairTurretWeapon=1
Weapon1=RepairBullet ;Engineer
EliteWeapon1=RepairBullet ;Engineer
These two tags are specifically for buildings & dont work on units. The file naming system for using turrets on units is the name of the unit with "tur" added to the end.
TurretAnim=IFRVTUR2
TurretAnimIsVoxel=true
So to fix it remove this code & change the file names from IFRVTUR2 to IRVTUR. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum