The Marathon Markup Language - Weapons Element: <weapons>
This kind of element specifies various features of the weapons,
such as shell casings and weapon order (child elements <shell_casings>
and <order>).
Shell-casing features one can specify
with the child element <shell_casings>,
which has these attributes:
- index (mandatory)
- coll: which shapes collection
- seq: which sequence
- x0: initial position (horizontal)
- y0: initial position (vertical)
- vx0: initial velocity (horizontal)
- vy0: initial velocity (vertical)
- dvx: acceleration (horizontal)
- dvy: acceleration (vertical)
The time unit here is the engine tick;
x0, y0, vx0, vy0, dvx, and dvy are all floating-point values
that are relative to the screen (0 = left, 1 = right; 0 = bottom, 1 = top).
The various types of shell casings are:
Assault rifle
Centered pistol
Left-side pistol
Right-side pistol
SMG
The weapon order can be specified with the child element
<order>, which has these attributes, both mandatory:
index: which in the ordering list
weapon: what weapon index
The default weapon order is
Fist
Pistol
Fusion Pistol
Shotgun
Assault Rifle
SMG
Flamethrower
Rocket Launcher
Alien Weapon
Ball
Home