diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-01-04 23:27:36 -0500 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-01-04 23:27:36 -0500 |
| commit | 4879eb1d78520ce0ac9b0bb0ef5244cf65ad7c99 (patch) | |
| tree | ac47724191a8959c19b2408d4da384d64b6098ec /gamemode/server/test/testfile.lua | |
| parent | 2c4329e2b6e19182a441f79a5c3010011f8ae767 (diff) | |
| download | artery-4879eb1d78520ce0ac9b0bb0ef5244cf65ad7c99.tar.gz artery-4879eb1d78520ce0ac9b0bb0ef5244cf65ad7c99.tar.bz2 artery-4879eb1d78520ce0ac9b0bb0ef5244cf65ad7c99.zip | |
Started refactoring item and inventory system
Diffstat (limited to 'gamemode/server/test/testfile.lua')
| -rw-r--r-- | gamemode/server/test/testfile.lua | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/gamemode/server/test/testfile.lua b/gamemode/server/test/testfile.lua deleted file mode 100644 index 95e40fa..0000000 --- a/gamemode/server/test/testfile.lua +++ /dev/null @@ -1,48 +0,0 @@ ---print("This is a test file to see if it gets included! Test!") ---Msg("Testing heatmap.lua\n") -local hm = heatmap.CreateHeatMap() ---PrintTable(hm) ---PrintTable(heatmap) ---local effect = heatmap.UniformInfiniteForever(5) ---hm:RegisterEffect(effect,Vector(0,0,0)) ---PrintTable(hm) ---local neweffect = heatmap.LinearInfiniteForeverGrounded(2000,Vector(0,0,0)) ---hm:RegisterEffect(neweffect,Vector(0,0,0)) ---PrintTable(hm) -local decayeffect = -heatmap.LinearInfiniteLinearDecayGrounded(2000,5) -hm:RegisterEffect(decayeffect,Vector(4000,4000,0)) -local bubbleeffect = heatmap.ParabolicInfiniteForeverGrounded(1000,2.5) -hm:RegisterEffect(bubbleeffect,Vector(0,0,0)) - -function sendHeatMap(ply) - local points = {} - net.Start("showheatmap") - for i=0,10000,100 do - points[i] = {} - for j=0,10000,100 do - local offset = --[[ply:GetPos() + ]]Vector(i,j,0) + Vector(-5000,-5000,0) - points[i][j] = hm:CalculateFor(offset, 0) - --net.WriteVector(offset) - net.WriteFloat(points[i][j]) - --print("at ("..i..","..j..") is ") - --print(points[i][j]) - end - end - net.Send(ply) -end - -function callloop(ply) - sendHeatMap(ply) - hm.curtime = hm.curtime + 0.5 - timer.Simple(0.5,function() callloop(ply) end) -end - -util.AddNetworkString("showheatmap") -concommand.Add("ShowHeatMap",function(ply,cmd,args) - callloop(ply) -end) - -concommand.Add("HeatMapAt",function(ply,cmd,args) - print(hm:CalculateFor(ply:GetPos(),0)) -end) |
