wildweasel486 / ww-cash2

Cold Hard Cash 2 by wildweasel.
4 stars 0 forks source link

Shop menu opens when you destroy a machine #6

Closed wildweasel486 closed 9 years ago

wildweasel486 commented 9 years ago

I whacked a vending machine with the upgraded Crowbar until it blew up, and for some reason, the shop menu opened. I'm unsure why; the Decorate does not call scripts at all.

edthebat commented 9 years ago

Ah, I think I might know why... I have the machines set their Special to call that script so that, along with USESPECIAL, they can be activated with the use key. By default, actors call their special when killed. I'll see if I can find a way to have them clear their special when killed so they don't call the script.

edthebat commented 9 years ago

Got a fix in place. Now, as far as the engine cares, they never truly 'die', but all effects for the player should be the same (minus the bug).

wildweasel486 commented 9 years ago

Thanks again, sir!

wildweasel486 commented 9 years ago

Sorry, I have to reopen this; apparently despite our best efforts, the machines still spontaneously open their menus when telefragged. (Probably the best place to test this is Doom 2 Map03.)

edthebat commented 9 years ago

That's a puzzler, especially since they have DamageFactor Telefrag,0. On top of that, they now technically no longer have a Death state at all. I'll look into it...

edthebat commented 9 years ago

A development-only flag seems to be the solution to the issue. Pushing now...