TheWhiteDreamsOfLife
Junior Member
Posts: 7
Threads: 2
Joined: Oct 2010
Reputation:
0
|
Killing Monsters
Is it possible to somehow make it so that when you pick up an object like a box and throw it at a monster that you kill him? Because I was thinking about this map/game where you just have to defend against waves of monsters and you have a room full of boxes to throw at them as the rounds get progressively harder.
|
|
10-08-2010, 12:58 AM |
|
Chilton
Member
Posts: 138
Threads: 9
Joined: Sep 2010
Reputation:
0
|
RE: Killing Monsters
No.
Simple as that really
|
|
10-08-2010, 03:20 AM |
|
Pandemoneus
Senior Member
Posts: 328
Threads: 2
Joined: Sep 2010
Reputation:
0
|
RE: Killing Monsters
Yes it is possible, although you can't "kill" monsters.
void OnStart()
{
AddEntityCollideCallback("servant_grunt_1", "box", "KillGrunt", true, 1);
}
void KillGrunt(string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke(asParent, true);
}
I got an enemy (servant_grunt_1) and a box (box). When either collide, KillGrunt will be triggered and the enemy disappears. That means that enemies will disappear when they move against boxes too though.
Here's the map:
http://www.mediafire.com/?zpua0p38j9404sj
|
|
10-08-2010, 01:37 PM |
|
Chilton
Member
Posts: 138
Threads: 9
Joined: Sep 2010
Reputation:
0
|
RE: Killing Monsters
(10-08-2010, 01:37 PM)Pandemoneus Wrote: Yes it is possible, although you can't "kill" monsters.
void OnStart()
{
AddEntityCollideCallback("servant_grunt_1", "box", "KillGrunt", true, 1);
}
void KillGrunt(string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke(asParent, true);
}
I got an enemy (servant_grunt_1) and a box (box). When either collide, KillGrunt will be triggered and the enemy disappears. That means that enemies will disappear when they move against boxes too though.
Here's the map:
http://www.mediafire.com/?zpua0p38j9404sj
Thats interesting to know... I knew you couldnt kill them, but never really thought of making something like that
Anyway, hopefully this helps the OP
|
|
10-08-2010, 04:41 PM |
|
nofsky
Senior Member
Posts: 423
Threads: 13
Joined: Sep 2008
Reputation:
1
|
RE: Killing Monsters
Have anyone tried using the Model Editor to create a version of the enemy that is kill-able? You can test setting its HP to 1 or something like that.
I haven't tried this with the enemies, but I have tried to make the critters kill-able. No luck though, nothing I do (throwing rocks & boxes) seem to kill them even if I set up the model seemingly properly with DeathEntity, DeathSound properties etc.
|
|
10-12-2010, 03:32 AM |
|
vanjavk
Member
Posts: 54
Threads: 5
Joined: Sep 2010
Reputation:
0
|
RE: Killing Monsters
(10-08-2010, 01:37 PM)Pandemoneus Wrote: Yes it is possible, although you can't "kill" monsters.
void OnStart()
{
AddEntityCollideCallback("servant_grunt_1", "box", "KillGrunt", true, 1);
}
void KillGrunt(string &in asParent, string &in asChild, int alState)
{
FadeEnemyToSmoke(asParent, true);
}
I got an enemy (servant_grunt_1) and a box (box). When either collide, KillGrunt will be triggered and the enemy disappears. That means that enemies will disappear when they move against boxes too though.
Here's the map:
http://www.mediafire.com/?zpua0p38j9404sj
thank you very much it will be used in my map
|
|
04-17-2011, 07:12 PM |
|
skypeskype
Senior Member
Posts: 503
Threads: 6
Joined: Mar 2011
Reputation:
2
|
RE: Killing Monsters
Killing them just makes it easier and less scarier. NOT GOOD.
|
|
04-17-2011, 07:25 PM |
|
Peanuckle
Junior Member
Posts: 49
Threads: 4
Joined: Jun 2010
Reputation:
0
|
RE: Killing Monsters
This means that you could pile a ton of boxes into a huge wall, wait for the monster to get close, then topple the wall and smush him.
|
|
04-17-2011, 07:26 PM |
|
MrBigzy
Senior Member
Posts: 616
Threads: 18
Joined: Mar 2011
Reputation:
8
|
RE: Killing Monsters
It is possible if you had something that did damage; grunt's do have health. I'm not sure what happens when they die though, I think they just dissolve like other entities. They even have things like getting groggy after taking a certain amount of damage. Whether any of those work, I'm not sure.
It even has variables for sounds when hit by sord, club, and bullet type weapons. Which was for the earlier ideas for Amnesia. So if you could recreate the pickaxe or create other weapons for the game, which I think is entirely possible, then yea, you could kill them.
(This post was last modified: 04-17-2011, 07:38 PM by MrBigzy.)
|
|
04-17-2011, 07:34 PM |
|
Dalroc
Member
Posts: 57
Threads: 2
Joined: Mar 2011
Reputation:
0
|
RE: Killing Monsters
Just tried to set the Health of a Grunt to 10 and throwing some boxes at it.. Result is a monster that gets stuck in their static no animation mode.. Like when you place them in the Level Editor
It still makes sounds, but doesn't attack or move.
EDIT:
Some kind of function like AddEntityDeathCallback or something would be nice!
(This post was last modified: 04-17-2011, 08:04 PM by Dalroc.)
|
|
04-17-2011, 07:55 PM |
|
|