Skip to content

Grenade Count

Value syntax for the initial_grenades field on the Player traits enum. Used inside player_traits blocks and override base_player_traits (and similar) in game_options.

ManagedMegalo accepts a single token or a count plus grenade type. Reach scripts use only frag and plasma counts on the wire (each sets equal counts of both).

Special values

ValueEffect
noneNo starting grenades
defaultUse the map's default grenade loadout

Count forms

Count must be 1–4. Type must be frag, plasma, or each.

SyntaxStarting grenades
1 frag1 frag
2 frag2 frag
3 frag3 frag
4 frag4 frag
1 plasma1 plasma
2 plasma2 plasma
3 plasma3 plasma
4 plasma4 plasma
1 each1 frag and 1 plasma
2 each2 frag and 2 plasma
3 each3 frag and 3 plasma
4 each4 frag and 4 plasma

To mix unequal frag and plasma counts, use separate lines — each line updates one side of the loadout:

megalo
override base_player_traits
	initial_grenades 1 frag
	initial_grenades 1 plasma
end
megalo
player_traits infected_traits
	initial_grenades none
end

Grenade types in grenades.txt (spike, firebomb, etc.) are not valid here; only frag, plasma, and each are accepted by the Megalo parser.

See also