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
Monster's Mind
Hardarm Offline
Posting Freak

Posts: 891
Threads: 39
Joined: Apr 2011
Reputation: 43
#1
Monster's Mind

So.. I've added some PathNodes and an unactive monster. (the enemy suitor from Justine).

Then i found a .nodes file called Potatoe_enemy_suitor.nodes (Potatoe is actually the name of my map, not ingame hopefully Big Grin ).

I found out that in the main game's map there are LOOOTS of path nodes,
But in the hps file they add only few nodes at the path!

Now i want to be sure, the extra path nodes are for the enemy to come back in case of being far from the last path node reached before he can see me? Because I didn't add anything to reach for the suitor in the hps yet. But a new file has been created... So I shall add a MAIN path for the monster to go through, and add lots of other path nodes in case the monster is far from the last path node that he was on? (He would hit the wall trying to reach the next path node in a linear way, i think) ...
I mean will he reach the nearest path node then the nearest once again till he doesn't reach the main one I ordered him to reach?

This can solve lots of problems with the monsters too Undecided


listen to boards of canada
(This post was last modified: 06-26-2011, 01:58 PM by Hardarm.)
06-25-2011, 08:16 PM
Website Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: Monster's Mind ... ?

From what I know, you should add path nodes everywhere you want a monster to easily navigate. If you don't put path nodes in a hypothetical hallway (we'll call it hall A), the monster will still move there if it sees the player there. The only problem occurs when the monster turns a corner or moves around an object and there are no nodes to help it patrol back around said corner/object.

Now, a properly path-mapped level will have nodes everywhere a monster can get stuck, and even then some. This will make it so when the monster turns that nasty corner in hall A but loses sight of the player, it will turn to the nearest path node in line with its destination node and move there, using nodes that will give it the shortest path back to its assigned patrol nodes. This is why there are a kajillion path nodes in a given map file, but many of them are unscripted/unassigned. They are just used by the monsters as their yellow-brick-roads back to where they're supposed to be.

If you want to study the AI of the monsters, I suggest making what I call a "sandbox" map. Put a bunch of rooms, objects, doors, closets, nodes, distraction objects, etc and put a monster there. I also use my sandbox map to test scripts and such, but that's another story. Then activate the entity info in your debug tab. It will show all path nodes and draw the monster's (or monsters' D: ) current path(s) with a nice purple line. It will also show a red node, which I believe depicts the place the monster(s) most recently saw/heard the player or any sounds he made.

P.S. don't try and study two monsters at once. It's freaking scary toying with those things.

(This post was last modified: 06-25-2011, 09:35 PM by palistov.)
06-25-2011, 09:33 PM
Find
Hardarm Offline
Posting Freak

Posts: 891
Threads: 39
Joined: Apr 2011
Reputation: 43
#3
RE: Monster's Mind ... ?

thank you Smile

my map is full of things so I must put at least 300 path nodes Tongue

listen to boards of canada
06-25-2011, 10:08 PM
Website Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#4
RE: Monster's Mind ... ?

Haha that's quite a few nodes!

06-25-2011, 11:39 PM
Find
Hardarm Offline
Posting Freak

Posts: 891
Threads: 39
Joined: Apr 2011
Reputation: 43
#5
RE: Monster's Mind ... ?

I'm almost at 400 now

listen to boards of canada
06-26-2011, 01:58 PM
Website Find
skypeskype Offline
Senior Member

Posts: 503
Threads: 6
Joined: Mar 2011
Reputation: 2
#6
RE: Monster's Mind

Well... Without lots of nodes you cant distract the monster neither. What I mean is that if you throw a book or something somewhere the monster should go and investigate. Without nodes, he will growl and continue his path.
06-26-2011, 06:24 PM
Website Find




Users browsing this thread: 1 Guest(s)