Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making enemys smart enough to open doors?
Shev Offline
Member

Posts: 238
Threads: 25
Joined: Dec 2010
Reputation: 0
#11
RE: Making enemys smart enough to open doors?

I don't suppose theres a way to figure out if a enemy didn't go to its next patrol node because its chasing the player right?

i spam meme 4 raeg
01-22-2011, 08:01 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#12
RE: Making enemys smart enough to open doors?

I didn't play with the patrol nodes yet so I don't know how they work; but I think you can place areas to check collides and if enemy is not there, you can assume it went to chase Danny.

01-23-2011, 01:03 PM
Website Find
Shev Offline
Member

Posts: 238
Threads: 25
Joined: Dec 2010
Reputation: 0
#13
RE: Making enemys smart enough to open doors?

Actually I think it is possible for them to know when you're being hunted. Its like alState == "hunt" or something. I saw it in the debug earlier, I'm gunna test it out.

i spam meme 4 raeg
01-24-2011, 04:17 AM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#14
RE: Making enemys smart enough to open doors?

lol, fast, do it, right it here Big Grin

01-24-2011, 11:37 AM
Website Find
Seragath Offline
Junior Member

Posts: 34
Threads: 1
Joined: Jan 2011
Reputation: 0
#15
RE: Making enemys smart enough to open doors?

Okey okey..Let me just understand this with a path node..If I place a path node somewhere on my map. Does any monster that walks by follow it (If it somehow detects the player) or am I forced to use the command "AddEnemyPatrolNode" So that the monster knows it's attached to that exact path node ?. If that's the case and "AddEnemyPatrolNode" is not needed at all...I'll get a better understanding why my monsters have horrible, horrible ai pathing. Tongue
01-26-2011, 08:28 PM
Find
Shev Offline
Member

Posts: 238
Threads: 25
Joined: Dec 2010
Reputation: 0
#16
RE: Making enemys smart enough to open doors?

You need to use AddEnemyPatrolNode.

i spam meme 4 raeg
01-26-2011, 10:07 PM
Find
Beatlebattle Offline
Junior Member

Posts: 27
Threads: 5
Joined: Jan 2011
Reputation: 0
#17
RE: Making enemys smart enough to open doors?

You already got the script to make a monster open a door with a trigger? I would really like to have that one please since I can't figure out how to OPEN an door instead of closing it.
02-01-2011, 04:46 PM
Find
Phoroneus Offline
Member

Posts: 141
Threads: 12
Joined: Feb 2011
Reputation: 0
#18
RE: Making enemys smart enough to open doors?

(01-26-2011, 08:28 PM)Seragath Wrote: Okey okey..Let me just understand this with a path node..If I place a path node somewhere on my map. Does any monster that walks by follow it (If it somehow detects the player) or am I forced to use the command "AddEnemyPatrolNode" So that the monster knows it's attached to that exact path node ?. If that's the case and "AddEnemyPatrolNode" is not needed at all...I'll get a better understanding why my monsters have horrible, horrible ai pathing. Tongue

Shev's response is not entirely correct. PathNodes will help monsters to navigate around obstacles even if they are not tied directly to each other, or if the monster is not tied directly to them, as long as the monster is tied to another node farther along the line. All nodes are used by all monsters when chasing Daniel or re-orienting to their former patrol routes after losing sight of Daniel, though they will not stop on nodes unless they are specifically told to do so.

For example, if you had ten nodes winding through hallways from PathNode_A to PathNode_B, and nodes A and B were not in line-of-sight of each other, but could be reached by following a series of the other nodes, the monster will follow the node path (calculated, I assume, by shortest total distance) until it gets to B.

If Daniel is seen along the route, the monster will abandon its path and begin chasing him. If he disappears, the monster will attempt to get back to its next patrol node (assuming Daniel appeared before the monster reached B, it would head towards B).

If the area is well-populated by nodes, the monster will be able to re-calculate a path based on its current position when it loses Daniel and be more successful in reaching B. Otherwise, it will have to path back towards those nodes that do exist or else attempt to walk directly towards B, only diverting in the case of walls or other obstacles.

Using a ShowEnemyPlayerPosition function becomes much more effective when there are nodes throughout the map, allowing monsters to path as quickly as possible to the player's location.

I believe, but have not tested, that monsters also use nodes during their "search" stage of chasing Daniel, i.e. right after he loses them and they are still actively looking for him (rather than "investigating" noises or "patrolling" between designated nodes).

[Image: at_9365860.png]

Follow Harvest.
02-02-2011, 06:16 AM
Find




Users browsing this thread: 1 Guest(s)