local prn = CONS_Printf

COM_AddCommand("takis_nostrafe", function(p)
	if gamestate ~= GS_LEVEL
		prn(p,"You can't use this right now.")
		return
	end
	
	if not (p.takistable)
		prn(p,"You can't use this right now.")
		return	
	end
	
	if p.takistable.io.nostrafe
		p.takistable.io.nostrafe = 0
		prn(p,skins[TAKIS_SKIN].realname.." will now force strafing.")
	else
		p.takistable.io.nostrafe = 1
		prn(p,skins[TAKIS_SKIN].realname.." will no longer force strafing.")
	end
	
	TakisSaveStuff(p)
end)
COM_AddCommand("takis_nohappyhour", function(p)
	if gamestate ~= GS_LEVEL
		prn(p,"You can't use this right now.")
		return
	end
	
	if not (p.takistable)
		prn(p,"You can't use this right now.")
		return	
	end
	
	if p.takistable.io.nohappyhour == 0
		p.takistable.io.nohappyhour = 1
		prn(p,skins[TAKIS_SKIN].realname.." will no longer show Happy Hour things in Jisk's Pizza Time.")
	else
		p.takistable.io.nohappyhour = 0
		prn(p,skins[TAKIS_SKIN].realname.." will now show Happy Hour things in Jisk's Pizza Time.")
	end
	
	TakisSaveStuff(p)
end)

COM_AddCommand("takis_forcealiment", function(p,type)
	if gamestate ~= GS_LEVEL
		prn(p,"You can't use this right now.")
		return
	end
	
	if not (p.takistable)
		prn(p,"You can't use this right now.")
		return	
	end
	
	if type == nil
		return
	end
	
	local ali = p.takistable.aliments
	
	if type == "sunstroke"
		ali.sunstroked = true
		DoFlash(p,PAL_NUKE,2)
	elseif type == "freezing"
		ali.timetoice = TAKIS_MAX_ICETIME
	end
	
end)

COM_AddCommand("takis_debuginfo", takis_printdebuginfo)


