Mengo Posted January 3, 2020 I'm making a mod that uses DeHackEd patches, and I was wondering if i could make it so the shotgunguys and chaingunguys don't drop their weapon, and if possible, make them just drop ammuniton instead? 0 Quote Share this post Link to post
0 Worst Posted January 4, 2020 Actually you can, there is this old quirk with pickup sprite names which seems to be barely documented anywhere, but may require some swapping of items for best effect: On 1/5/2003 at 8:32 PM, Enjay said: 2: You can change the way a pickup behaves using dehacked. eg, if you make the ammo clip use the frames of the soul sphere, every time you pick up an ammo clip, you get a soul sphere instead. The advantage is that it makes a global change for all enemies that drop the item concerned, but it also removes the item as a placeable item in the game (although you can probably give the soul sphere (for example) the ammo clip frames and get soul spheres to behave like clips, thereby effectivley swapping the items. I don't know how well this trick is supported by the various source ports. It wasn't supported for a while in Zdoom, but has now been restored. 6 Quote Share this post Link to post
2 Doomkid Posted January 3, 2020 Unfortunately, what ammo is dropped is dependant on thing type. If you wanted to make a chai gunner who drops clips, you’d have to swap him with the SS Nazi (who will then drop chainguns) 1 Quote Share this post Link to post
0 Mengo Posted January 3, 2020 Damn. Guess I'll just have to put them in cages or on platforms then. 0 Quote Share this post Link to post
0 ETTiNGRiNDER Posted January 4, 2020 +1 to what Worst said, if you dehack the shotgun to use the shells sprite, and the shells use the shotgun sprite, you should end up with shotgunners that drop shells. If you dehack the map editor numbers to swap those too, you shouldn't even need to adjust your maps. For the chaingunner you could do the swap with the SS, since you're probably not using him as-is anyway and wouldn't want zombiemen to drop chainguns. You can do a bunch of funky stuff with the fact that item pickups are decided by the pickup sprite, like making a "randomized" powerup by having it cycle quickly between different sprites each frame. Just never make a pickup use a sprite name that isn't one of the pickups or the game will crash if it's taken during that frame. 2 Quote Share this post Link to post
0 Doomkid Posted January 4, 2020 (edited) Just note that the method Worst mentioned does not work in ZDaemon (or didn’t as of early 2019 anyway, I haven’t checked it again since then). I may be wrong but it seems to determine which objects have what behaviour based on their thing ID rather than their sprite name as in vanilla Doom. I haven’t tried actually modifying the map editor numbers though, that might do it. Edited January 4, 2020 by Doomkid 0 Quote Share this post Link to post
0 TheNoob_Gamer Posted January 4, 2020 11 minutes ago, Doomkid said: .... 5 hours ago, ETTiNGRiNDER said: You can do a bunch of funky stuff with the fact that item pickups are decided by the pickup sprite, like making a "randomized" powerup by having it cycle quickly between different sprites each frame. Here's a quick example btw (source) 0 Quote Share this post Link to post
0 SilverMiner Posted January 7, 2020 (edited) If I want to change drops, I go to the source of the port I'm using (e.g. Boom202) and find the part of code that defines drops from enemies. That way I made rocket guys(previously nazis) drop rockets, fast shotguys (previously hangtbody, editor number 75) to drop shotguns and fuzzy zombiemans(another gore thing, editor number 76) to drop clips. Oh it was a long way that I did to find all the compilator things (like proper djgpp2 setup) And that was the first time I've ever compiled a C program :) Edited January 7, 2020 by SilverMiner 0 Quote Share this post Link to post
Question
Mengo
I'm making a mod that uses DeHackEd patches, and I was wondering if i could make it so the shotgunguys and chaingunguys don't drop their weapon, and if possible, make them just drop ammuniton instead?
Share this post
Link to post
7 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.