BDLite - a slimmed-down effects mod [BETA 2018-11-12]

Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.

Re: BDLite - a slimmed-down effects mod

Postby BROS_ETT_311 » Mon Oct 08, 2018 4:59 am

Not sure if this has been brought to your attention already, but reloading ammo for the rifle seems to be a bit broken. It depletes the entirety of ammo2, even when ammo1 is full. I think it might be related to the "weaponscripts", at least that's what fixed it for me. Other than that, this mod is pretty damn solid!

***edit***
- chainsaw doesn't want to spawn...it's shy.
BROS_ETT_311
 
Joined: 03 Nov 2017

Re: BDLite - a slimmed-down effects mod

Postby Matt » Mon Oct 08, 2018 12:35 pm

RikohZX wrote:
Matt wrote:......shotgun.... testicles?

The infamous nickname for the animated strap the previous version of Brutal Doom had, which bounced every time the gun did anything beyond idle. It was actually removed in later versions, but it stuck around in people's heads I guess.
ahh okay then, was imagining SM4 had gone off the deep deep end and now we have truck nuts on the shotgun.

.......which is apparently a real product (but more for pistols and rifles, at least according to the pictures on tacsac.com)
User avatar
Matt
Putting the XD into *xdeath since 2007
 
 
 
Joined: 04 Jan 2004
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Re: BDLite - a slimmed-down effects mod

Postby DavidN » Mon Oct 08, 2018 7:33 pm

Americans will never stop astounding me.

Thanks so much for the testing and enthusiasm so far - I've uploaded a new edition with many of the smoke/fire effects cleaned up, the BFG and SSG reinstated, and the Rifle reloading problem fixed. I hadn't recompiled the ACS after I changed the ammo type names, so it was trying to reload up to the RifleAmmo limit (all 300 of them) instead of RifleAmmoLoaded.

Let's talk about the next big change:

Monsters!

The edited monsters are the real meat of Brutal Doom. Each one of them defines a vast tree of states that builds on the normal Doom monster behaviour, most notably what happens when they're shot. Far from just falling over and dying with the same two animations each time, each monster has a large library of sprites for being maimed in a variety of morbidly interesting ways depending on the damage type. These typically spawn large numbers of gibs/remains from the original monster, or even have the monster going into a last stand where it can still attack desperately as it dies. This results in class definitions that are even bigger than the weapons - the Sergeant, for example, weighs in at 1099 lines, with extra definitions for dead variants and other extras bringing the size of the file up to 1376 lines.

Spoiler: "BrutalDoom V20 Sergeant definition"


A lot of the enemies in Brutal Doom have a concept of memory - as they chase you, they gradually decrement the number of EnemyMemory in their inventory, and if you've been out of sight for a while, they revert to just wandering instead of chasing you. And there are some very fine details like having the Sergeant keep an ammo count - once he's fired all his shells, he has to stop and reload the next time Missile is called. It's a clever idea, but it's a bit wasted because in normal gameplay for a monster that is dispatched so easily, you really aren't going to notice this happening. It would be good for a boss, though.

Damage types
Before going very far down the class, you can see a large number of PainChance and DamageFactor definitions - and like most other things in Brutal Doom, damage types are all over the place. It's even more difficult to keep track of them than most other elements because damage types don't require definition anywhere - they're just strings, which are easy to typo undetectably and don't have a central place to look them up.

Brutal Doom actually uses some damage types in clever ways - for example, flying body parts from monsters cause the Blood damage type, which everything declares itself immune to - however, the Pain.Blood state still gets called if something is hit by one, producing effects like blood-stained barrels or drips on the player's screen. Another unorthodox damage type is Avoid, which causes no damage but which is intended to cause a monster to attempt to dodge aside if hit by it - it's used in places like the rocket launcher, which fires an invisible hitscan to alert enemies as the real projectile launches.

Deciding what to keep and what to avoid from all of the above was a challenge, but in the end I removed most of the special cases and pared the whole thing down to just eight damage types:

