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
#1
Making enemys smart enough to open doors?

Is there a config or something I can mod for this?

i spam meme 4 raeg
(This post was last modified: 01-19-2011, 09:41 PM by Shev.)
01-19-2011, 09:12 PM
Find
Oscar House Offline
Senior Member

Posts: 302
Threads: 3
Joined: Nov 2010
Reputation: 9
#2
RE: Making enemys smart enough to open doors?

Make an area in front of the door and a trigger that is called when the monster enters that area.
Make a function that checks if the door is closed, if yes, add a force that opens the door. If not, end the function.

[Image: 2exldzm.png]
01-19-2011, 10:21 PM
Find
Shev Offline
Member

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

(01-19-2011, 10:21 PM)Oscar House Wrote: Make an area in front of the door and a trigger that is called when the monster enters that area.
Make a function that checks if the door is closed, if yes, add a force that opens the door. If not, end the function.

Thats actually what I was doing, although I was hoping there would be a way to do it so I wouldn't have to do this with every frigen door :| guess not.

i spam meme 4 raeg
01-19-2011, 11:02 PM
Find
Shev Offline
Member

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

I got another question regarding AI.

Does the monster put its patrol nodes as a priority over the player? Or if it see's the player it ignores its patrol nodes, and goes straight for him?

i spam meme 4 raeg
01-20-2011, 02:34 AM
Find
GraphicsKid Offline
Senior Member

Posts: 258
Threads: 34
Joined: Dec 2010
Reputation: 3
#5
RE: Making enemys smart enough to open doors?

(01-20-2011, 02:34 AM)Shev Wrote: I got another question regarding AI.

Does the monster put its patrol nodes as a priority over the player? Or if it see's the player it ignores its patrol nodes, and goes straight for him?

The way the nodes work is IF there is NO direct path to the player, it snaps to the nearest patrol node and runs along the node web until it finds a node that has a direct path to the player. I mean... when I say "it runs along" I mean the pathfinding algorithm, not the monster.

So yes... if it can run straight at you, it will ignore it's pathnodes.
01-20-2011, 04:09 AM
Find
Equil Offline
Member

Posts: 94
Threads: 8
Joined: Sep 2010
Reputation: 0
#6
RE: Making enemys smart enough to open doors?

I have another question. Is it possible to make monsters be able to clip through entities? Sure this might be immersion breaking.. but I have a friend who just loves to hide up on bookshelves to escape monsters, or a makeshift tower made of boxes. The monster will just run up and mindlessly bash whatever he's standing on and then eventually wander off.

One solution I came up with was filling up a fair portion of the level with block boxes, but this is tedious to do and can restrict the player's mobility unintentionally.
01-20-2011, 04:18 AM
Find
Shev Offline
Member

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

Is it possible to make a function that detects if the enemy see's the player or not?

i spam meme 4 raeg
01-20-2011, 11:41 PM
Find
Tanshaydar Offline
From Beyond

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

(01-20-2011, 11:41 PM)Shev Wrote: Is it possible to make a function that detects if the enemy see's the player or not?

There is no function for it, but there is something like that:
void ShowEnemyPlayerPosition(string& asName);

01-21-2011, 01:13 PM
Website Find
Shev Offline
Member

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

(01-21-2011, 01:13 PM)Tanshaydar Wrote:
(01-20-2011, 11:41 PM)Shev Wrote: Is it possible to make a function that detects if the enemy see's the player or not?

There is no function for it, but there is something like that:
void ShowEnemyPlayerPosition(string& asName);

Guess I have to find a work around :|

i spam meme 4 raeg
01-21-2011, 09:42 PM
Find
Tanshaydar Offline
From Beyond

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

Trying to figure it out, but without having access to AI itself, it seems pointless to try to do complex things.
I had to show player to enemy every single time to do what I want to do.

01-21-2011, 10:56 PM
Website Find




Users browsing this thread: 3 Guest(s)