Frictional Games Forum (read-only)
[Help] Is it possible? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [Help] Is it possible? (/thread-21492.html)



[Help] Is it possible? - Artyom - 05-14-2013

Hi i was just wondering if it's possible to make critters follow pathnodes?
Or are they always random?

Thanks


RE: [Help] Is it possible? - Apjjm - 05-15-2013

(05-14-2013, 09:28 PM)Zandorio Wrote: Hi i was just wondering if it's possible to make critters follow pathnodes?
Or are they always random?

Thanks

Firstly, i cannot say for certain as i do not recall trying this. I don't think they can though (to test it, just add some path nodes and see if they can follow them - if it doesn't work with this test then it can't be done).

All is not lost if you cannot get them to follow the pathnodes though! You can always make a custom enemy from the critter by adjusting the entity type. You will probably need to mess around renaming the animations and perhaps adding some dummy ones in the entity file (you shouldn't need to do any modeling stuff though unless you want your critter to attack, which it doesn't have the animations for!). You will then need to configure the enemy variables so it has the same hitbox and speed of the critter. Getting all this configured right will probably be a bit of a slog and take some time - but it will work eventually.
After adding your enemy-critter to the map you will need to disable enemy triggers through scripting so that the critter doesn't start chasing the player instead of following path nodes.


RE: [Help] Is it possible? - OriginalUsername - 05-15-2013

But if you'd make the critter a enemy, wouldn't it drain your sanity and have the sanity-lose effects?


RE: [Help] Is it possible? - Artyom - 05-15-2013

(05-15-2013, 03:53 AM)Apjjm Wrote:
(05-14-2013, 09:28 PM)Zandorio Wrote: Hi i was just wondering if it's possible to make critters follow pathnodes?
Or are they always random?

Thanks

Firstly, i cannot say for certain as i do not recall trying this. I don't think they can though (to test it, just add some path nodes and see if they can follow them - if it doesn't work with this test then it can't be done).

All is not lost if you cannot get them to follow the pathnodes though! You can always make a custom enemy from the critter by adjusting the entity type. You will probably need to mess around renaming the animations and perhaps adding some dummy ones in the entity file (you shouldn't need to do any modeling stuff though unless you want your critter to attack, which it doesn't have the animations for!). You will then need to configure the enemy variables so it has the same hitbox and speed of the critter. Getting all this configured right will probably be a bit of a slog and take some time - but it will work eventually.
After adding your enemy-critter to the map you will need to disable enemy triggers through scripting so that the critter doesn't start chasing the player instead of following path nodes.

Thanks, guess I could try. Would be really cool!


RE: [Help] Is it possible? - PutraenusAlivius - 05-15-2013

Zandorio, you have to consider Smoke's post. It's hard-coded in the game you have to disable sanity drain in order so you don't loose sanity.


RE: [Help] Is it possible? - Artyom - 05-15-2013

(05-15-2013, 02:59 PM)JustAnotherPlayer Wrote: Zandorio, you have to consider Smoke's post. It's hard-coded in the game you have to disable sanity drain in order so you don't loose sanity.

Alright, I do understand fairly advanced coding, and I've tried a few different methods to see if It's possible without changing to much.

Thanks for the help anyways, I appreciate it alot.


RE: [Help] Is it possible? - OriginalUsername - 05-15-2013

(05-15-2013, 04:31 PM)Zandorio Wrote:
(05-15-2013, 02:59 PM)JustAnotherPlayer Wrote: Zandorio, you have to consider Smoke's post. It's hard-coded in the game you have to disable sanity drain in order so you don't loose sanity.

Alright, I do understand fairly advanced coding, and I've tried a few different methods to see if It's possible without changing to much.

Thanks for the help anyways, I appreciate it alot.

You can turn off the screen effects if it's a full conversion. But then the player won't be able to see the screen effects when looking at monsters. I'm not sure how hard it would be to turn off the hard coded part, but I think it'll be hard. Just some things to be considered when making this.


RE: [Help] Is it possible? - palistov - 05-15-2013

You could probably do it. It'll probably require a lot of work though. I got a spider to follow me around a while back. That took a good long while. It was really funky because I had to switch between two entities so the critter would face weird directions.

Anyways, yeah you could probably make it a water lurker monster type, since I don't think you lose sanity when looking at lurkers. Lurkers can't be assigned path nodes if I remember correctly...so you'll have to use "food" entities to get him to move.

Edit: that'll also cause issues if you want more than one critter, because they'll both probably chase the food, so it'll be hard to control them. But anyways this is just off the top of my head.


RE: [Help] Is it possible? - PutraenusAlivius - 05-16-2013

(05-15-2013, 11:12 PM)palistov Wrote: You could probably do it. It'll probably require a lot of work though. I got a spider to follow me around a while back. That took a good long while. It was really funky because I had to switch between two entities so the critter would face weird directions.

Anyways, yeah you could probably make it a water lurker monster type, since I don't think you lose sanity when looking at lurkers. Lurkers can't be assigned path nodes if I remember correctly...so you'll have to use "food" entities to get him to move.

Edit: that'll also cause issues if you want more than one critter, because they'll both probably chase the food, so it'll be hard to control them. But anyways this is just off the top of my head.

Actually, Water Lurkers can follow pathnodes and they drain sanity. This is proved on the Cellar Archives and Archive Tunnels.


RE: [Help] Is it possible? - palistov - 05-17-2013

Yes, they follow them. I said you can't assign them path nodes. You can't command them to follow a path you want them to.