Kick - Caused by short-range physical attacks, typically in slot 1 or the universal kick.
SuperKick - Caused by short-range physical attacks when in Berserk.
Bullet - Slow-firing bullet weapons like the pistol or Brutal Doom rifle.
Shotgun - Shell weapons like the shotgun.
RapidFire - Weapons with a high rate of fire such as the chaingun.
Explosive - Rockets, grenades and so on.
Plasma - Laser and plasma/cell weapons
Flak - Larger and more powerful ballistic weapons, like the Super Shotgun or (because I wanted to include it as my pet weapon) the new Flak Cannon.

There are still a couple of other ones that get used very occasionally, such as GreenFire for the Hell Knight's attacks, but for the vast majority of the time I stuck with the above.

Death states

In Brutal Doom, each damage type's death state for each monster is unique. They contain a lot of hard-to-follow jumps for randomization or special cases, and spawn a ton of additional blood and/or gib items. Here's just one of them taken from the Sergeant class above.

Code: Select allExpand view
   Death.SSG:
       SZD1 E 1 A_Pain
      SZD1 E 1 A_FaceTarget
      TNT1 A 0 A_SpawnItem("BloodSplasher2")
       TNT1 AAA 0 bright A_CustomMissile ("SuperGoreSpawner", 35, 0, random (170, 190), 2, random (0, 40))
        //TNT1 A 0 A_CustomMissile ("MeatDeath", 0, 0, random (0, 360), 2, random (0, 160))
      TNT1 AAAA 0 A_CustomMissile ("XDeath1", 32, 0, random (170, 190), 2, random (0, 40))
      TNT1 A 0 A_CustomMissile ("XDeath2", 32, 0, random (170, 190), 2, random (0, 40))
      TNT1 A 0 A_CustomMissile ("XDeath3", 32, 0, random (170, 190), 2, random (0, 40))
      TNT1 AAAA 0 A_CustomMissile ("Brutal_FlyingBlood", 32, 0, random (170, 190), 2, random (0, 40))
      TNT1 AAA 0 A_CustomMissile ("Instestin", 32, 0, random (150, 210), 2, random (0, 40))
      TNT1 AAAA 0 A_CustomMissile ("Brutal_FlyingBloodFaster", 32, 0, random (170, 190), 2, random (0, 40))
      TNT1 AAAA 0 A_CustomMissile ("Brutal_FlyingBloodMuchFaster", 32, 0, random (170, 190), 2, random (0, 40))
      TNT1 AAAA 0 A_CustomMissile ("SuperWallRedBlood", 32, 0, random (170, 190), 2, random (0, 40))
      TNT1 AAAA 0 A_CustomMissile ("SuperWallRedBlood", 46, 0, random (170, 190), 2, random (0, 40))
      TNT1 AA 0 A_CustomMissile ("XDeathArm1", 32, 0, random (170, 190), 2, random (0, 40))
      TNT1 A 0 A_CustomMissile ("XDeathSergeantHead", 32, 0, random (170, 190), 2, random (0, 40))
        TNT1 A 0 A_XScream
      TNT1 A 0 A_NoBlocking
        SZD1 EEFFGH 6
      TNT1 A 0 A_SpawnItem ("GrowingBloodPool")
      SZD1 H -1
        Stop


BDLite restructures the death states so that the entry points are much more straightforward:

