Frictional Games Forum (read-only)
Killing Monsters - 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: Killing Monsters (/thread-21193.html)

Pages: 1 2


RE: Killing Monsters - Erik The Born - 04-17-2013

(04-17-2013, 05:30 PM)Robosprog Wrote: Monsters can be killed, they take damage from stuff being thrown at them, Grunts and Brutes and Suitors though regenerate any HP lost, Water Lurkers are killable to my knowledge as they do not have this.

Ok but dont they flinch if they get hurt? I mean do I have to throw the stuffs at them or can I poke them with it. In any case can I disable the healht regeneration for the monsters? How do I do that?


RE: Killing Monsters - Your Computer - 04-17-2013

You can adjust the health regen in the model editor. Note that monsters do not have death animations, so even though the game considers them dead (i.e. places them in a "dead" state), the monster animation played will likely be the default, idle animation, but the monster will no longer have any collision to it when in a dead state.


RE: Killing Monsters - i3670 - 04-17-2013

I "killed" a grunt in the storage by jumping on him/her. He/she just went through the floor.


RE: Killing Monsters - Erik The Born - 04-17-2013

(04-17-2013, 06:58 PM)Your Computer Wrote: You can adjust the health regen in the model editor. Note that monsters do not have death animations, so even though the game considers them dead (i.e. places them in a "dead" state), the monster animation played will likely be the default, idle animation, but the monster will no longer have any collision to it when in a dead state.

Ok, is there anyway we can we can add a ragdoll death animation? Turning the monster in to ragdoll and maybe playing a sound?


RE: Killing Monsters - FlawlessHappiness - 04-17-2013

(04-17-2013, 07:20 PM)Erik The Born Wrote:
(04-17-2013, 06:58 PM)Your Computer Wrote: You can adjust the health regen in the model editor. Note that monsters do not have death animations, so even though the game considers them dead (i.e. places them in a "dead" state), the monster animation played will likely be the default, idle animation, but the monster will no longer have any collision to it when in a dead state.

Ok, is there anyway we can we can add a ragdoll death animation? Turning the monster in to ragdoll and maybe playing a sound?

Probably no, since the ragdoll would have to be teleported to the grunt, which isn't possible.

When stuff like potplants are breaking, they do get transformed into another object, that disappears... So maybe it's possible


RE: Killing Monsters - WALP - 04-17-2013

(04-17-2013, 07:20 PM)Erik The Born Wrote:
(04-17-2013, 06:58 PM)Your Computer Wrote: You can adjust the health regen in the model editor. Note that monsters do not have death animations, so even though the game considers them dead (i.e. places them in a "dead" state), the monster animation played will likely be the default, idle animation, but the monster will no longer have any collision to it when in a dead state.

Ok, is there anyway we can we can add a ragdoll death animation? Turning the monster in to ragdoll and maybe playing a sound?
Nah that would require you to get hands on source code, or spawn(activate) a seperate ragdoll entity, which is problematic since theres no way to track the locations of an enemy as far as I know. Even if you could somehow track the location you would still be in trouble since entities are activated at predefined locations in the level editor, you cant just script where it should appear, without source code that is.


RE: Killing Monsters - PutraenusAlivius - 04-18-2013

(04-17-2013, 07:20 PM)Erik The Born Wrote:
(04-17-2013, 06:58 PM)Your Computer Wrote: You can adjust the health regen in the model editor. Note that monsters do not have death animations, so even though the game considers them dead (i.e. places them in a "dead" state), the monster animation played will likely be the default, idle animation, but the monster will no longer have any collision to it when in a dead state.

Ok, is there anyway we can we can add a ragdoll death animation? Turning the monster in to ragdoll and maybe playing a sound?

You can't unless you have all codes, including the source code that came with AngelScript.


RE: Killing Monsters - The chaser - 04-18-2013

You can actually code an AddEntityCollideCallback with the monsters.

Use:

void OnStart()
{
AddEntityCollideCallback("Weapon", "servant_grunt_2", "KillDaGrunt", true, 1);
}

void KillDaGrunt(string &in asParent, string &in asChild, int alState)
{
SetPropActiveAndFade("servant_grunt_2", false, 1);
}


RE: Killing Monsters - FlawlessHappiness - 04-18-2013

And make it more advanced with with variables, so you have to hit it more than one time.


RE: Killing Monsters - Romulator - 04-18-2013

Or you could make a "scripted" death, like for example, you can see a monster in the distance, so you go above some stairs to push a heavy box down and when the box hits a certain area, just makes the monster disappear and gives sanity.
Because the player is looking down at the box, it looks like it crushed him :3