local function go_time(plmo,mo)
	S_StartSound(plmo, sfx_pop)
	local icon = P_SpawnMobjFromMobj(plmo,0,0,plmo.height,mo)
	icon.target = plmo
end

local function pawaa_appu(plr, arg)
	if not plr.mo
		print("You must be in a level to do this.")
		return
	end
	if not arg
		CONS_Printf(plr, "List of extra shields and powerups:")
		CONS_Printf(plr, "\132gr\135av\128: Receive a Gravity Shield.")
		--
		CONS_Printf(plr, "\142gum\128: Receive a Bubblegum Shield.")
		CONS_Printf(plr, "\143clock\128: Receive a Clock Shield.")
		CONS_Printf(plr, "\136combi\128: Receive a Combine Ring.")
		CONS_Printf(plr, "\130gold\128: Receive 20 seconds of Gold Rush.")
		CONS_Printf(plr, "\141socks\128: Receive 20 seconds of Spring Socks.")
		return
	end
	if arg == "grav"
		CONS_Printf(plr, "\132Go go Gadget \135Gravity Shield!")
		go_time(plr.mo,MT_GRAVITORB_ICON)
	--
	--
	elseif arg == "gum"
		CONS_Printf(plr, "\142Go go Gadget Bubblegum Shield!")
		go_time(plr.mo,MT_GUM_ICON)
	elseif arg == "clock"
		CONS_Printf(plr, "\143Go go Gadget Clock Shield!")
		go_time(plr.mo,MT_CLOCK_ICON)
	elseif arg == "combi"
		CONS_Printf(plr, "\136Go go Gadget Combine Ring!")
		go_time(plr.mo,MT_COMBINE_ICON)
	elseif arg == "gold"
		CONS_Printf(plr, "\130Go go Gadget Gold Rush!")
		go_time(plr.mo,MT_GRUSH_ICON)
	elseif arg == "socks"
		CONS_Printf(plr, "\141Go go Gadget Spring Socks!")
		go_time(plr.mo,MT_SOCKS_ICON)
	else
		pawaa_appu(plr, nil)
	end
end

COM_AddCommand("esp", pawaa_appu)