Code: Select allExpand view
   Death:
   Death.Bullet:
      TNT1 A 0 A_ChangeFLag("NODROPOFF", 0)
      TNT1 A 0 A_Scream
      TNT1 A 0 A_NoBlocking
      TNT1 A 0 A_Jump(256, "DieNormal", "DieNormal2")
   Death.Kick:
      TNT1 A 0 A_ChangeFLag("NODROPOFF", 0)
      TNT1 A 0 A_Scream
      TNT1 A 0 A_NoBlocking
      TNT1 A 0 A_Jump(256, "DieRollBack")
   Death.SuperKick:
      TNT1 A 0 A_ChangeFLag("NODROPOFF", 0)
      TNT1 A 0 A_Scream
      TNT1 A 0 A_NoBlocking
      TNT1 A 0 A_Jump(256, "DieSplit", "DieGibs")
   Death.Shotgun:
      TNT1 A 0 A_ChangeFLag("NODROPOFF", 0)
      TNT1 A 0 A_Scream
      TNT1 A 0 A_NoBlocking
      TNT1 A 0 A_Jump(256, "DieBlastedBack", "DieRollBack", "DieArmOff", "DieRoll")
   Death.RapidFire:
      TNT1 A 0 A_ChangeFLag("NODROPOFF", 0)
      TNT1 A 0 A_Scream
      TNT1 A 0 A_NoBlocking
      TNT1 A 0 A_Jump(256, "DieArmOff", "DieInHalf", "DieHeadOff", "DieHoleThroughChest", "DieRoll")
   Death.Explosive:
      TNT1 A 0 A_ChangeFLag("NODROPOFF", 0)
      TNT1 A 0 A_Scream
      TNT1 A 0 A_NoBlocking
      TNT1 A 0 A_JumpIf(health > -10, "DieNormal")
      TNT1 A 0 A_Jump(256, "DieGibs", "XDeath")
   Death.Plasma:
      TNT1 A 0 A_ChangeFLag("NODROPOFF", 0)
      TNT1 A 0 A_Scream
      TNT1 A 0 A_NoBlocking
      TNT1 A 0 A_Jump(256, "DiePlasma")
   Death.Flak:
      TNT1 A 0 A_ChangeFLag("NODROPOFF", 0)
      TNT1 A 0 A_Scream
      TNT1 A 0 A_NoBlocking
      TNT1 A 0 A_Jump(256, "DieJustLegs", "DieInHalf", "DieGibs")


The death states only do a small amount of work to indicate the monster is dead, and then define a selection of one or more Die___ states to randomly jump to afterwards. Monsters can have as few or as many Die states as you like - for some of them, I used the huge number of sprites available to define many variations, but for others, just a few variations were enough.

The Die states are where the animation and blood-spawning now take place. Each one is named roughly after the style of death it shows - DieInHalf or DieHeadOff, for example, and for the ones that involve madly firing as they fall over I chose to use the term "DieRambo". There's often a bit of repetition in here, but it's much clearer now what they're doing - spawn the gibs, animate the sprite, and end it either with a frame of length -1 or a Stop to remove the actor entirely. Here are four of them - the Sergeant is among the actors with the most possible deaths at 14.

