Doom's RNG

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

ความคิดเห็น • 1.9K

  • @alicetretyakova3971
    @alicetretyakova3971 5 ปีที่แล้ว +5507

    Just to inform you. Our university course of modelling lacks some real-life examples. I suggested to use this video as the example of usage of a table-based RNG, and professor agreed. Be proud of your work

    • @decino
      @decino  5 ปีที่แล้ว +1467

      Whew, that's awesome to hear!

    • @Jeremy_Watson
      @Jeremy_Watson 4 ปีที่แล้ว +97

      @@cormishii1542 yea it's pretty awesome

    • @MrSpinachguy
      @MrSpinachguy 4 ปีที่แล้ว +62

      This comment has 666 upvotes. Quick, no one upvote it!

    • @King_Firebrand
      @King_Firebrand 4 ปีที่แล้ว +42

      @@MrSpinachguy I just wanted to upvote it, noticed the 666, and quickly punched my finger away from the thumbs up.

    • @MrSpinachguy
      @MrSpinachguy 4 ปีที่แล้ว +28

      @@King_Firebrand There are 667 upvotes now. Someone probably did that on purpose smh

  • @ORLY911
    @ORLY911 5 ปีที่แล้ว +3777

    So there really is a "Stormtrooper" mode and a "Jackal Sniper" mode for these guys lol

    • @johncolasont6195
      @johncolasont6195 5 ปีที่แล้ว +358

      I still hear the Beam rifle sound effect in my nightmares

    • @mr.nickname9172
      @mr.nickname9172 5 ปีที่แล้ว +140

      Texan Don *shivers in I need a weapon*

    • @buckshot5096
      @buckshot5096 5 ปีที่แล้ว +96

      @@mr.nickname9172 "right this way"

    • @ikagura
      @ikagura 5 ปีที่แล้ว +58

      A halo and Star wars reference?!

    • @aaronhenderson670
      @aaronhenderson670 4 ปีที่แล้ว +56

      You never hear the shot. It's just last checkpoint

  • @Somersalsa
    @Somersalsa 4 ปีที่แล้ว +2672

    "I want to hurt doomguy"
    "Okay roll a D256"

    • @Templarfreak
      @Templarfreak 3 ปีที่แล้ว +193

      "excuse me, a _WHAT?!"_

    • @NovasNewGroove
      @NovasNewGroove 3 ปีที่แล้ว +95

      D∞

    • @megamaster1610
      @megamaster1610 3 ปีที่แล้ว +144

      “I rolled a nat 167”

    • @somegenericscpnu-7soldier270
      @somegenericscpnu-7soldier270 3 ปีที่แล้ว +130

      @@megamaster1610 You deal that much damage. However, his armor saves him, absorbing half damage. doomguy, what do you do?

    • @TinyDeskEngineer
      @TinyDeskEngineer 3 ปีที่แล้ว +29

      @@somegenericscpnu-7soldier270 "kill"

  • @soursugar4867
    @soursugar4867 4 ปีที่แล้ว +1838

    Imagine being a zombie man and accidentally killing doom guy due to the rng saying that you’re suddenly an elite sniper instead of a blind old man with a nerf gun

    • @Haha-bl3xj
      @Haha-bl3xj 3 ปีที่แล้ว +71

      “aw hell yeah!”

    • @TinyDeskEngineer
      @TinyDeskEngineer 3 ปีที่แล้ว +20

      @Hudson Kylo oh boy it's the virus spambot and his little buddy again
      Oh my god the Flixzone spambot actually left

    • @TVdinnermasterchef
      @TVdinnermasterchef 3 ปีที่แล้ว +48

      By that logic, elite sniper with a nerf gun must also be a possible outcome

    • @truefailure6359
      @truefailure6359 3 ปีที่แล้ว +12

      @@TVdinnermasterchef I think that’s when the A.I. might hit you if you’re either not moving fast enough or they calculate where you’re heading and lead their shot

    • @TVdinnermasterchef
      @TVdinnermasterchef 3 ปีที่แล้ว +23

      @@truefailure6359 slower movement probably allows them to lead easier too. Headshot from 500 yards while doing an SR50 over a gap, yet still only do 3 points of damage. Give that guy a medal, then fire his ass

  • @bloodrunsclear
    @bloodrunsclear 5 ปีที่แล้ว +2797

    It's amazing how innovative this game really was, and you pointed out how a lot of those innovations are so behind the scenes you were never supposed to notice them at all!

    • @RFC3514
      @RFC3514 5 ปีที่แล้ว +58

      Using look-up tables as a fast replacement for complex calculations isn't particularly innovative.

    • @bloodrunsclear
      @bloodrunsclear 5 ปีที่แล้ว +118

      @@RFC3514 Simulating three dimensions using two dimensions is

    • @bloodrunsclear
      @bloodrunsclear 5 ปีที่แล้ว +9

      @Lassi Kinnunen Fair enough :)
      I didn't know about it personally so maybe I was projecting. I thought it was cool

    • @RFC3514
      @RFC3514 5 ปีที่แล้ว +20

      @bloodrunsclear - Wolfenstein 3D did it before Doom, and Ultima Underworld did it before Wolfenstein (and was, in some ways, more advanced even than Doom 2 - but ran at lower frame rates). Id software created highly optimised algorithms, but did not invent the concept of texture-mapped "2.5D" games.

    • @Atlas_Redux
      @Atlas_Redux 5 ปีที่แล้ว +30

      @@bloodrunsclear It's not simulated. It is 3D. It's a myth that the game is 2D. Projectiles fly entirely in a 3D pattern when enemies/yourself is at a different level, showing the game clearly has height information. And you know, there are PLATFORMS in the game, windows etc. Stop saying the game isn't 3D just because the map editor behaves like 2D. Goddamit, so tired of this stupid myth.

  • @evanpu1993
    @evanpu1993 5 ปีที่แล้ว +683

    that's the genius of old RNG systems. without a good way to actually do it, they rely on the randomness of the player's interaction itself and re-purposed that randomness for its own

    • @KuraIthys
      @KuraIthys 4 ปีที่แล้ว +55

      All games are 100% deterministic. (unless there's an oddball I don't know about)
      Computers are incapable of producing true random numbers.
      The only thing that varies between games is how the Pseudorandom number generator works, how large of a pool of numbers it has, and how well it's set up to truly match the expected outcome of actual randomness.
      That, and how seed values are chosen dictates how random a game appears to be...
      But it's ALWAYS deterministic.
      Whether it seems to be anything else says more about how they initialise things.
      A common strategy on more modern games is to get your PRNG seed values from the windows system clock.
      Since time never has the same value twice, the initial starting point is always different, so things aren't repeatable unless you keep track of what the seed was when you started...
      There really isn't any such thing as true randomness in games though...

    • @btf_flotsam478
      @btf_flotsam478 4 ปีที่แล้ว +4

      @Shallex Wait til this guy hears about dwangoAC.

    • @QuotePilgrim
      @QuotePilgrim 3 ปีที่แล้ว +40

      @@KuraIthys Computers are not incapable of producing true random numbers, it's just generally more useful to use pseudorandom number generators.
      You can easily get true randomness by measuring atmospheric noise or fluctuations in temperature or some other physical phenomenon.

    • @QuotePilgrim
      @QuotePilgrim 2 ปีที่แล้ว +23

      @@MrZoolook Agreed. I didn't say the computer "creates" the numbers, I said it "produces" the numbers, as in it takes the information gathered from the external environment and turns that into a sequence of true random numbers.
      That said, there are electronic components that are capable of creating true randomness which some computers have, in which case the numbers are generated entirely by the computer, with no external influence.

    • @JNJNRobin1337
      @JNJNRobin1337 ปีที่แล้ว +3

      ​what about 'entropy' in some systems
      each random thing can affect it

  • @TheBigH
    @TheBigH 5 ปีที่แล้ว +2039

    I had no idea I wanted this kind of Doom content until I got it.

    • @missingindy
      @missingindy 4 ปีที่แล้ว +3

      TheBigH same

    • @SpielkindFR
      @SpielkindFR 4 ปีที่แล้ว +11

      Imagine the face the id team had made if in 1993 someone had told them that people would make videos like this about their game in 2020.

    • @petofiarkwright3236
      @petofiarkwright3236 4 ปีที่แล้ว +1

      s a m e

    • @axethannanth
      @axethannanth 4 ปีที่แล้ว +1

      e

    • @nikotheoneshot
      @nikotheoneshot 4 ปีที่แล้ว +1

      @@axethannanth r/decreasingly_verbose
      or "_verbosen't_"

  • @serpuffmcpass5859
    @serpuffmcpass5859 4 ปีที่แล้ว +745

    "what happens to the icon of sin now?"
    me: he wouldn't happen to get stronger the longer he's on earth, would he?

    • @jesuscrist3512
      @jesuscrist3512 3 ปีที่แล้ว +94

      The longer the cereal in the milk the soggyir it will become

    • @burgerking5256
      @burgerking5256 2 ปีที่แล้ว +16

      @@jesuscrist3512 wise words jesus

    • @TinyDeskEngineer
      @TinyDeskEngineer 2 ปีที่แล้ว +17

      @@jesuscrist3512 the longer milk remains in the bowl of cereal, the stronger the Icon of Sin becomes?
      What about the demons that use water as a replacement to milk?

    • @clockworkpotato9892
      @clockworkpotato9892 2 ปีที่แล้ว +3

      @@TinyDeskEngineer they empower it faster

    • @MDLuffy1234YT
      @MDLuffy1234YT ปีที่แล้ว +2

      ​​@@clockworkpotato9892 they empower it *instantly*

  • @terrytrollface
    @terrytrollface 5 ปีที่แล้ว +1290

    I don't think I'd feel comfortable playing cards with the arch-vile unless I was on the other side of that table.

    • @demon9554
      @demon9554 5 ปีที่แล้ว +94

      and with a BFG under the box

    • @cookieninja900
      @cookieninja900 5 ปีที่แล้ว +42

      I think you'd have plenty of time to move to the other side. But then you have to worry about the imp.

    • @demon9554
      @demon9554 5 ปีที่แล้ว +21

      OMG 4 LIKES OWO I AM NOW UTUBR AND I GET MONETISSSSSSS!

    • @itzyobruhman8206
      @itzyobruhman8206 5 ปีที่แล้ว +11

      @@demon9554 OMG Ow0 U R YuToobir

    • @missingindy
      @missingindy 4 ปีที่แล้ว +4

      demon I’m proud of u!

  • @dval4441
    @dval4441 5 ปีที่แล้ว +1873

    "Look at the code you nerd."
    You got a keeper there...

    • @audiosurfarchive
      @audiosurfarchive 5 ปีที่แล้ว +78

      Deciyes is a lady slayer.

    • @mortrixs1936
      @mortrixs1936 4 ปีที่แล้ว +68

      what do you mean Peter is not decino's wife?

    • @raulsalcedo8332
      @raulsalcedo8332 4 ปีที่แล้ว +32

      That voice personally scared the crap out of me.
      Perfect timing; I was expecting something _particularly_ horrifying, nevertheless I was not disappointed. Great job to whoever that was. 👌

    • @nikotheoneshot
      @nikotheoneshot 4 ปีที่แล้ว +1

      @@audiosurfarchive ah, yes, deci _no_ is overrated.

    • @audiosurfarchive
      @audiosurfarchive 4 ปีที่แล้ว +30

      @@nikotheoneshot If decino exclusively made education content:
      He'd be _deciknow_

  • @HazmanFTW
    @HazmanFTW 5 ปีที่แล้ว +849

    >Regular Imp
    >Big Imp
    >Flying Imp
    >Cyber Imp
    Love it!

    • @CarbonRollerCaco
      @CarbonRollerCaco 5 ปีที่แล้ว +45

      Cacos ain't no Imps. Plus, he forgot Skeleton Imp, Fatso Imp and Spider Imp.

    • @nuclearshorts1243
      @nuclearshorts1243 4 ปีที่แล้ว +21

      @@CarbonRollerCaco doom 2016 has cyborg fatso imp

    • @Scazoid
      @Scazoid 4 ปีที่แล้ว +18

      Icon of Simp

    • @crystalqueen9711
      @crystalqueen9711 4 ปีที่แล้ว +5

      I'm guessing the Revenant is a Spoopy Imp

    • @3dsoup147
      @3dsoup147 4 ปีที่แล้ว +3

      Caco
      Cocos
      Cocas

  • @Lovuschka
    @Lovuschka 5 ปีที่แล้ว +272

    That guard at the beginning of Doom 2 really hates the other guard, shooting him in the back each time.

    • @vaiyt
      @vaiyt 5 ปีที่แล้ว +51

      "i know the doom slayer is right there but fuck this guy" *bang*

    • @ПавелКорешков-ь4г
      @ПавелКорешков-ь4г 4 ปีที่แล้ว +60

      Imagine how those 2 guys are bored of their miserable existance. They've been standing on these stairs for decades, achivieving nothing. They never ever killed a doomguy. And they die miserably every time, humiliated by a chainsaw.
      Not surprisingly they also hate each other, all stories told, all jokes remembered and painfully echoing in their brains. Each of them two wants to subdue the other one to dominate at least in this small room. But they can't move until alerted! This game isn't player's Hell - it's those 2 guys hell!!!

    • @stephenmandelbaum2027
      @stephenmandelbaum2027 4 ปีที่แล้ว +18

      @@ПавелКорешков-ь4г LoL that fan fiction we didn't know we needed :)

    • @Hero_of_Legend
      @Hero_of_Legend 3 ปีที่แล้ว +8

      Hey, when you sleep with a man's wife, make sure you don't give him a convenient excuse...

  • @plashe9041
    @plashe9041 5 ปีที่แล้ว +3365

    Doom is best gambling game

    • @bonciutalentadv7599
      @bonciutalentadv7599 5 ปีที่แล้ว +29

      Ecs deeee

    • @sonoda944
      @sonoda944 5 ปีที่แล้ว +80

      everybody knows that doom is casino simulator

    • @m_tpa
      @m_tpa 5 ปีที่แล้ว +8

      @@sonoda944 i didnt. but i always wondered about a few things in the game o.O

    • @user-uo8ny1kj4c
      @user-uo8ny1kj4c 5 ปีที่แล้ว +1

      @@A_Stranger2256 modding

    • @StefanDeleanu
      @StefanDeleanu 5 ปีที่แล้ว +3

      Because you can predict the winning answer.

  • @Ashalmawia
    @Ashalmawia 5 ปีที่แล้ว +807

    I never realized that enemy damage AND your own damage was that random. I knew it felt like sometimes a projectile would hit harder than usual, or less hard than usual, but I subconsciously assumed it had something to do with how directly it hit you or something.

    • @tech6hutch
      @tech6hutch 5 ปีที่แล้ว +149

      That's probably intentional. It's an efficient way to simulate that while not really simulating it at all, just in the mind of the player.

    • @cybermark4732
      @cybermark4732 5 ปีที่แล้ว +5

      Same!

    • @michaelmartin9022
      @michaelmartin9022 5 ปีที่แล้ว +68

      I remember them saying that in Doom 3 they had per-pixel hit detection instead of hit boxes that surrounded otherwide spindly arms / torsos. They thought they needed to tweak enemy health as they all seemed to suddenly be bullet sponges... actually, the testers were just missing.

    • @ПавелКорешков-ь4г
      @ПавелКорешков-ь4г 4 ปีที่แล้ว +51

      The most embarrasing is the RANGE of those numbers! I never realized a Baron could punch for 8 or 16 points... Or a Cyberdemon 20 points.
      I always thought there is some minimal damage plus a small random variation.
      And it turned out to be a direct product of a small "base" and rnd(8), much like dice roll in D&D.

    • @Camelotsmoon
      @Camelotsmoon 4 ปีที่แล้ว +22

      Everything as old as Doom used basic RNG tables, some just hide it better than others. It wasn't until the past decade/decade in a half, that RNG has been minimized as much as possible. I mean look at the difference between Morrowind and Oblivion.

  • @darrellgardner4561
    @darrellgardner4561 5 ปีที่แล้ว +395

    "Leaky Radiation Suit"
    Wait what? I have never noticed that happen before. Ive been playing doom for close to 20 years.

    • @AnnieC.1993
      @AnnieC.1993 4 ปีที่แล้ว +42

      I had it happen to me on mount erebus while playing the ultimate doom on steam. It was vanilla (only an emulator) so yeah it happens

    • @dftfire
      @dftfire 4 ปีที่แล้ว +24

      Wonder if this doesn't occur in the console versions? I grew up on the PS1 versions and can't recall lava or acid ever randomly causing damage while in a radiation suit...

    • @olexayko2499
      @olexayko2499 4 ปีที่แล้ว +8

      I think, it was just fixed at modern doom ports

    • @AnnieC.1993
      @AnnieC.1993 4 ปีที่แล้ว +22

      @@olexayko2499 it's not a glitch

    • @olexayko2499
      @olexayko2499 4 ปีที่แล้ว +16

      Removed*)

  • @oliverhilton6086
    @oliverhilton6086 5 ปีที่แล้ว +537

    _No Doomguys were hurt during the making of this video_

    • @fuzzydunlop1753
      @fuzzydunlop1753 4 ปีที่แล้ว +15

      Idk man, some of that stuff looked pretty painful..

    • @jesuscrist3512
      @jesuscrist3512 3 ปีที่แล้ว +1

      I smell some bullcrap

    • @Hero_of_Legend
      @Hero_of_Legend 3 ปีที่แล้ว +4

      They did, however, die mercilessly.
      But they felt nothing.

    • @hershloodu8925
      @hershloodu8925 3 ปีที่แล้ว +3

      Now the demons on the other hand.

  • @PhantomLink16
    @PhantomLink16 4 ปีที่แล้ว +315

    14:08 Somebody show this to Joel.

    • @SollowP
      @SollowP 4 ปีที่แล้ว +26

      I can already hear his Swedish screams.

    • @Green24152
      @Green24152 4 ปีที่แล้ว +8

      i shall do the thing

    • @Mate_Antal_Zoltan
      @Mate_Antal_Zoltan 4 ปีที่แล้ว +6

      100 points off!

  • @dsp4392
    @dsp4392 5 ปีที่แล้ว +82

    Love this series. Having worked as a programmer in a few game studios, I can say that things have changed a lot since then! Doom had to run on very limited hardware, so nearly everything was part of the code and compiled in the executable. Today, anyone who hardcodes values like this would be scheduled to have a serious meeting with the project lead.

  • @PaulJohnsonM
    @PaulJohnsonM 5 ปีที่แล้ว +93

    One of the reasons they did it this way, wasn't just to "prevent network desync," but to reduce the amount of network traffic to run while keeping sync. Instead of sending a vector which had been randomized on one machine over the network, only the random offset needed to be sent to be calculated on each machine independently.

    • @dsandoval9396
      @dsandoval9396 5 ปีที่แล้ว +2

      Ah, I know you're trolling because that didn't make any sense.
      JK. I know you're not trolling... but it still didn't make any sense to me.

    • @j.hawkins8779
      @j.hawkins8779 2 ปีที่แล้ว +8

      @@dsandoval9396 instead of constantly updating the computer about which values to use, it just needs to send which offset (how deep it is in the list) instead

    • @karlmehltretter2677
      @karlmehltretter2677 ปีที่แล้ว +7

      Not even the index needs to be sent over network. Because all players need to join at beginning of game, each machine knows the current index.

  • @index9749
    @index9749 5 ปีที่แล้ว +132

    So many years playing and this game still surprises me, I never realized.

  • @BlueSmash_404
    @BlueSmash_404 3 ปีที่แล้ว +47

    3:54
    "The closer the target,the bigger the chance it will perform a missile atack"
    -Dr. Decino Hayden

    • @HappyBeezerStudios
      @HappyBeezerStudios 8 หลายเดือนก่อน

      So glory kills in classic Doom are just a challenge for the enemy to missile both of you.
      But also the best way to get maximum BFG damage.

  • @dwaynegreene152
    @dwaynegreene152 5 ปีที่แล้ว +74

    Imp: "I died! Quick give me a number to see which way i fall" this is so interesting. I started playing Doom again bc of your vids. It just popped up in my recommended vids and ive watched quite a few of yours and subbed.

  • @Karina-winsmore
    @Karina-winsmore 5 ปีที่แล้ว +264

    So imps basically roll d8 for damage.

    • @Spectrik
      @Spectrik 4 ปีที่แล้ว +19

      Ironic considering the concept of Doom was based on a dnd campaign where demons invaded

    • @HyperrealisticLuigi
      @HyperrealisticLuigi 4 ปีที่แล้ว +6

      @@Spectrik it was also going to be a game based on alien

    • @haydnwhitechurch4809
      @haydnwhitechurch4809 4 ปีที่แล้ว +1

      Reroll your stats

    • @Spectrik
      @Spectrik 4 ปีที่แล้ว

      Haydn Whitechurch funnily enough I recently started a paladin (on baldurs gate) and spent 20 minutes rolling and got 94 total

    • @haydnwhitechurch4809
      @haydnwhitechurch4809 4 ปีที่แล้ว

      @@Spectrik actually that was a binding of isaac reference

  • @tedwilliams9424
    @tedwilliams9424 4 ปีที่แล้ว +67

    Archville only Icon of Sin is truly the stuff of nightmares.

    • @Volcano4981
      @Volcano4981 2 ปีที่แล้ว +6

      Arch-Vile-only Icon of Sin is so cursed it's unreal

    • @lankymaccrazyhair264
      @lankymaccrazyhair264 ปีที่แล้ว +7

      Unless you are doing for map 30 pacifist, then it's amazing.

  • @HarryKoakuma
    @HarryKoakuma 4 ปีที่แล้ว +26

    Also funny to note with the RNG table all set to the same value is that Doomguy's face constantly stares in the same direction (except when a non-RNG face would play, like firing a weapon continuously).

  • @turbovirgin5453
    @turbovirgin5453 4 ปีที่แล้ว +66

    I can imagine the thumbnail goes like:
    Imp: How the *HELL* did you won 10 times in a row?! You gotta be cheating!
    Doomguy: Mpph.

  • @JakZie
    @JakZie 5 ปีที่แล้ว +334

    I love all your videos but those informative ones are the closest to my heart.

  • @thingsofsuch
    @thingsofsuch 5 ปีที่แล้ว +114

    On the surface this seems like a simple game. When you get down into it though a lot of this is rather ingenious. Especially the stuck attempts and the use of randomized angles when firing at an invisible Doom Guy.

    • @witeshade
      @witeshade 4 ปีที่แล้ว +11

      I think it often turns out that simple is actually exceedingly complicated. It's relatively easy to shovel a ton of random crap into something to make it seem expansive, but when you have such a focused, narrow goal, it turns out that you have to think very, very carefully about every little thing to make it seem just right.

    • @flex9663
      @flex9663 3 ปีที่แล้ว +5

      and the bigger surprise is the code is so goddamn easy to understand even for a beginner programmer like me ?!?!?!?!?! when my code reaches enough lines that it can't be considered a script it turns into spaghetti that even i don't understand.

    • @HappyBeezerStudios
      @HappyBeezerStudios 2 ปีที่แล้ว +5

      Shows the power of Carmack's big brain

  • @BigMacDavis
    @BigMacDavis 5 ปีที่แล้ว +21

    I still come to this video every now and again. A wonderful video.

    • @ClarkWahlberg-bo3oh
      @ClarkWahlberg-bo3oh 9 หลายเดือนก่อน

      Your Doom playthroughs are wonderful. 👍

  • @BepBepStev
    @BepBepStev 5 ปีที่แล้ว +89

    I never knew about the leaky rad suit until now. When I was like 13, I was doing a no death UV run and failed due to that. I always blamed it on a bug. Wow.

    • @SoldierOfFate
      @SoldierOfFate 4 ปีที่แล้ว +8

      I've played Doom for god knows how many hours and I've never had the leaky radiation suit feature happen to me for some odd reason.

    • @KC_Garcia
      @KC_Garcia 3 ปีที่แล้ว +2

      @@SoldierOfFate lucky you

    • @creeperhunterD
      @creeperhunterD 2 ปีที่แล้ว +1

      @@SoldierOfFate I get it often on high-damage floors, like lava. Otherwise I pretty much never get it

    • @iconbluesn5648
      @iconbluesn5648 2 ปีที่แล้ว +3

      @@creeperhunterD it only happens on high-damaging floors, thats why

  • @terrytrollface
    @terrytrollface 5 ปีที่แล้ว +400

    I've played doom for years, and I did not know about the environment suit sometimes getting damage leaked through.
    So much in one video, I learned a lot. Makes me wonder if someone ever made a mod that removed rng to make doom "fair and balanced."
    Either way, quality content as always.

    • @AleK0451
      @AleK0451 5 ปีที่แล้ว +55

      one time during the ASS speedmapping session we themed the levels entirely on the leaky radsuit and made maps with lots of damaging floors you need radsuits to go over and had the leaking in mind during the design

    • @terrytrollface
      @terrytrollface 5 ปีที่แล้ว +45

      @@AleK0451 I wonder if Carmack and Romero did that on purpose or not. What I mean is if they thought, 'people are gonna make a shit ton of doom levels, better make a penalty if there's a lot of toxic waste suits and hazardous environments.
      Because it's certainly never leaked damage for me in any of the original levels.

    • @lagz89
      @lagz89 5 ปีที่แล้ว +16

      BigMacDavis made me aware that this could happen

    • @artcox2991
      @artcox2991 5 ปีที่แล้ว +23

      Weird things happen if you remove the RNG: jmtd.net/log/deterministic_doom/

    • @arcturux4446
      @arcturux4446 5 ปีที่แล้ว +16

      @@terrytrollface I've never got damage through the suit either, and I've been playing doom for like 20 years. Maybe the information in the video is true, but I don't believe the implementation during the game works that way. There is no way I didn't get damage through suit with my luck over the 20 years.

  • @AriCasino
    @AriCasino 5 ปีที่แล้ว +63

    Imp: Go fish
    Arch Vile: RHHHHUUUUUAAAAEEEEEEEEIIIIIIIIII
    Doom Guy: Mmph! Mmph!

  • @QuasarEE
    @QuasarEE 4 ปีที่แล้ว +94

    Giving monsters a random last seen value prevents all of them from chasing the same player in multiplayer games. Otherwise, all the monsters would target player 1 until attacked by other players.

  • @lafeeshmeister
    @lafeeshmeister 5 ปีที่แล้ว +14

    7:30 I'd always wondered why the Revenant's missiles were sometimes homing and other times unguided. Now I know! Thanks!

  • @Rathori
    @Rathori 5 ปีที่แล้ว +84

    So it's a pseudo-random number pseudo-generator. Well, at lest the "number" part is real.

    • @MrAndris999
      @MrAndris999 5 ปีที่แล้ว +13

      No, it seemed integer to me ;) (uint8)

    • @Rathori
      @Rathori 5 ปีที่แล้ว +8

      @@MrAndris999 lies, lies everywhere! xD

    • @agiar2000
      @agiar2000 4 ปีที่แล้ว +6

      Fun fact: Back in the days before computers were everywhere, people still needed random numbers, such as for taking "fair" statistical sampling, so they published HUGE books that were just full of a large quantity of numbers in an apparently random order. That's pretty much what that static list of "random" numbers in Doom reminds me of. :)

  • @TheDarkkilla12
    @TheDarkkilla12 5 ปีที่แล้ว +26

    Oh god, the ultimate troll had John decided to put it in nightmare difficulty, Icon of Sin but it spawns Arch Villes.

    • @zakazany1945
      @zakazany1945 5 ปีที่แล้ว +5

      The game became predictable: you will get your ass burn to a crisp everytime

  • @LtSprinkulz
    @LtSprinkulz 5 ปีที่แล้ว +285

    Anyone else realise the projectiles are D&D spells?

    • @ZeroTheorie
      @ZeroTheorie 5 ปีที่แล้ว +188

      Ah yes, "Homing Rocket", my favorite D&D spell

    • @eduardoavila646
      @eduardoavila646 5 ปีที่แล้ว +178

      Yeah shotgun slugs, very effective on undead

    • @12manny34
      @12manny34 5 ปีที่แล้ว +70

      The team at Id played a lot of D&D during Doom's development so I'm not surprised.

    • @eduardoavila646
      @eduardoavila646 5 ปีที่แล้ว +39

      @@12manny34 Yeah, there is probably some inspiration of D&D and also heavy metal bands in dooms development

    • @DisemboweII
      @DisemboweII 5 ปีที่แล้ว +77

      The Cacodemon is literally the cropped head of an "Astral Dreadnought", featured on the cover of the D&D book "Manual of the Planes".
      pbs.twimg.com/media/BjSRcqxCYAEX50M.jpg

  • @ZethHolyblade
    @ZethHolyblade 4 ปีที่แล้ว +8

    5:05 so that's why I could hear wonderful zombiemen choirs after using the supershotty back in 95-96.
    Some would yell "mwuhhnnng"
    Others "mwuh-uhnnn-uhnng"

  • @colors6229
    @colors6229 5 ปีที่แล้ว +124

    that explosion tube at the end made me laugh. nice vid!

  • @mikesully110
    @mikesully110 5 ปีที่แล้ว +52

    I always thought the variance (deviation) was far too high in doom. It just didn't seem right that a revenant can do 80 damage sometimes and 10 the next. Other games like system shock had a 10% variance in damage (plus an additional chance to proc a critical)
    same with your own weapon damage. Your shotgun can do 5, 10 or 15 damage per pellet - sometimes your shotgun rounds are only a third as strong as other ones?
    I can see why ID took the mechanic out of their later games

    • @WTFBOOMDOOM
      @WTFBOOMDOOM 5 ปีที่แล้ว +6

      I couldn't agree more.

    • @lankymaccrazyhair264
      @lankymaccrazyhair264 ปีที่แล้ว +4

      I agree, but i also understand how it happened. Doom's engine is, as far as I'm aware, the second ever of it's kind, and the first one to stand the tests of time. (Sorry Wolfenstein 3D) of course it's going to be flawed, it's the first *good* fps. Nobody does it completely right their first time, so the fact that doom does as much right as it does it's a testiment to doom's great design.
      ... But yeah taking 10-80 damage from an attack is silly.

    • @Smirgelius
      @Smirgelius 2 หลายเดือนก่อน

      It works suprisingly well in general, but I'm pretty surprised to learn how huge the difference between the min damage and max damage is, especially when it comes to the big enemies like the cyberdemon and its rockets.

  • @masterneme
    @masterneme 5 ปีที่แล้ว +315

    Great video, I'm actually building a "Doom Clone" using Unreal Engine and to mimic some behaviors I read some of the documentation available that explains how the Doom Engine works.
    This makes me appreciate Doom even more because it's full of ingenuity and clever tricks behind the scenes, and you explained it very well.
    Fortunately with today's computers you can just use real random generation. I'll save this video for further watching because RNG is the spice that makes Doom gameplay so awesome and there are some other uses that I haven't explore yet that will add extra coolness to my work.

    • @four-en-tee
      @four-en-tee 5 ปีที่แล้ว +11

      For real authenticity in your doom clone, you'd think that you'd want to keep Doom's version of RNG generation.

    • @JardsonJean
      @JardsonJean 5 ปีที่แล้ว +21

      Just as a heads up, there isn't such a thing as "real random generation" in computing. The RNG that was used on Doom is kind of primitive but it isn't very different from what many games to this day still use. To emulate "real" random generation you need some very complex maths and processes that don't realistically serve to games.

    • @UberMun
      @UberMun 5 ปีที่แล้ว +6

      @@JardsonJean And its not just modern computers that do this, Super Mario World on the SNES used a simple pRNG algorithm to create its random numbers. RetroGameMechanicsExplained has a great video on it.

    • @gracefool
      @gracefool 5 ปีที่แล้ว +13

      @@JardsonJean both you and TOZE are only half right. Modern random number god uses a) good sources of data that are effectively impossible to predict, especially when combined, eg. hard drive read head movements and clock drift, and b) somewhat performance-intensive algorithms to create a uniform distribution of numbers from those bits.
      Encryption relies on this number generation being unpredictable.

    • @masterneme
      @masterneme 5 ปีที่แล้ว +7

      @@four-en-tee The idea is to make an homage, something that looks and feels similar to old-school but with modern tech.
      Using modern number generators is just far simpler because they're already there ready to use.
      And yes it's true, computers don't know random, what I mean by "real" is letting the built-in algorithm come up with a number from its calculations instead of from a list manually picked up beforehand.
      And for demos, Unreal Engine has a system that makes use of the networking one to record the replicated variables and functions. Which means more extra time available for something else.
      It also allows to view demos that were recorded with older versions without any compatibility issues.

  • @anonanon3066
    @anonanon3066 5 ปีที่แล้ว +300

    Boss:
    Implement a random number generator.
    Me:
    uint Random()
    {
    return 4; //Random number. Chosen by a diceroll.
    }

    • @KettLovahr
      @KettLovahr 5 ปีที่แล้ว +24

      Guaranteed to be random.

    • @russianbotfarm3036
      @russianbotfarm3036 5 ปีที่แล้ว +27

      I see what you did there - an XKCD reference.

    • @emailhook534
      @emailhook534 4 ปีที่แล้ว +20

      This is almost verbatim the code that allowed people to bypass the ps3 security engine, Sony genuinely coded an RNG that always returned 7

  • @Rahajeb
    @Rahajeb 5 ปีที่แล้ว +339

    *How dare you pump out good and informative content!*
    Lovin your videos :)

  • @rowanbadhwar877
    @rowanbadhwar877 5 ปีที่แล้ว +9

    This video makes me appreciate DOOM even more! All those little things the devs put in that make it seem like a living world and add a bit of unpredictability are so impressive, and add so much to the experience but I never really thought about them.

  • @NecrosAcolyte
    @NecrosAcolyte 5 ปีที่แล้ว +94

    I'm trying to learn how to code, and this was... shockingly helpful. Thank you!

    • @Annatar3019
      @Annatar3019 5 ปีที่แล้ว +10

      I know what you are talking about. It's one thing to know how to do something in code, it's another thing to apply your knowledge to the real world.

  • @steweddafodil9157
    @steweddafodil9157 5 ปีที่แล้ว +112

    After 16 years i finally understand how the bfg works XD

    • @ПавелКорешков-ь4г
      @ПавелКорешков-ь4г 4 ปีที่แล้ว +9

      They must have been drunk, wnen they came up with this idea. How on Earth one could guess there are INVISIBLE TRACES, radiating from the gun and leaving no marks on walls!
      But wait, he didn't mention the WEIRD part of it: those "tracer" pellets ignore the location of the main blob impact and the gun pointing direction. Instead they are projected at the same azimuth the player WAS LOOKING at the moment of initial fire! E.g. if you shoot it north, the tracers will then emit north direction too (with spread), regardless of looking direction and impact coordinates.
      This produces unexpected results:
      - you can fire the BFG blob, then hop into a teleport to another location; the blob hits a wall in the initial room, doing absolutely no damage, but in the new room a spray of traces emanates from your new location and kills all monsters; basically, one can "pre-fire" the BFG before engaging in combat - the most of the damage comes from tracers;
      - you fire the blob to north direction, then stand behind a cover (south to it) - only 1 monster will be potentially hit (by the blob), all secondary invisible pellets will shoot the wall in front of you;
      - you are in the middle of a large room, filled with monsters; you shoot the blob at nearest pillar, hoping to produce splash damage quickly around your location; nobody gets hurt at all, ammo wasted;
      - shoot a blob at monster crowd, then turn your look away 180; when you turn back, everyone is dead - the invisible tracers magically emitted from your ass killed everyone.

    • @ПавелКорешков-ь4г
      @ПавелКорешков-ь4г 4 ปีที่แล้ว +4

      Wait, decino has it covered actually: th-cam.com/video/MsCqLQJ1EOc/w-d-xo.html
      Highly recommended.

    • @JeffreyPiatt
      @JeffreyPiatt 4 ปีที่แล้ว +2

      @@ПавелКорешков-ь4г it's actually still using code from the aborted Alpha version where it would fire red and green plasma balls in a shotgun like blast. It was dropped because it made a 486/DX slow to a crawl rendering it and it looked like Christmas . So the gun post press demo became the iconic green Ball of deadly plasma that kills everything not you.

    • @ПавелКорешков-ь4г
      @ПавелКорешков-ь4г 4 ปีที่แล้ว

      @@JeffreyPiatt Yeah, I've heard about Christmas looks recently on @decino's))
      Still there are many things that don't make much sense:
      - why wait for the ball explosion? Or at least have a fixed, short, unconditional delay before the secondary emission;
      - why ignore both actual ball direction and player view vectors? This fixed azimuth approach is counter intuitive and makes the gun "stupid" to the log level - despite commonly labeled as "smart" weapon;
      - why not make wall-hit effect for tracers? The engine can obviously handle that much sparks when hitting enemies; the whole thing wouldn't be so obscure! Most people have been playing it of decades - without realizing it's a shotgun, not AoE launcher;
      - isn't there a friendly-fire feature in the engine? The imps can't hurt each other afaik. The BFG mechanics would be much faster with an AoE blast (checking only distance to target instead of tracers individual collisions), with the single check for friendly wielder (once per blast!). In the end the ball is a burden.
      I'm curious.

    • @ПавелКорешков-ь4г
      @ПавелКорешков-ь4г 4 ปีที่แล้ว +1

      Better yet, the gun could have the dual-trigger behavior:
      - on the first press it behaves as is (delay, charge, launch the ball);
      - show some fancy animation on the gun - e.g. bulbs flashing at increasing rate (it's simply a sprite switch, doesn't require additional time to render); this would create a cue - it's not done yet, brace for the REAL part!
      - after a delay (or when the ball explodes) the gun is fully charged, bulbs going crazy;
      - on the second press it releases the pellets spray with a violent knockback; the user appreciates its full potential and instanly learns how to wield it properly - without waiting for 25 years to be explained on YT.
      It would make the BFG much more dangerous, possibly breaking balance. But it could be managed (nerf for multipleer, or make the second phase very brief, so the players couldn't carry the full charge long, etc.)

  • @andersdenkend
    @andersdenkend 5 ปีที่แล้ว +22

    Okay, this was really great. Very well put together, nice narration and awesome video examples. Definitely beats reading the wiki! Great work, please more of this.

  • @manowartank8784
    @manowartank8784 5 ปีที่แล้ว +198

    I always knew that guys from id software are nerds, but to add rng code to flashing lights on buildings in map screen, that is ultra nerds.

    • @RFC3514
      @RFC3514 5 ปีที่แล้ว +28

      It's not RNG (the values aren't being generated). Since they are using a table, it's as fast to do it this way as it would to have a hard-coded "animation" of the light flickering. This way they save some memory (and improve the performance of hardware caching) by using the same table for (almost) everything.

  • @CappnRob
    @CappnRob 5 ปีที่แล้ว +39

    Found your channel on a random youtube recommendation and have already watched this and the sprites video, good content! I knew about Doom's RNG but I had no idea damage values could be THAT varied, no wonder Revenants always piss me off lol

  • @dinitroacetylen
    @dinitroacetylen 5 ปีที่แล้ว +7

    2:37 -- took me a while to realise how this code snippet works. And when I did, I also got this creeping sensation that I will never be as good at programming as the Geek Overlord John.

  • @user-pc5sc7zi9j
    @user-pc5sc7zi9j 5 ปีที่แล้ว +87

    Imagine releasing a game today where an attack could do 6 or 60 DMG based on RNG.

    • @L10kwnsns
      @L10kwnsns ปีที่แล้ว +7

      That's how csgo feels sometimes...

    • @Goodbutevilgenius
      @Goodbutevilgenius ปีที่แล้ว +5

      RPGs still exist to this very day.

    • @lankymaccrazyhair264
      @lankymaccrazyhair264 ปีที่แล้ว +3

      @@Goodbutevilgenius But as a general rule, modern games don't have this crazy level of damage varience. I love me some good ol classic Doom, but having attacks do anywhere from 10 to 80 to me based on RNG is something I'm glad modern games don't do.

    • @Goodbutevilgenius
      @Goodbutevilgenius ปีที่แล้ว +1

      @@lankymaccrazyhair264 have you not played the incredibly recent Baldur's Gate 3? The randomness there is insane. You can very much have 10-80 spreads there, preceeded by also using RNG for determining if the attack will even hit.

    • @lankymaccrazyhair264
      @lankymaccrazyhair264 ปีที่แล้ว +1

      @@Goodbutevilgenius i have not played Balders gate. Any of them.
      How much health do you have in that game? If it's in any way comparable to Doom, that's nuts, I'm shocked a big name game, or any modern game, has that level of variance, even if it's a DnD tie in. If you have 1000 health, that big of a difference would be a lot less noticable.

  • @entengummitiger1576
    @entengummitiger1576 5 ปีที่แล้ว +136

    Wow, I've been playing Doom for thousands of hours and never realised damage is random

    • @EnjoyCocaColaLight
      @EnjoyCocaColaLight 5 ปีที่แล้ว +4

      same lmao

    • @ResidentOfficial
      @ResidentOfficial 4 ปีที่แล้ว +4

      WTF you must have, sometimes a direct shotgun hit from up close doesnt kill an Imp, while other times far range snipe from shottie kills him right away.

    • @WEndro333
      @WEndro333 4 ปีที่แล้ว +2

      You never noticed how the Revenant first hits for a measly 15 damage and then immediately hits you for 70?

    • @rileyrosswalker
      @rileyrosswalker 5 หลายเดือนก่อน

      @@ResidentOfficial You'd think it'd be that obvious, but even I didn't notice till learning what RNG even was. I just thought it was all poor accuracy/timing on my part lol.

    • @ResidentOfficial
      @ResidentOfficial 5 หลายเดือนก่อน

      @@rileyrosswalker hah I mean I can understand it would seem like that to someone, but I was playing Doom on and off since I was like 10 soooo :D

  • @Phobos_Anomaly
    @Phobos_Anomaly 4 ปีที่แล้ว +25

    2:25
    "The second index is only used for a specific player's perspective, so things like screen melt and sandwiches"
    *Yes I know he said "sound pitches", when I first heard this I was like, "what?"

    • @SaviourV
      @SaviourV 3 ปีที่แล้ว +4

      Can't...unhear...😆

    • @HappyBeezerStudios
      @HappyBeezerStudios 8 หลายเดือนก่อน

      Doom, now with RSG: Random Sandwich Generator

  • @jackdavies1960
    @jackdavies1960 5 ปีที่แล้ว +3

    This video is so, so, _so_ clear and concise, I want to thank you even just for that alone. But furthermore, I had no idea how much RNG actually went into DOOM, and it just shows how necessary RNG is in the mechanics that you would never typically associate with RNG. Sure, I've thought about RNG going a _little_ further than just drop tables, like the random damage of guns, but never to this extent -- and DOOM is obviously upheld as one of the greatest games ever, with a still enticing play-ability even to those who have never touched it before. Thanks so much for this video, it has really inspired me to start thinking in new ways about game design!

  • @Self-replicating_whatnot
    @Self-replicating_whatnot 4 ปีที่แล้ว +47

    "Berserk damage is inapplicable to chaisaw" - sad Khornate noizes.

  • @antipsychotic451
    @antipsychotic451 3 ปีที่แล้ว +1

    Your dedication to documenting the DOOM games is really commendable. I love this approach to deconstructing the code, sprites, sounds, and other technical aspects that make up DOOM. Great stuff!

  • @UltraEpicLeader10020
    @UltraEpicLeader10020 5 ปีที่แล้ว +38

    I like the image in the video showing the Card Game

    • @mechanismeight9565
      @mechanismeight9565 5 ปีที่แล้ว +1

      in DOOM"s early betas, there was a wall texture that was actually replaced with that texture of a game of cards. No idea why it was there, but i think it was removed by the time Beta 0.5 was made.

    • @cdru515
      @cdru515 5 ปีที่แล้ว +2

      @@mechanismeight9565 The idea was that all the player characters were playing cards when hell broke out

    • @mechanismeight9565
      @mechanismeight9565 5 ปีที่แล้ว +2

      @@cdru515 "Go fish! HA! I win again! Hey... what's that noise? It sounds like a demon or something."
      And that's how it started.

    • @SoldierOfFate
      @SoldierOfFate 4 ปีที่แล้ว +2

      More fun facts: the characters playing cards were the crew from Rise of the Triad. They were intended to be selectable characters for Doom (each with their own unique quirks, advantages, and drawbacks) before the idea was scrapped.

  • @ivothemoth2346
    @ivothemoth2346 4 ปีที่แล้ว +7

    I'm waiting for when "Doom A1 on Ultra Nightmare mode" is a thing.
    It would probably be named "A1 Ultra Nightmare Speedrun" or "A1 UNS" for short.

  • @HueyTheDoctor
    @HueyTheDoctor 5 ปีที่แล้ว +3

    This is an excellent analysis. I'm 32, so I was playing Doom when the initial shareware version was released and I've never had any idea there was this much randomness involved in the gameplay until you broke it all down like this. Ridiculously informative video, man - keep up the great work and I'll keep watching and liking.

  • @bigsauce1116
    @bigsauce1116 ปีที่แล้ว +1

    It's simply bewildering on how a video explaining a relatively obscure subject can ascertain such a huge amount of views. It's something to be proud of. It speaks volumes on how entertaining your videos actually are. Best wishes man.

  • @jorgecorea7528
    @jorgecorea7528 5 ปีที่แล้ว +13

    13:54 that was an impressive shot.

  • @UltimateCarl
    @UltimateCarl 5 ปีที่แล้ว +7

    Wow, I always knew Doom had randomized hit chances and damage but I never quite realized just how big the variance actually is. Some of those damage ranges are crazy.

  • @mulliganwizard9068
    @mulliganwizard9068 5 ปีที่แล้ว +5

    Another great video!! I love these vids where dive into the inner workings of a game :) Whenever I see a vid with something over that yellow background i know it's gonna be a good day!

  • @sketchpad7116
    @sketchpad7116 4 ปีที่แล้ว +2

    Heck, I have played Doom maybe twice, yet these are some of my favorite videos. Also the thumbnails are brilliant.

  • @Arsaja
    @Arsaja 5 ปีที่แล้ว +111

    Wait. What was the explanation for the exit sound NOT being randomized?

    • @decino
      @decino  5 ปีที่แล้ว +82

      Doom runs an internal timer and depending on which digit it ends decides the exit sound.

    • @RpTheHotrod
      @RpTheHotrod 5 ปีที่แล้ว +37

      @@decino Isn't that technically still being "random"? (Nothing is truly random, so when we say random, it means perceived to be random). For example, the first shots were always doing the exact same thing since it pulls from a table, though it "seems" random in normal gameplay. Determining what the exit sound plays is pretty much the same thing, except instead of a table of a variety of set numbers, it's a table of consecutive numbers that are constantly "running".

    • @decino
      @decino  5 ปีที่แล้ว +53

      Difficult to tell. If you time the exit well using e.g. a stopwatch you will always play the same exit sound. However, same could be said about your player input during gameplay.

    • @Optimus6128
      @Optimus6128 5 ปีที่แล้ว +14

      @@RpTheHotrod True, and it's even more random and unpredictable in a sense (because it's really based on the time the player decided to quit) compared to getting the next value in a static table.

    • @spartanwar1185
      @spartanwar1185 5 ปีที่แล้ว +6

      Infact it could be even more random if the p_random table was also increasing by 1 value every tick
      So that time would also play a role

  • @coldest1998
    @coldest1998 5 ปีที่แล้ว +1

    This channel is so underrated omg, the amounts of information in one video. And not only that, the way in which you deliver it along with the graphic content. Hellish material.

  • @du4lstrik3
    @du4lstrik3 5 ปีที่แล้ว +15

    ::Hasn't played Doom in years, opens the video::
    0:01 - Sigh... yeah, those damned revenants. We can all relate to that daily struggle.

    • @HappyBeezerStudios
      @HappyBeezerStudios 8 หลายเดือนก่อน

      can only recommend The Revenant Problem.

  • @phoneixsfall344
    @phoneixsfall344 4 ปีที่แล้ว +1

    I’m subscribing to this channel because the attention to detail and paying attention to the viewers!! Thank you. I love old school doom and keep up the videos! I love them thank you soooo much!!!

  • @c0ntra605
    @c0ntra605 5 ปีที่แล้ว +27

    the absolute worst feeling in any game is losing not to your own lack of skill, but just by some random bullshit.
    Which is why I love games like doom and sekiro who practically don’t have any rng at all

  • @safreq453
    @safreq453 4 ปีที่แล้ว +8

    Someone NEEDS to make a mod that does this 14:14 to the screen melt cuz that just looks so funny!
    Edit: thx for the heart!

  • @Kitties_are_pretty
    @Kitties_are_pretty 5 ปีที่แล้ว +3

    This is why TH-cam is great. Something like this never would have made it to television but it's absolutely fantastic and we'd never get to see it without a platform like this.

  • @dadude001
    @dadude001 4 ปีที่แล้ว +4

    Brutal Doom has a feature that randomizes sound pitches, but it is such a big difference that one sound is of a medium-low pitch and the next one is really high-pitched

  • @meatballphilosopher5734
    @meatballphilosopher5734 4 ปีที่แล้ว +6

    The pitch-shifting for BFG Edition was taken up to 11, making it sound ABSOLUTELY DISGUSTING

  • @2GlitchinAwesome
    @2GlitchinAwesome 17 วันที่ผ่านมา

    Absolutely love watching these videos. There is so much information, and so well presented, great job sir!!

  • @rompevuevitos222
    @rompevuevitos222 5 ปีที่แล้ว +6

    This is the smartest gameplay variation i've seen.
    You can't bang your head doing the same stuff over and over until you get lucky rolls, but you won't be randomly punished for using a good strat either, it's rng, but your actions actually are worth a damn :D
    It also assures all values have proper variations, so you don't get 5 missiles with 160 damage in a row, nor with 20

    • @dmas7749
      @dmas7749 5 ปีที่แล้ว

      i'd prefer to just do 100 with all my missiles

  • @nemesiser89
    @nemesiser89 5 ปีที่แล้ว

    Dude this is an insanely amazing video not just for learning how doom's RNG works but just a bit of game development. How things are connected on the programming side and how to understand a bit of the actions being called

  • @GraveUypo
    @GraveUypo 5 ปีที่แล้ว +12

    awesome video. love learning about how the classics work, and there ain't no classic classic'er than doom

  • @Superlagg
    @Superlagg 5 ปีที่แล้ว +6

    11:21 Mock2 really knew how to make the most perfectly designed *horrible* *horrible* maps.

  • @CsubAzUrmedve
    @CsubAzUrmedve 5 ปีที่แล้ว +3

    10:52
    That can't be right. I beat both games more times than I can remember, 100% every level, yet not a single time I took damage from that leaking you mentioned.
    Or maybe I did take damage but I can't remember because there was a zombie nearby that shot me... or at least I thought he shot me...
    Mark my words, from this point on I will always notice this. Damn you and your good, informative videos!

    • @decino
      @decino  5 ปีที่แล้ว +5

      Keep in mind that it only happens with super damaging floors that deal 20 damage per cycle.

  • @DrTheoreticalDonuts
    @DrTheoreticalDonuts ปีที่แล้ว

    I used this video as a reference on how to do table based randomness for a presentation on cache replacement strategies. The counter + random table works really well on low power devices. The only difference is that i generate the contents of the table at startup using analogRead of multiple analog pins as the random seed.
    Thanks again for such a concise explanation of how Doom's RNG works.

  • @PhilShary
    @PhilShary 5 ปีที่แล้ว +3

    Love your deep analysis of Doom! Subscribed.

  • @frownyclowny6955
    @frownyclowny6955 2 หลายเดือนก่อน

    I’ve been binging your doom videos while seeing plushies, since my brother introduced me to your channel. I really like the casual nature of these bite-sized videos. I love niche video game mechanical information!!!! I love learning while working!!!

  • @Player1-up
    @Player1-up 5 ปีที่แล้ว +5

    That bit about how the RNG affects the demos is actually quite ingenious.

  • @matt4193
    @matt4193 5 ปีที่แล้ว +5

    Today, on "things I sure did not know but i'm kinda thankful that *decino* spend time explaining in a well thought and entertaining way"

  • @Shanks612
    @Shanks612 5 ปีที่แล้ว

    Since playing the old Doom games again Ive watched alot of your vids as I found em by chance. You have given me a new love for these truely timeless games.

  • @PlayerZeroStart
    @PlayerZeroStart 5 ปีที่แล้ว +6

    I play D&D too much. The first thing I thought of when you talked about projectiles damage is that they roll a D8.

    • @artebirklaus
      @artebirklaus 4 ปีที่แล้ว +3

      Apparently, the Id Software team played tons of D&D, and the entire demons and hell aspect of Doom was inspired by it. I'm pretty sure that the damage variance was derived from the same source.

  • @jonathanbourke305
    @jonathanbourke305 6 หลายเดือนก่อน +1

    13:50 "The Icon of Sin will only spawn Imps." Bro then proceeds to fire the most immaculately timed rocket ever. Bravo!

  • @TheWaynelds
    @TheWaynelds 3 ปีที่แล้ว +3

    One thing about Doom monsters is, instead of just idling, why don’t some of them wander around or patrol their areas before being alerted by the player? If you go into the monsters “Decorate” script with Slade, their Idle state uses the A_look function, which looks for the player, you can insert a function called A_Wander into some of their walking animation frames
    and then add few frames with A_Look which causes monsters to randomly walk around an area and still be able to see the player. I know there are situations where dormant monsters location needs to be specific, but there are other times where it would be better if they were moving around.
    I like that better than their silly looking idle animations that look as if they’re dancing.

    • @decino
      @decino  3 ปีที่แล้ว

      A_Wander isn't an OG Doom function.

  • @cevaggelou
    @cevaggelou 4 ปีที่แล้ว +1

    My friend, your targeted choice of small code snippets and your clear explanations are very good. Very nicely done.

  • @VagueLuminary
    @VagueLuminary 5 ปีที่แล้ว +3

    4:26 At some point I noticed when video games started to force a killed enemy to fall over a ledge or railing or whatnot, I can't believe Doom always had this function!

  • @victormituri
    @victormituri 5 ปีที่แล้ว +1

    I am glad to see info videos about the original Dooms in 2019!!Keep up the great work!

  • @shahmcdonald
    @shahmcdonald 5 ปีที่แล้ว +79

    I like your vids its like going to listen to a professor. At the doom uniniversity

    • @joonasfi
      @joonasfi 5 ปีที่แล้ว +2

      Professor doom. Or professor of doom.. I like the sound of that

    • @malbeth8700
      @malbeth8700 5 ปีที่แล้ว +2

      He evens talks like a real professor, in a very slow and boring monotone...

    • @MarkRidlen
      @MarkRidlen 4 ปีที่แล้ว

      DOOMU(.WAD)

  • @cs512tr
    @cs512tr ปีที่แล้ว +2

    i love how a game in the early 90s still has a huge buzz and appreciation

  • @Smarkenham16
    @Smarkenham16 5 ปีที่แล้ว +16

    6:27 oldschool runescape :D

  • @SyberianLynx
    @SyberianLynx 5 ปีที่แล้ว +1

    Awesome, very informative video! Doom is really its own universe.
    Important thing though: it appears that newer source ports have better RNGs which prevent 1:34 from happening. I couldn't replicate this effect in both GZDoom and PrBoom+ but manage to do that in Chocolate Doom which is almost vanilla.

  • @Dondlo46
    @Dondlo46 4 ปีที่แล้ว +3

    4:40 archvile has lowest pain chance? what a terrible news to hear

  • @TivonSanders
    @TivonSanders 3 ปีที่แล้ว +2

    10:24 That tracer impact was perfectly in synch with the rimshot. LOL

  • @Xanthosking
    @Xanthosking 5 ปีที่แล้ว +6

    Wow this is really good. I was curious to see the averages and bell curves for the various random elements, but i suppose that's just more effort on your part. Still, great stuff

  • @adamdavenport8009
    @adamdavenport8009 5 ปีที่แล้ว +1

    This was pretty cool. I loved how you were able to replicate the exact same outcome by standing there and shooting once.

  • @jamesm6083
    @jamesm6083 5 ปีที่แล้ว +12

    You must sign into bnet to continue this video. You will connect to the internet.
    ->Okay