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
Killing Monsters
TheWhiteDreamsOfLife Offline
Junior Member

Posts: 7
Threads: 2
Joined: Oct 2010
Reputation: 0
#1
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
Find Reply
Chilton Offline
Member

Posts: 138
Threads: 9
Joined: Sep 2010
Reputation: 0
#2
RE: Killing Monsters

No.
Simple as that really
10-08-2010, 03:20 AM
Find Reply
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#3
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
Find Reply
Chilton Offline
Member

Posts: 138
Threads: 9
Joined: Sep 2010
Reputation: 0
#4
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
Find Reply
nofsky Offline
Senior Member

Posts: 423
Threads: 13
Joined: Sep 2008
Reputation: 1
#5
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
Find Reply
vanjavk Offline
Member

Posts: 54
Threads: 5
Joined: Sep 2010
Reputation: 0
#6
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 Smile it will be used in my map Big Grin

vanjavk
04-17-2011, 07:12 PM
Find Reply
skypeskype Offline
Senior Member

Posts: 503
Threads: 6
Joined: Mar 2011
Reputation: 2
#7
RE: Killing Monsters

Killing them just makes it easier and less scarier. NOT GOOD.
04-17-2011, 07:25 PM
Website Find Reply
Peanuckle Offline
Junior Member

Posts: 49
Threads: 4
Joined: Jun 2010
Reputation: 0
#8
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
Find Reply
MrBigzy Offline
Senior Member

Posts: 616
Threads: 18
Joined: Mar 2011
Reputation: 8
#9
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
Find Reply
Dalroc Offline
Member

Posts: 57
Threads: 2
Joined: Mar 2011
Reputation: 0
#10
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 Tongue
It still makes sounds, but doesn't attack or move.
EDIT:
Some kind of function like AddEntityDeathCallback or something would be nice! Smile
(This post was last modified: 04-17-2011, 08:04 PM by Dalroc.)
04-17-2011, 07:55 PM
Find Reply




Users browsing this thread: 1 Guest(s)