Code: Select allExpand view
    DieHeadOff:
        TNT1 A 0 A_CustomMissile ("BdGibZombieHead", 48, 0, random (0, 360), 2, random (0, 160))
        TNT1 A 0 A_CustomMissile ("BdBloodSpawnerMed", 35, 0, random (0, 360), 2, random (0, 160))
        TNT1 AAA 0 A_CustomMissile ("BdBloodLump", 35, 0, random (0, 360), 2, random(45, 80))
        SPDH ABCDE 6 A_CustomMissile ("BdBloodDrop", 15, 0, random (0, 360), 2, random (0, 40))
        SPDH E -1
    DieHoleThroughChest:
        TNT1 A 0 A_CustomMissile ("BdBloodSpawnerMed", 35, 0, random (0, 360), 2, random (0, 160))
        TNT1 AA 0 A_CustomMissile ("BdBloodLump", 35, 0, random (0, 360), 2, random(45, 80))
        TNT1 AAAA 0 A_CustomMissile ("BdGibGut", 35, 0, random (0, 360), 2, random(25, 45))
        TNT1 A 0 A_CustomMissile ("BdGibZombieRibcage", 42, 0, random (0, 360), 2, random (10, 160))
        ZXZ7 ABCDE 6 A_CustomMissile ("BdBloodDrop", 15, 0, random (0, 360), 2, random (0, 40))
        ZXZ7 E -1
    DieRoll:
        TNT1 A 0 A_CustomMissile ("BdBloodSpawnerMed", 35, 0, random (0, 360), 2, random (0, 160))
        TNT1 AAA 0 A_CustomMissile ("BdBloodLump", 35, 0, random (0, 360), 2, random(45, 80))
        TNT1 A 0 ThrustThingZ(0,5,0,1)
        TNT1 A 0 A_FaceTarget
        TNT1 A 0 A_Recoil(random(2, 4))
        SPO4 ABCDJ 4 A_CustomMissile ("BdBloodDrop", 15, 0, random (0, 360), 2, random (0, 40))
        SPO4 J -1
    DiePlasma:
        PBR1 A 2
        TNT1 AAAAAAAAAAAAAAAAAAAAAAA 0 {
            A_CustomMissile ("BdAshes", 32, 0, random (0, 360), 2, random (0, 180));
            A_CustomMissile ("BdAshesHeavy", 32, 0, random (0, 360), 2, random (0, 180));
        }
        TNT1 A 0 A_CustomMissile ("BdBloodSpawnerMelting", 35, 0, random (0, 360), 2, random (0, 160))
        PBR1 BBBBBB 2 A_SpawnItemEx("BdPlasmaEvaporate", random(0 - radius/2, radius/2), random(0 - radius/2, radius/2), 48)
        PBR1 CDEFGH 6 A_CustomMissile ("Blood", 10, 0, random (0, 360), 2, random (0, 160))
        TNT1 A 0 A_SpawnItem ("BdBloodPool")
        PBR1 HHHHHHHHHHHHHHHHHHHHHH 8 {
            A_CustomMissile ("BdPlasmaSmoke", 10, 0, random (0, 360), 2, random (0, 160));
            A_SpawnItemEx("BdPlasmaEvaporate", random(0 - radius/2, radius/2), random(0 - radius/2, radius/2), 8);
        }
        PBR1 H -1
        Stop


The Plasma death states tend to be the longest as they spawn some extra objects compared to normal deaths (they use a carbonized version of the monster sprite and show flecks of plasma evaporating off them) - but there's now no unexpected jumping around, the animations are all straightforward to read. You'll also notice that the blood and gib classes are entirely different, an overhaul that I'll describe in the next post.

As for pain states, they remain mostly the same as in Doom, with the exception of Kick which typically has a much higher PainChance than it would normally and thrusts the target monster back a bit - this keeps the kick's unique advantage in being able to slow monsters down and get out if they're crowding you in.
User avatar
DavidN
 
Joined: 28 Dec 2015

Re: BDLite - a slimmed-down effects mod [2018-10-08]

Postby Solfish » Mon Oct 08, 2018 8:25 pm

Chainsaw still does not spawn in doom 2 map 1? And when you shoot a rocket at the water, there is no water splash effect. Are small plasma gun in shot 2 and something looks like flak cannon weapon in slot 7 for testing or they are new weapons?
Solfish
 
Joined: 24 Jun 2017

Re: BDLite - a slimmed-down effects mod [2018-10-08]

Postby Matt » Mon Oct 08, 2018 10:02 pm

Dang, dude you're like the Carl Linnaeus of doom brutality. But with, like, actual power to reorganize the source material into your system. :shock:
User avatar
Matt
Putting the XD into *xdeath since 2007
 
 
 
Joined: 04 Jan 2004
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Re: BDLite - a slimmed-down effects mod [2018-10-08]

Postby Kyotra » Mon Oct 08, 2018 10:19 pm

So does this mean we might get an unfucked version of Ketchup along with this rework?
User avatar
Kyotra
 
Joined: 30 Sep 2017

Re: BDLite - a slimmed-down effects mod [2018-10-08]

Postby namsan » Tue Oct 09, 2018 2:09 am

Looks quite interesting.
I somewhat miss "last stand" feature but I admire your hard work!
User avatar
namsan
Loves English but hates Revenants
 
Joined: 31 Mar 2012
Location: Japan
Discord: Namsan#8146

Re: BDLite - a slimmed-down effects mod [2018-10-08]

Postby RikohZX » Tue Oct 09, 2018 3:31 am

