I recently found an old mod I started way back in 2007 and never finished it. I've been making really good progress and have been able to squash most bugs by searching through the ZDoom Wiki and the forums - but some little critters keep bugging me - any help is appreciated. Here goes:
1. I've made a Sniper Rifle which has a scoped/zoomed view when AltFire is pressed. This works fine, but if you pick up an invisibility sphere, you can see through the edges of the scope. (I made it black apart from the center with the actual reticle and crosshair stuff since it would look cheap-ish if the terrain zoomed in outside the scope.)
Any way to call RenderStyle for single frames - or to make invisibility sphere not affect a certain state of a weapon?
2. I also have a Flamethrower modded in, and can't get the flame projectiles to "go out" when entering water.
Code: Select all
FIR3 A 0 A_JumpIf(waterlevel >1, "DeepWater") and: FIR3 A 0 A_JumpIf(waterlevel ==2, "DeepWater")
with the appropriate DeepWater state included. Neither work. I'm using 3D sectors for swimmable water, but it didn't work with Transfer Heights style water either.
3. Best way to make player movement less slide-y after depressing direction controls? I tried setting a global friction modifier using a TERRAIN lump, and it works until I jump or walk off a ledge - resulting in much faster movement speed mid-air. I know air has no friction in Doom. Any way to counter this?
4. Is there a way to make "Inventory.PickupSound" have a channel/priority modifier like A_PlaySound does? I have custom pickup sounds for a couple of items, and they always seem to cut off if something else is picked up while the pickupsound is still playing.