Mancubus
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 > Screwing around with DEH\BEX
Pages (2): [1] 2 »  
Author
All times are GMT. The time now is 15:39. Post New Thread    Post A Reply
Marcaek
Forum Regular


Posts: 713
Registered: 12-10


It it possible to prevent a monster from dropping it's weapon\ammo when it dies using DEH or BEX?

Last edited by Marcaek on 11-24-11 at 17:08

Old Post 11-22-11 23:04 #
Marcaek is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
andrewj
Senior Member


Posts: 1379
Registered: 04-02


No, that can't be changed via DEH or BEX.

Old Post 11-23-11 02:58 #
andrewj is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
EarthQuake
9.5 on the Richter!


Posts: 2745
Registered: 05-03


code:
Patch File for DeHackEd v3.0 Doom version = 21 Patch format = 6 # Turn imp into a clipless trooper... Thing 12 (Imp) Initial frame = 174 Hit points = 20 First moving frame = 176 Injury frame = 187 Close attack frame = 0 Far attack frame = 184 Death frame = 189 Exploding frame = 194 Respawn frame = 203 Bits = SHOOTABLE + SOLID + COUNTKILL

Old Post 11-23-11 07:34 #
EarthQuake is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Phml
Forum Staple


Posts: 2031
Registered: 06-09


Couldn't you also change the dropped ammo/weapon to a blank, invisible item and change a blank item to the corresponding ammo/weapon (for normal, manually placed pickups)? Or would that cause problems?

Old Post 11-23-11 11:08 #
Phml is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
andrewj
Senior Member


Posts: 1379
Registered: 04-02



Phml said:
Couldn't you also change the dropped ammo/weapon to a blank, invisible item and change a blank item to the corresponding ammo/weapon (for normal, manually placed pickups)?

Not with DEH/BEX, pickups are hard-coded in the engine, so you could make the bullet clip invisible and untouchable but there is no way to make another item act as a bullet clip.

Old Post 11-23-11 11:47 #
andrewj is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Phml
Forum Staple


Posts: 2031
Registered: 06-09


I'm not sure I understand. I made a bex patch where shotgunners dropped shells instead of shotguns (turning the shotgun into shells, all I did is change the item ID and sprite IIRC). It seems to work fine. Admittedly, I don't use the normal shotgun, so maybe that's why it works?

Old Post 11-23-11 12:18 #
Phml is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
fraggle
Super Moderator


Posts: 5999
Registered: 07-00


Yeah, you could swap the trooper's details with a different thing that doesn't drop items. Alternatively, you could make clips be invisible and un-pickupable, but that would have the adverse effect of breaking normal clips.

Old Post 11-23-11 12:35 #
fraggle is online now Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Marcaek
Forum Regular


Posts: 713
Registered: 12-10


I've been attempting to convert some DECORATE monsters to DEH, and am starting to realize why people don't make dehacked monsters anymore.

I was very disappointed to find that monsters can't use player weapon codepointers :(

EDIT: Can I use something like SSWVA2A8 rather than seperate sprites for both? Also is it possible to have rotations for a sprite that originally did not have them?

Last edited by Marcaek on 11-23-11 at 21:57

Old Post 11-23-11 18:57 #
Marcaek is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
EarthQuake
9.5 on the Richter!


Posts: 2745
Registered: 05-03


Item dropping is determined by the thing type, as far as I know. The monsters can use whatever frames they want as long as the sprite exists, even sprite frames not present in the original game (you could use SHELB0 in DeHackEd for instance). And yes, it's possible to define full rotations for frames that have only one rotation or mirrored rotations.

In DeHackEd, you only specify the frame index (the letter). The engine takes care of the rest when loading sprites from the wad. Keep in mind, each frame must have a complete rotation, whether it be:

Single rotation: e.g. A0
Mirrored rotation: e.g. A1, A2A8, A3A7, A4A6, A5
Full rotation: e.g. A1, A2, A3, A4, A5, A6, A7, A8

Old Post 11-24-11 05:06 #
EarthQuake is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Marcaek
Forum Regular


Posts: 713
Registered: 12-10


Thanks for the info. I'm picking up on this pretty quickly. Just finished the Arachnophyte from realm667, going to try some others now.

I managed to get monsters to shoot BFG balls, but it's wonky and crash prone, and plasma rifle shots don't work at all :\

Old Post 11-24-11 05:14 #
Marcaek is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
EarthQuake
9.5 on the Richter!


Posts: 2745
Registered: 05-03