I'm gonna assume you have long since been aware of the lingering "doomguy is a coding aberrant abomination" issues BD has. I remember when Champions first launched earlier this year, and it had ridiculous effects on Brutal Doom at the time like turning the player into a champion, or monsters and the player constantly changing powers because Brutal's code is so botched that it was practically respawning / replacing entities on the spot impractically. It even turned Mark's "starter pack" campaign toilets into champions. The poor author had to essentially build exceptions into Champions to ignore BD stuff rather than BD getting optimized at all for this.

And reading the sheer amount of effort that has to go into stabilizing and standardizing all of this is an experience all of its own.
User avatar
RikohZX
 
Joined: 04 Sep 2012

Re: BDLite - a slimmed-down effects mod [2018-10-08]

Postby Combine_Kegan » Tue Oct 09, 2018 6:55 am

This is the equivalent of someone untangling christmas lights that are also tangled up with fishing line. You're a brave soul for doing this.
User avatar
Combine_Kegan
The GMOTA Guy
 
Joined: 19 Jan 2014
Location: Hopelessly stuck in the past

Re: BDLite - a slimmed-down effects mod [2018-10-08]

Postby 0mrcynic0 » Tue Oct 09, 2018 10:01 am

I'm really looking forward to seeing a cleaner version of Brutal Doom's code. The mere fact that the code is quite a mess and someone trying to fix this one is a daunting task.

Good luck on this, we're all counting on you.
User avatar
0mrcynic0
Deliciously shiny
 
Joined: 05 Sep 2017
Location: The corner of "screw off" and "none of your business."

Re: BDLite - a slimmed-down effects mod [2018-10-08]

Postby dawnbreez » Tue Oct 09, 2018 11:51 am

Hell Baron appears to have missing sprites. Probably a typo?
Something I'd love to see implemented--the crouch+kick slide attack. In the current build of BDv21 it has an issue where monsters will telefrag you if they land on top of you, but you don't need to replicate monsters flying into the air when you slide-kick them--just a sudden burst of forward speed when kick and crouch are pressed at the same time would be nice. Probably a good place to start zscripting things!
dawnbreez
 
Joined: 08 Jul 2015

Re: BDLite - a slimmed-down effects mod [2018-10-08]

Postby Somagu » Tue Oct 09, 2018 2:52 pm

This is a really neat project, I like what I see so far! Thanks for undertaking such a daunting thing.
User avatar
Somagu
 
Joined: 22 Nov 2013

Re: BDLite - a slimmed-down effects mod [2018-10-08]

Postby DavidN » Tue Oct 09, 2018 9:08 pm

I'm fairly blazing through this now, though not enough to get together a new snapshot for the third consecutive day - I think I've nearly got all the big stuff out the way now and am moving on to the fiddly parts.

I've started a Trello board to keep track of everything, available here and added to the main post. Oddly the really big monsters are much easier to port because they haven't been altered as much :)

https://trello.com/b/fmJhYIlv/bdlite
User avatar
DavidN
 
Joined: 28 Dec 2015

Re: BDLite - a slimmed-down effects mod [2018-10-08]

Postby GAA1992 » Tue Oct 09, 2018 10:32 pm

small question: Are you going to allow modders to make forks out of your version of BD? Giving proper credits, obviously. =p
User avatar
GAA1992
Demons are a disease. Meet the cure.
 
Joined: 04 Jun 2015
Location: Killing spiders.

Re: BDLite - a slimmed-down effects mod [2018-10-08]

Postby TheEternalStruggler » Tue Oct 09, 2018 11:54 pm

Just a question; do you plan on optimizing it so the gore doesn't cause the game to lag?

I mean I'd like a Janitor option if possible (along with a realistic blood setting). :P
User avatar
TheEternalStruggler
 
Joined: 03 Dec 2017
Location: Elfhelm... waiting for potatoes to get sane again.
Discord: #5236

PreviousNext

Return to Gameplay Mods

Who is online

Users browsing this forum: Daedalus, DarkTalon25 and 8 guests