help plz :cant get exp_heavyrocket(raven) work for air unit
Posted: 30 Dec 2005, 13:29
I am a new bee and this is my 1st post here.
i have done the 3do file and the 'download' build menu entry.i copy cob&bos files from other units and made a little change on them: this is only a single-piece unit,so i think scripting might not be where the problem is.
then comes the fbi file in UNITS dir.
This is my fbi file:i made it mostly by coping and editing ARMLANCE fbi.
[UNITINFO]
{
UnitName=ARMAIRCR;
Version=1;
Side=ARM;
Objectname=ARMAIRCR;
Designation=AFD-J9;
Name=ARECRUISER;
Description=TEST Bomber;
FootprintX=3;
FootprintZ=3;
BuildCostEnergy=6598;
BuildCostMetal=408;
MaxDamage=500;
MaxWaterDepth=0;
MaxSlope=10;
EnergyUse=0;
BuildTime=3000;
WorkerTime=0;
BMcode=1;
Builder=0;
ThreeD=1;
ZBuffer=1;
NoAutoFire=0;
SightDistance=250;
RadarDistance=0;
SoundCategory=ARM_VTOL;
EnergyStorage=0;
MetalStorage=0;
ExplodeAs=BIG_UNITEX;
SelfDestructAs=BIG_UNIT;
Category=ARM VTOL MOBILE WEAPON NOTSUB CTRL_P CTRL_Y
CTRL_W NOTSHIP ANTIEMG ANTIGATOR ANTILASER ANTIFLAME
LEVEL2 NOTLAND ALL ;
TEDClass=VTOL;
Copyright=Copyright 1997 Humongous Entertainment.
All rights reserved.;
UnitNumber=333;
firestandorders=1;
StandingFireOrder=2;
mobilestandorders=1;
StandingMoveOrder=1;
canmove=1;
canpatrol=1;
canstop=1;
canguard=1;
MaxVelocity=6.5;
BrakeRate=4;
Acceleration=0.2;
TurnRate=620;
SteeringMode=1;
ShootMe=1;
Canfly=1;
cruisealt=250;
BankScale=1;
EnergyMake=1.5;
DefaultMissionType=VTOL_standby;
maneuverleashlength=1280;
canattack=1;
Weapon1=Exp_heavyRocket;
badTargetCategory1=VTOL;
OnlyTargetCategory1=NOTAIR;
attackrunlength=225;
NoChaseCategory=VTOL;
MoveRate1=8;
Ovradjust=1;
maxwaterdepth=255;
}
then comes the hpipacker packing the files into .ufo
in game:
i can build this unit. it can fly. But it simply refuses to attack. i also tried "hoverattack=1;" but it still wont work.
by controlling this unit in FPS mode(press 'c'), i found it always target at somewhere very very high,and the statues is alwayse "aiming"
what i want to know is:whether exp_hvyrocket work in the air, or should something special be done like adjusting the 'attack run lenth' or some other parameter etc.
i have done the 3do file and the 'download' build menu entry.i copy cob&bos files from other units and made a little change on them: this is only a single-piece unit,so i think scripting might not be where the problem is.
then comes the fbi file in UNITS dir.
This is my fbi file:i made it mostly by coping and editing ARMLANCE fbi.
[UNITINFO]
{
UnitName=ARMAIRCR;
Version=1;
Side=ARM;
Objectname=ARMAIRCR;
Designation=AFD-J9;
Name=ARECRUISER;
Description=TEST Bomber;
FootprintX=3;
FootprintZ=3;
BuildCostEnergy=6598;
BuildCostMetal=408;
MaxDamage=500;
MaxWaterDepth=0;
MaxSlope=10;
EnergyUse=0;
BuildTime=3000;
WorkerTime=0;
BMcode=1;
Builder=0;
ThreeD=1;
ZBuffer=1;
NoAutoFire=0;
SightDistance=250;
RadarDistance=0;
SoundCategory=ARM_VTOL;
EnergyStorage=0;
MetalStorage=0;
ExplodeAs=BIG_UNITEX;
SelfDestructAs=BIG_UNIT;
Category=ARM VTOL MOBILE WEAPON NOTSUB CTRL_P CTRL_Y
CTRL_W NOTSHIP ANTIEMG ANTIGATOR ANTILASER ANTIFLAME
LEVEL2 NOTLAND ALL ;
TEDClass=VTOL;
Copyright=Copyright 1997 Humongous Entertainment.
All rights reserved.;
UnitNumber=333;
firestandorders=1;
StandingFireOrder=2;
mobilestandorders=1;
StandingMoveOrder=1;
canmove=1;
canpatrol=1;
canstop=1;
canguard=1;
MaxVelocity=6.5;
BrakeRate=4;
Acceleration=0.2;
TurnRate=620;
SteeringMode=1;
ShootMe=1;
Canfly=1;
cruisealt=250;
BankScale=1;
EnergyMake=1.5;
DefaultMissionType=VTOL_standby;
maneuverleashlength=1280;
canattack=1;
Weapon1=Exp_heavyRocket;
badTargetCategory1=VTOL;
OnlyTargetCategory1=NOTAIR;
attackrunlength=225;
NoChaseCategory=VTOL;
MoveRate1=8;
Ovradjust=1;
maxwaterdepth=255;
}
then comes the hpipacker packing the files into .ufo
in game:
i can build this unit. it can fly. But it simply refuses to attack. i also tried "hoverattack=1;" but it still wont work.
by controlling this unit in FPS mode(press 'c'), i found it always target at somewhere very very high,and the statues is alwayse "aiming"
what i want to know is:whether exp_hvyrocket work in the air, or should something special be done like adjusting the 'attack run lenth' or some other parameter etc.