Quantcast
Channel: ZDoom
Viewing all articles
Browse latest Browse all 3391

Scripting • Re: Glitch:Weapon Pickup Sprite Showing Up While Firing

$
0
0
Flash:
FIRC A 0 Bright A_Light1
Spawn:
MGUN A -1
Stop
You need at least to add another Stop just before Spawn:, i.e.:

Code:

Flash:FIRC A 0 Bright A_Light1Stop // <-- HereSpawn:MGUN A -1Stop
But, also note that your flash state sequence is clearly incorrectly made. You are calling A_Light1 to raise the level of illumination, but there is nothing in your code that resets it afterwards. To fix this error, you have to add a call to A_Light0 to the end of the sequence, while also increasing the duration of the state where A_Light1 is called so that its effect lasts a non-zero amount of time. For example:

Code:

Flash:FIRC A 4 A_Light1FIRC A 0 A_Light0Stop
I don't know if your FIRCA sprite is supposed to be visible, or whether it is just a placeholder and the actual flash is drawn in the main attack state. In the latter case, simply replace it with TNT1.

Statistics: Posted by Player701 — Sat Dec 07, 2024 4:28 am



Viewing all articles
Browse latest Browse all 3391

Trending Articles