you forgot to code in cl_hax :(

- Bruce "Bahamut" Andrews



[EMAIL PROTECTED] wrote:

ai.c:56: parse error before `}'

Fixed in Subversion revision 537; here's the patch.

--- ai.old.c    Thu Oct 28 07:00:52 2004
+++ ai.new.c    Thu Oct 28 07:01:08 2004
@@ -52,6 +52,6 @@
>      );
> //TODO: read self.speed from a array?
> //TODO: sidesteep walking, target forgeting? target change?
->    break
+>    break;
> }



//TODO: self inconscious, self sleep? :D
if(self.dead)
 return;

if (CanSee(Enemy.origin))
{
//TODO: reaction time, and vision angle,etc.. realism
    self.goalorigin = Enemy.location;
    if (self.gunReady && self.ammo)
    {
        self.status = HUNTING;
    }
/*
//TODO: implement reloading and dumbass
    else
    if (!self.ammo)
    {
        self.status = RELOADING;
    }
    else
    {
        self.status = LOOKDUMB;
    }*/
}
else
{
    CanSee(self.goalorigin);
//TODO: detect for holes in ground :D
    self.status = PATHFINDING;
}

switch(self.status)
{
default:
  //idle
  RandomNoise(IDLE);
//TODO: change angle? pick a random trace_path and follow?, start a
dialogue with other foe?
  break;
case HUNTING:
  AnimateShooting();
//TODO: implement precision and mental state (happy, stressed, pain,
fear, etc..)
  if (self.frame == FIRING_FRAME)
        Shot(self.weapon);
  break;
case PATHFINDING:
  self.WalkTo(
        self.origin +
        normalize(self.goalorigin - self.origin) *
        self.speed
        );
//TODO: read self.speed from a array?
//TODO: sidesteep walking, target forgeting? target change?
  break
}



_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders





_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders



Reply via email to