• Work continues

General Info
Main Page
Latest News
Schedule
What is it?
About Matt
About This Site

Duke Enhancements
Latest Features
Older Features
Cheat Codes

Duke Insider
Language Basics
Compile Time
Room over Room
Player Structures
UserDef Explanations

More Information
Features Database
E Duke Forum

WW2GI Enhancements
Variables
Weapon Changes
Weapon Settings
System Variables
Events
All

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