andrewj said:

Not with DEH/BEX, pickups are hard-coded in the engine, so you could make the bullet clip invisible and untouchable but there is no way to make another item act as a bullet clip.



Sure there is. In vanilla, item pickups are determined by the sprite name of the thing when you pick it up. If another item uses SHEL*, it will act like a Shell pickup. This however, isn't always the case with source ports though... some retain this behavior (ZDoom and Chocolate Doom afaik), while some don't. Here is a thread explaining it, where I'm trying to get the behavior corrected in ZDaemon.

Old Post 11-24-11 05:15 #
EarthQuake is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
esselfortium
Cumulonimbus Antagonistic Posting


Posts: 5268
Registered: 01-02



Marcaek said:
Thanks for the info. I'm picking up on this pretty quickly. Just finished the Arachnophyte from realm667, going to try some others now.

I managed to get monsters to shoot BFG balls, but it's wonky and crash prone, and plasma rifle shots don't work at all :\


Monsters can't use the player's weapon codepointers, and vice versa. In some source ports it might be allowed, but in general you're most likely to get some combination of crashes and completely random, undefined behavior.

Old Post 11-24-11 05:21 #
esselfortium is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
EarthQuake
9.5 on the Richter!


Posts: 2745
Registered: 05-03


You can recreate them accurately enough, but it requires sacrificing something in order to gain something. Since all projectile-spawning codepointers are used by existing Doom monsters, you really only have the option of reusing those codepointers on new monsters. You can't add stuff with DeHackEd/BEX without giving something else up. That's the disadvantage of using it.

Old Post 11-24-11 05:32 #
EarthQuake is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Marcaek
Forum Regular


Posts: 713
Registered: 12-10


man that commander keen thing sure is useful

Didn't realize it was technically a monster, solves the item drop problem somewhat.

Old Post 11-24-11 05:49 #
Marcaek is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
EarthQuake
9.5 on the Richter!


Posts: 2745
Registered: 05-03


You can use any thing as a base for a monster, even a decoration. In particular, you might find the hanging marine corpses useful because they come in two flavors: blocking and non-blocking. There is also a duplicate player gibs decoration. You can transform any of these into monsters by assigning valid states to them, but just be aware that source ports that display an "obituary" message when the thing kills you might not work when you make a decoration into a monster. None of these decorations have item drops tied to them, so they're all for grabs without significantly impacting the game's variety.

Old Post 11-24-11 06:14 #
EarthQuake is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
andrewj
Senior Member


Posts: 1379
Registered: 04-02



EarthQuake said:
In vanilla, item pickups are determined by the sprite name of the thing when you pick it up. If another item uses SHEL*, it will act like a Shell pickup.

Ahh, you're right, thanks for the correction.

Old Post 11-24-11 06:36 #
andrewj is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Marcaek
Forum Regular


Posts: 713
Registered: 12-10



EarthQuake said:
You can use any thing as a base for a monster, even a decoration.


And here I had assumed that monster things were hardcoded, woohoo!

Last edited by Marcaek on 11-24-11 at 16:00

Old Post 11-24-11 13:28 #
Marcaek is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Marcaek
Forum Regular


Posts: 713
Registered: 12-10


Why do many monsters use duplicate chase frames with a duration of 3 instead of 1 frame with a duration of 6?

Sorry about the doublepost but I have a feeling if I don't people will think I'm done with this thread.

Old Post 11-24-11 16:01 #
Marcaek is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
phobosdeimos1
Member


Posts: 625
Registered: 03-11



Marcaek said:
Why do many monsters use duplicate chase frames with a duration of 3 instead of 1 frame with a duration of 6?

Sorry about the doublepost but I have a feeling if I don't people will think I'm done with this thread.



I asked this once, it's something to do with making the monsters move smoothly, as they move on each chase frame depending on their speed

Old Post 11-24-11 16:38 #
phobosdeimos1 is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
esselfortium
Cumulonimbus Antagonistic Posting


Posts: 5268
Registered: 01-02


Smoothness, yes, plus that their chance of attacking would be halved if A_Chase was only called half as often. Calling it even more often with shorter frames would cause them to attack even more frequently.

Old Post 11-24-11 16:55 #
esselfortium is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Marcaek
Forum Regular


Posts: 713
Registered: 12-10


Ah.

It seems monsters can use the Saw codepointer, no problems so far. I finished converting the Cybruiser, so going to do the Chainsaw zombie now if no trouble arises.

