About Store Forum Documentation Contact



Post Reply 
AI Development Questions.
Author Message
Dampire Offline
Member

Post: #1
AI Development Questions.
How to remove chr from world?
Need for removing dead NPC.
03-15-2010 01:35 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #2
RE: AI Development Questions.
just delete the object from the container?

There is always evil somewhere, you just have to look for it properly.
03-15-2010 01:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: AI Development Questions.
ObjMemx::remove*

or

Chr::update()
{
return false;
}
03-15-2010 02:11 PM
Find all posts by this user Quote this message in a reply
Dampire Offline
Member

Post: #4
RE: AI Development Questions.
Thnx
03-15-2010 02:31 PM
Find all posts by this user Quote this message in a reply
Dampire Offline
Member

Post: #5
RE: AI Development Questions.
AI see player through walls. How to solve this problem? PhysRay testing?
03-16-2010 04:54 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: AI Development Questions.
yes, that's the suggested method
03-16-2010 05:19 PM
Find all posts by this user Quote this message in a reply
Dampire Offline
Member

Post: #7
RE: AI Development Questions.
Stupid AIs can't navigate the stairs :(. How I may say them, how to use waypoints? And how they select needed waypoint?
04-02-2010 05:51 AM
Find all posts by this user Quote this message in a reply
b1s Offline
Member

Post: #8
RE: AI Development Questions.
to add to these waypoints.. it would be nice if one could get get the orientation of the waypoint to the movement. it would help on positioning persons to correct places.
now we add an extra waypoint before the last one so that the char takes the direction correctly.
04-02-2010 10:15 AM
Find all posts by this user Quote this message in a reply
Dampire Offline
Member

Post: #9
RE: AI Development Questions.
How to check all waypoints.

Like this
Code:
REPA(Game::Waypoins)
Game::Waypoints[i]....
But it doesn't work.
(This post was last modified: 04-05-2010 06:40 AM by Dampire.)
04-04-2010 06:44 AM
Find all posts by this user Quote this message in a reply
Dampire Offline
Member

Post: #10
RE: AI Development Questions.
It's correct?
Code:
Game::Waypoints.lock();
REPA(Game::Waypoints)
{
   Game::Waypoins.lockedElm(i).data. ...
}
Game::Waypoints.unlock();

Upd.
Application crashes.
(This post was last modified: 04-05-2010 07:24 AM by Dampire.)
04-05-2010 07:01 AM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #11
RE: AI Development Questions.
Why not using Game::World.findWaypoint(name)?

There is always evil somewhere, you just have to look for it properly.
04-05-2010 12:44 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Dampire Offline
Member

Post: #12
RE: AI Development Questions.
Code:
REPA(AIs)
D.line(BLUE, AIs[i].pos(), AIs[i].pos() + AIs[i].matrix().z);

Earlier this code work perfectly, but now... This line drawing anywhere, but not from AI...
04-13-2010 07:27 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #13
RE: AI Development Questions.
try SetMatrix before drawing lines
04-13-2010 09:01 AM
Find all posts by this user Quote this message in a reply
Dampire Offline
Member

Post: #14
RE: AI Development Questions.
thnx, it's work)
One more question.
What's wrong in this code? Sometimes AI see a player, sometimes not...
Code:
REPA(Players)
   {
    if((AbsAngleBetween(dir,Players[i].pos()- pos())<=PI_4
                 && Dist(pos(),Players[i].pos())<=100))
    if(Players[i].alive())
        {    
        ctrl.actor.ray(false);
            PhysHit ray_hit;
                if(Physics.ray(pos(),Players[i].pos() - pos(),&ray_hit))
        {
           if(Player *player_t = CAST(Player,ray_hit.obj))
           {
                      attack(Players[i]);
                      alert_snd.create("sound/zombie/z_alert.ogg", pos(), 5, false, 1)
                                  .play();
                      psycho_state = AI_FIGHT;
           }
                }
                ctrl.actor.ray(true);                            
    }
}
(This post was last modified: 04-13-2010 10:28 AM by Dampire.)
04-13-2010 10:28 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #15
RE: AI Development Questions.
you need to debug and check at which point it doesn't proceed
04-13-2010 08:32 PM
Find all posts by this user Quote this message in a reply
Post Reply