//add the command

COM_AddCommand("boostmodeeffect", function(p, arg)
	if arg == "off" then
		p.boostmodeeffect = 0
	elseif arg == "on" then
		p.boostmodeeffect = 1
	end
end)

//default it to on
addHook("PlayerThink", function(p)
	if p.boostmodeeffect == nil
		p.boostmodeeffect = 1
	end
end)


addHook("PlayerThink", function(player)
	if player.isinboostmode == true
	and player.boostmodeeffect == 1
	and player.speed > 34*FRACUNIT
		local piss = P_SpawnMobjFromMobj(player.realmo, P_RandomRange(-20, 20) * FRACUNIT, P_RandomRange(-20, 20) * FRACUNIT, P_RandomRange(0, 50) * FRACUNIT, MT_WATERZAP)
		piss.color = player.mo.color
		piss.colorized = true
	end
end)