I gave the Imp the FireShotgun2 pointer and noticed that the times it didn't crash, the imp appeared to turn into a stationary Player after firing. It's giving me some ideas about why player codepointers are incompatible with monsters.

Old Post 11-24-11 17:14 #
Marcaek is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 4613
Registered: 08-00


Because it affects how often they can move. If A_Chase is only called once every 6 tics, then they only move once every 6 tics.

EDIT: woops I apparently had this open from 5 hours ago >_>

Old Post 11-24-11 22:14 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Marcaek
Forum Regular


Posts: 713
Registered: 12-10


Still working at this stuff. Can anyone tell me what +TELEPORT does in plain English?

also monsters can't use saw heh

Last edited by Marcaek on 12-02-11 at 06:22

Old Post 12-02-11 05:49 #
Marcaek is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
EarthQuake
9.5 on the Richter!


Posts: 2745
Registered: 05-03


From what I understand, the TELEPORT flag is temporarily set when the thing teleports. It has something to do with collision detection and the ability to trigger linedef actions. I'm not sure how useful it is.

Old Post 12-02-11 07:04 #
EarthQuake is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
printz
CRAZY DUMB ZEALOT


Posts: 6838
Registered: 06-06


TELEPORT used to be called semi-noclipping, and it allows an actor to walk up steps even higher than 24, but unlike true noclipping, it doesn't make it phase through every wall. I think it also lets it pass linedefs where it would normally bump its head on the ceiling threshold, and that walkover triggers are ignored, like in NOCLIP. I think that monsters also need DROPOFF if the TELEPORT flag is to have any effect on them.

I wonder what side effects NOSECTOR has, apart from making them totally invisible even to the automap cheat. It prevents some data to be passed on the actor, but what are the effects?

JUSTHIT seems to make monsters trigger-happy on sight.

Judging from the Linux Doom source code, SLIDE is unused.

CORPSE is useful if you want to make any object with a resurrection state and -1 duration on their current frame be the object of an Archvile revive. In order to also fully have the corpse-sliding-on-ledges effect, the object also needs DROPOFF.

Judging from source code, SKULLFLY makes the monster act like a charging lost soul, including the way they don't feel pain when shot, but it also makes them do the collision damage, get amnesia and disable the SKULLFLY flag. I'm not sure if it's vanilla Doom stable.

Also from the source code, INFLOAT is used by floating monsters to control their vertical movement behaviour. It's enabled when it's important that cacodemons shouldn't lower to your level, which I assume happens when you try to melee into a cacodemon that chooses to climb a wall and go elsewhere. The INFLOAT flag is set and reset so often that it won't be noticeable if you use it in Dehacked. Judging from source code.

Last edited by printz on 12-02-11 at 09:44

Old Post 12-02-11 09:17 #
printz is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Marcaek
Forum Regular


Posts: 713
Registered: 12-10


That's a good bit of info.

Found out that monster fireballs can use the BFG spray correctly, so that's great.

I'm trying to port over the screaming suicide zombie(AAAAAAA) but the sounds don't work\do a lot of hissing in PrBoom+.

Old Post 12-02-11 19:52 #
Marcaek is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
hawkwind
Forum Regular


Posts: 789
Registered: 04-04


Fire up WhackEd2, then select the Things tab. The Thing editor box will appear. Now hover your mouse over the different types of Flags. A brief description will be given.

Old Post 12-03-11 06:11 #
hawkwind is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Phml
Forum Staple


Posts: 2031
Registered: 06-09


Marcaek - I've used the kamikaze in PrBoom+ and had no problem. Here's a small wad with it if you want to have a look (I know so little about dehacked no guarantee it's done right, but it seems to work).

Edit: actually, I checked it out, which I probably should have done before posting, and it's definitely not done right as they sometimes don't die correctly, but at least the sound works.

Last edited by Phml on 12-03-11 at 10:57

Old Post 12-03-11 10:52 #
Phml is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Marcaek
Forum Regular


Posts: 713
Registered: 12-10


The sound is the problem for me, so this helps.

Neat little minimod you got there BTW :)

Last edited by Marcaek on 12-03-11 at 19:53

Old Post 12-03-11 18:56 #
Marcaek is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Marcaek
Forum Regular


Posts: 713
Registered: 12-10


Is there any way to remove the Hell Knight's immunity to Baron attacks?

Old Post 12-24-11 00:37 #
Marcaek is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 15:39. Post New Thread    Post A Reply
Pages (2): [1] 2 »  
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Screwing around with DEH\BEX

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