Doom monster
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Creating new states
 
Author
All times are GMT. The time now is 17:00. Post New Thread    Post A Reply
Magnum Express
Junior Member


Posts: 121
Registered: 12-10


What are some tips for creating custom states? For example, I want to try to create a state where the monster follows a specified path until it sees or hears the player. Also, would this involve anything other than DECORATE?

Last edited by Magnum Express on 01-04-12 at 16:46

Old Post 12-29-11 02:19 #
Magnum Express is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 7036
Registered: 07-07


For following paths, you might want to have that custom state sequence include calls to Thing_SetGoal. You can use specials directly in DECORATE code.

I think if you use a TID of 0 it'll affect only the activator (that is to say, the monster that calls that special from its states) but I'm not sure about that.

Old Post 12-29-11 08:17 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Magnum Express
Junior Member


Posts: 121
Registered: 12-10


How would I set this up? Individually for each monster?

Old Post 12-29-11 15:14 #
Magnum Express is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Kappes Buur
Member


Posts: 497
Registered: 11-02


http://www.zdoom.org/zdkb/zdoom7.html

or

http://www.mediafire.com/?x6co8exow7wl5j9

Last edited by Kappes Buur on 12-29-11 at 15:25

Old Post 12-29-11 15:20 #
Kappes Buur is offline Profile || Blog || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Magnum Express
Junior Member


Posts: 121
Registered: 12-10


Is the monster supposed to walk in zig-zags? I tested this on a Former Sergeant, and it didn't keep to a straight path. Also, it didn't pause at the proper node, but at the one before it.

Last edited by Magnum Express on 12-29-11 at 16:13

Old Post 12-29-11 16:01 #
Magnum Express is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Magnum Express
Junior Member


Posts: 121
Registered: 12-10


Never mind that last question, as I have a state that I want to create: Instead of the normal "alert" state (I'm not sure if that is its name), if a monster hears the player attack, a projectile hit a wall, or another monster get hit/killed, it will go investigate the area (at a speed slower than its normal movement speed) that it estimates the sound to have come from (that is going to be the tricky part). The monster will investigate this area for a while (5-10 seconds or so), and then return to its previous location. However, if it sees the player or the corpse of another monster in this state, it should go on alert. I also wanted this "investigation" state to be triggered when the monster momentarily spots the player (within a period of a few tics or so) instead of going on alert, but that part can wait. I'm not sure if a state like this is possible, but I would like to know if there is some way of creating it.

Last edited by Magnum Express on 01-03-12 at 01:35

Old Post 12-30-11 18:09 #
Magnum Express is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Magnum Express
Junior Member


Posts: 121
Registered: 12-10


I have an idea on how to trigger this state, but I don't know how to set up the state itself. Could someone help me with this, or at least point me in the right direction?

Last edited by Magnum Express on 01-03-12 at 16:26

Old Post 12-31-11 18:11 #
Magnum Express is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Magnum Express
Junior Member


Posts: 121
Registered: 12-10


A "stunned" or "blinded" state wouldn't hurt, either.

Old Post 02-26-12 23:31 #
Magnum Express is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 7036
Registered: 07-07


You'll want to use custom damage types so that you can set up multiple different pain states.

Old Post 02-27-12 00:12 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Magnum Express
Junior Member


Posts: 121
Registered: 12-10


Thanks, Gez. I am still looking for a solution to my other problem, though.

Old Post 02-27-12 01:31 #
Magnum Express is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Magnum Express
Junior Member


Posts: 121
Registered: 12-10


If my "investigation" state is impossible, you guys can just go ahead and tell me. I've been waiting for help on that for long enough.

Old Post 03-19-12 00:05 #
Magnum Express is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Maes
I like big butts!


Posts: 8658
Registered: 07-06


AFAIK monsters can "lock in" to a specific THING as their target, and always home for its exact X,Y,Z coordinates, even if they appear to be wandering aimlessly, and even if the target moves.

In order to do an "area investigation", as you put it, the monster would have to be headed to the location where the sound was generated (even if the cause of the sound has moved), and not actively follow the player by tracking his map position (like they normally do).

This can't be done unless you use a modified state that causes the monster to "hunt" this fixed, "sound generated" position instead of the player.

A way to do that would be to spawn an invisible "sound decoy" object at the position of the player whenever a monster is alerted by hearing alone (not by visual contact), and have the monsters home into that object instead of the player's actual position.

Of course different monsters may be investigating different sound sources at the same time. Once the source is found however, if the player has moved and is not visible, the monsters should revert to either a dormant or an "aimless wander" state, without actually having the player as a target.

Old Post 03-19-12 00:24 #
Maes is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Magnum Express
Junior Member


Posts: 121
Registered: 12-10


This is what I was going to do. I'm still curious about how to activate the Alert state when the monster sees a dead monster, though. But thanks for the help!

EDIT: This "Sound Source" thing that you mentioned is supposed to be dropped when the player fires or the hit monster screams, right? That is what I had in mind.

Old Post 03-19-12 00:43 #
Magnum Express is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 17:00. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Creating new states

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory