I've been playing around with vanilla Doom and I was wondering how the game defines the translation values for the extra players when playing in multiplayer. I assumed it just picked an index from the palette and swapped all 16 shades of green for that palette index and whatever 15 colors that followed, which is defined as a hex value in the executable. Well, I found something interesting, in DOOM.EXE 1.9, at address 9BF0C there's the following data:
70 00 00 00 60 00 00 00 40 00 00 00 B0 00 00 00
Which actually match the first palette index for green, grey and brown, but I'm almost sure that player 4 in Doom actually uses index 32, not 176. Unfortunately, changing those values have no effect on the colors of the other players.
I know this isn't such an interesting topic to look into, but anybody knows how the game change the player color to another in vanilla?
I've been playing around with vanilla Doom and I was wondering how the game defines the translation values for the extra players when playing in multiplayer. I assumed it just picked an index from the palette and swapped all 16 shades of green for that palette index and whatever 15 colors that followed, which is defined as a hex value in the executable. Well, I found something interesting, in DOOM.EXE 1.9, at address 9BF0C there's the following data:
Which actually match the first palette index for green, grey and brown, but I'm almost sure that player 4 in Doom actually uses index 32, not 176. Unfortunately, changing those values have no effect on the colors of the other players.
I know this isn't such an interesting topic to look into, but anybody knows how the game change the player color to another in vanilla?
Share this post
Link to post