Weapon Changes


Most weapons now work exactly the same.  Exceptions are: HANDBOMB_WEAPON and HANDREMOTE_WEAPON.

Note that the weapon DISPLAY is still the same (it DOES use WORKSLIKE). This means that tile numbers, weapon movement, etc is still the same way...

The variables work together like this:

Player presses 'fire'
'initialsound' is played (if set to non-zero)
Animation is started  

During animation, frames are counted off. At each frame, the following is the psuedo code that is processed for all weapons except HANDBOMB_WEAPON and HANDREMOTE_WEAPON:

At 'spawntime', spawn the item (if set)
At 'sound2time', make the sound (if set)
At 'firedelay', shoot the item(s)
if currentframe > 'firedelay' currentframe and < 'totaltime'
	if 'automatic'
	   if 'fireeveryother'
		if <everyother>
			shoot
	    else if 'fireeverythird'
		if <everythird>
			shoot
else if currentframe >= 'totaltime'
	if "clip reload in progress"
		at 'totaltime' +1 make EJECT_CLIP sound
		at "2/3 way through reload" make INSERT_CLIP sound
		at 'reload' end animation
	else
		if 'automatic' and "still firing"
			repeat animation
		else
			stop animation