The "Drugs!" powerup is implemented in two different parts
TheEffectsOfDrugs function which runs every frame that shuffles palette colors around (already done)
DoDrugWobbleCamera function which manipulates the camera matrix to make the 3d scene 'wobble'
Interestingly, TheEffectsOfDrugs only changes the first 224 palette entries, both in DOS and Windows releases. This is why in snowy maps, the ground (being mostly white, palette index 255) is unaffected.
The "Drugs!" powerup is implemented in two different parts
TheEffectsOfDrugs
function which runs every frame that shuffles palette colors around (already done)DoDrugWobbleCamera
function which manipulates the camera matrix to make the 3d scene 'wobble'Interestingly,
TheEffectsOfDrugs
only changes the first 224 palette entries, both in DOS and Windows releases. This is why in snowy maps, the ground (being mostly white, palette index 255) is unaffected.