All pastes #828364 Raw Edit

Mine

public text v1 · immutable
#828364 ·published 2007-12-22 12:10 UTC
rendered paste body
function GM:InitPostEntity()
	local checkpointent = ents.FindByClass("waverace_checkpoint")
	CHECKPOINTSNUM = #checkpointent
	for k,v in pairs(checkpointent) do
		for a,b in pairs(v:GetKeyValues()) do
			if a == "model" then
				local id = b:sub(2)
				CHECKPOINTS[id] = {}
				CHECKPOINTS[id].ent = v
				print("Added checkpoint")
			end
			print(a)
		end
	end
end