addHook("MapLoad", function(mapnum)
	for player in players.iterate
		if(BonkerBox_G.IsPlayer(player) ~= true)
			continue
		end
		
		player.bonkerbox_blittime = leveltime //SHOULD be 0 but doesn't matter if its not
	end
end)

addHook("PostThinkFrame",function()
	for player in players.iterate
		if(BonkerBox_G.IsPlayer(player) ~= true)
			continue
		end
		
		if(BonkerBox_G.IsNumber(player.bonkerbox_blittime)==true and abs(player.bonkerbox_blittime-leveltime)>=2) //allow a 2 frame window instead of a 1 frame because this lump will add this PostThinkFrame hook BEFORE any PostThinkFrame hooks in specific racer lumps and if only a 1 frame difference were checked then the value would be nil'd before the racer-specific lumps had chance to react
			player.bonkerbox_blittime = nil
		end
	end
end)