Alright you will have to be good to understand what this means ... it's a peice of code from my Godlike Rbots.
if(DistToTarg >= .8)
{
if(acid == 1 && getthingflags(target) & 0x2000000 && !getthingflags(rbot) & 0x2000000) call sidestep;
if(acid == 1 && getthingflags(target) & 0x2000000 && getthingflags(rbot) & 0x2000000) call acid_to_acid_tatics;
if(acid == 1 && !getthingflags(target) & 0x2000000 && getthingflags(rbot) & 0x2000000) call acid_to_ground_tatics;
if(acid != 1 && !getthingflags(target) & 0x2000000 && getthingflags(rbot) & 0x2000000) call water_to_ground_tatics;
if(acid != 1 && !getthingflags(target) & 0x2000000 && getthingflags(rbot) & 0x2000000) call water_to_ground_tatics;
AiSetMovePos(rbot, GetThingPos(target));
}
else if(curweap != 5) call sidestep; else AiSetMovePos(rbot, GetThingPos(target));
if (VectorLen(GetThingVel(rbot)) < 2.3 && !(getthingflags(rbot) & 0x2000000)) AddThingVel(rbot, VectorScale(GetThingVel(rbot), 0.33));
Bassicly it means that if the target is far away , it will move toward the target, and at the same time if it's in water/acid it will call apon special tatics
After that if it's upclose and the bot doesn't have a flak cannon , move out of the way before it gets hit, else if it does have a flak cannon move right up to the target.
Note: Acid also counts for lava, deadly water and other types of hurtful water.
Now the problem , the bots just don't work , I don't know if it's a synax problem , no idea
Can someone help me ?
if(DistToTarg >= .8)
{
if(acid == 1 && getthingflags(target) & 0x2000000 && !getthingflags(rbot) & 0x2000000) call sidestep;
if(acid == 1 && getthingflags(target) & 0x2000000 && getthingflags(rbot) & 0x2000000) call acid_to_acid_tatics;
if(acid == 1 && !getthingflags(target) & 0x2000000 && getthingflags(rbot) & 0x2000000) call acid_to_ground_tatics;
if(acid != 1 && !getthingflags(target) & 0x2000000 && getthingflags(rbot) & 0x2000000) call water_to_ground_tatics;
if(acid != 1 && !getthingflags(target) & 0x2000000 && getthingflags(rbot) & 0x2000000) call water_to_ground_tatics;
AiSetMovePos(rbot, GetThingPos(target));
}
else if(curweap != 5) call sidestep; else AiSetMovePos(rbot, GetThingPos(target));
if (VectorLen(GetThingVel(rbot)) < 2.3 && !(getthingflags(rbot) & 0x2000000)) AddThingVel(rbot, VectorScale(GetThingVel(rbot), 0.33));
Bassicly it means that if the target is far away , it will move toward the target, and at the same time if it's in water/acid it will call apon special tatics
After that if it's upclose and the bot doesn't have a flak cannon , move out of the way before it gets hit, else if it does have a flak cannon move right up to the target.
Note: Acid also counts for lava, deadly water and other types of hurtful water.
Now the problem , the bots just don't work , I don't know if it's a synax problem , no idea
Can someone help me ?