Mod Question Repository... Questions come in, answers go out
Moderator: Moderators
- Pressure Line
- Posts: 2283
- Joined: 21 May 2007, 02:09
-
- Posts: 854
- Joined: 28 Jan 2005, 18:15
You'll need to add
into either your exptype.h or STANDARD_COMMANDS_GPL.h, whichever you have as an include for your bos file, or just add it at the top of your bos file. Its better to add it in the include, since you're probably including it in all your other bos's as well, and you may need it.
Then you will probably want to use something like to find out what it is, and to, you know, set it. I'm not sure if its a % of the total, or its actual amount, but if your unit has more than 100 fuel, that wouldn't take long to figure out.
Code: Select all
#define CURRENT_FUEL 93
Then you will probably want to use something like
Code: Select all
someVariable = get CURRENT_FUEL;
Code: Select all
set CURRENT_FUEL #;
My commander is messed up, could someone help me. It can't be attacked by enemies. That's all that's wrong to my knowledge.
If you need anything else let me know >__<
Code: Select all
[UNITINFO]
{
[SFXTypes]
{
ExplosionGenerator0=custom:HelluvaLargeSpray;
}
//Internal settings
BuildPic=HCOMM.png
Category=HUMAN GROUND COMMANDER PLANT;
ObjectName=HCOMM.s3o;
Side=HUMAN;
TEDClass=PLANT;
UnitName=HCOMM;
//Unit limitations and properties
Commander=1;
BuildTime=500;
BuildDistance=50;
Description=Headquarters;
MaxDamage=2500;
Name=Command Center;
RadarDistance=1500;
RadarDistanceJam=1000;
SightDistance=1500;
SoundCategory=HCOMM;
WorkerTime=100;
//Energy and metal related
BuildCostEnergy=5000;
BuildCostMetal=3000;
EnergyStorage=500;
EnergyMake=50;
MetalMake=10;
//Pathfinding and related
FootprintX=13;
FootprintZ=13;
MaxSlope=40;
MaxWaterDepth=20;
MovementClass=HCOMM;
yardmap=ooooooooooooo ooooooooooooo ooooooooooooo ooooooooooooo ooooooooooooo ooooooooooooo ooooooooooooo ooooooooooooo ooooocccooooo ooooocccooooo ooooocccooooo ooooocccooooo ooooocccooooo;
//Abilities
builder=1;
firestandorders=1;
StandingFireOrder=2;
mobilestandorders=1;
StandingMoveOrder=1;
CanAttack=1;
CanGuard=1;
CanPatrol=1;
CanStop=1;
CantBeTransported=1;
//Weapons and related
SelfDestructCountdown=15;
Weapon1=HCOMMLAS;
Weaponmaindir1=0 0 1;
Maxangledif1=180;
Weapon2=HCOMMLAS;
Weaponmaindir2=0 0 -1;
Maxangledif2=180;
Weapon3=HCOMMLAS;
Weaponmaindir3=-1 0 0;
Maxangledif3=180;
Weapon4=HCOMMLAS;
Weaponmaindir4=1 0 0;
Maxangledif4=180;
}
Works fine in the latest version, I do believe....though it might have to do with the completely 'o' yardmap (edit: nevermind it wouldn't be that...I got o and c mixed up again >_<)
Last edited by Peet on 27 Jul 2007, 00:59, edited 1 time in total.
Did the units that are trying to hit the comm something that could avoid it?Snipawolf wrote:My commander is messed up, could someone help me. It can't be attacked by enemies. That's all that's wrong to my knowledge.
For example....
OnlyTargetCategory1=NOTAIR;
VonGratz

Last edited by VonGratz on 27 Jul 2007, 21:16, edited 1 time in total.
- KingRaptor
- Zero-K Developer
- Posts: 838
- Joined: 14 Mar 2007, 03:44
- Pressure Line
- Posts: 2283
- Joined: 21 May 2007, 02:09