Skip to content

Commit

Permalink
Updated: readme.md
Browse files Browse the repository at this point in the history
Added: TA developer mode
  • Loading branch information
dvdvideo1234 committed Feb 14, 2016
1 parent 09c7c8a commit ce7f2d3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
9 changes: 6 additions & 3 deletions lua/autorun/trackassembly_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ asmlib.SetIndexes("V",1,2,3)
asmlib.SetIndexes("A",1,2,3)
asmlib.SetIndexes("S",4,5,6,7)
asmlib.InitAssembly("track","assembly")
asmlib.SetOpVar("TOOL_VERSION","5.203")
asmlib.SetOpVar("TOOL_VERSION","5.204")
asmlib.SetOpVar("DIRPATH_BAS",asmlib.GetOpVar("TOOLNAME_NL")..asmlib.GetOpVar("OPSYM_DIRECTORY"))
asmlib.SetOpVar("DIRPATH_EXP","exp"..asmlib.GetOpVar("OPSYM_DIRECTORY"))
asmlib.SetOpVar("DIRPATH_DSV","dsv"..asmlib.GetOpVar("OPSYM_DIRECTORY"))
Expand All @@ -41,6 +41,7 @@ asmlib.SetLogControl(0,"")
------ CONFIGURE REPLICATED CVARS ----- Server tells the client what value to use
asmlib.MakeCoVar("maxactrad", "150", {1,500} ,bitBor(FCVAR_ARCHIVE, FCVAR_ARCHIVE_XBOX, FCVAR_NOTIFY, FCVAR_REPLICATED, FCVAR_PRINTABLEONLY), "Maximum active radius to search for a point ID")
asmlib.MakeCoVar("enwiremod", "1" , {0, 1 } ,bitBor(FCVAR_ARCHIVE, FCVAR_ARCHIVE_XBOX, FCVAR_NOTIFY, FCVAR_REPLICATED, FCVAR_PRINTABLEONLY), "Toggle the wire extension on/off server side")
asmlib.MakeCoVar("devmode" , "0" , {0, 1 } ,bitBor(FCVAR_ARCHIVE, FCVAR_ARCHIVE_XBOX, FCVAR_NOTIFY, FCVAR_REPLICATED, FCVAR_PRINTABLEONLY), "Toggle the wire extension on/off server side")
asmlib.MakeCoVar("maxstcnt" , "200", {1,200} ,bitBor(FCVAR_ARCHIVE, FCVAR_ARCHIVE_XBOX, FCVAR_NOTIFY, FCVAR_REPLICATED, FCVAR_PRINTABLEONLY), "Maximum pieces to spawn in stack mode")
if(SERVER) then
asmlib.MakeCoVar("bnderrmod", "LOG", nil ,bitBor(FCVAR_ARCHIVE, FCVAR_ARCHIVE_XBOX, FCVAR_NOTIFY, FCVAR_REPLICATED, FCVAR_PRINTABLEONLY), "Unreasonable position error handling mode")
Expand Down Expand Up @@ -319,8 +320,10 @@ if(file.Exists(gsFullDSV.."PIECES.txt", "DATA")) then
else
asmlib.LogInstance(gsToolNameU..": DB PIECES from LUA")
asmlib.DefaultTable("PIECES")
asmlib.DefaultType("Develop")
asmlib.InsertRecord({"models/sprops/cuboids/height06/size_1/cube_6x6x6.mdl", "#", "#", 1, "", "", ""})
if(asmlib.GetCoVar("devmode" ,"INT") ~= 0) then
asmlib.DefaultType("Develop")
asmlib.InsertRecord({"models/sprops/cuboids/height06/size_1/cube_6x6x6.mdl", "#", "#", 1, "", "", ""})
end
asmlib.DefaultType("SligWolf's Rerailers")
asmlib.InsertRecord({"models/props_phx/trains/sw_rerailer_1.mdl", "#", "Short Single", 1, "-190.55299377441,0,25.193000793457", "211.41400146484,0.014999999664724,-5.3949999809265", ""})
asmlib.InsertRecord({"models/props_phx/trains/sw_rerailer_2.mdl", "#", "Middle Single", 1, "-190.55299377441,0,25.193000793457", "211.41400146484,0.014999999664724,-5.3949999809265", ""})
Expand Down
15 changes: 7 additions & 8 deletions lua/weapons/gmod_tool/stools/trackassembly.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ TOOL.ClientConVar = {
[ "nextpic" ] = "0",
[ "nextyaw" ] = "0",
[ "nextrol" ] = "0",
[ "addinfo" ] = "0",
[ "logsmax" ] = "0",
[ "logfile" ] = "",
[ "mcspawn" ] = "0",
Expand Down Expand Up @@ -184,8 +183,8 @@ function TOOL:GetMass()
return mathClamp(self:GetClientNumber("mass"),1,gnMaxMass)
end

function TOOL:GetAdditionalInfo()
return (self:GetClientNumber("addinfo") or 0)
function TOOL:GetDeveloperMode()
return asmlib.GetCoVar("devmode" ,"INT")
end

function TOOL:GetPosOffsets()
Expand Down Expand Up @@ -691,7 +690,7 @@ function TOOL:DrawHUD()
local stSpawn = asmlib.GetEntitySpawn(trEnt,stTrace.HitPos,model,pointid,
actrad,spnflat,igntype,nextx,nexty,nextz,nextpic,nextyaw,nextrol)
if(not stSpawn) then return end
local addinfo = self:GetAdditionalInfo()
local devmode = self:GetDeveloperMode()
stSpawn.F:Mul(30)
stSpawn.F:Add(stSpawn.OPos)
stSpawn.R:Mul(30)
Expand Down Expand Up @@ -727,7 +726,7 @@ function TOOL:DrawHUD()
goMonitor:DrawCircle(Tp, RadScale / 2)
goMonitor:DrawLine(Os,Ss,"m")
goMonitor:DrawCircle(Ss, RadScale,"c")
if(addinfo == 0) then return end
if(devmode == 0) then return end
local x,y = goMonitor:GetCenter(10,10)
goMonitor:SetTextEdge(x,y)
goMonitor:DrawText("Act Rad: "..tostring(stSpawn.RLen),"k")
Expand All @@ -741,7 +740,7 @@ function TOOL:DrawHUD()
local offsetup = self:GetOffsetUp()
local mcspawn = self:GetSpawnMC()
local ydegsnp = self:GetYawSnap()
local addinfo = self:GetAdditionalInfo()
local devmode = self:GetDeveloperMode()
local surfsnap = self:GetSurfaceSnap()
local RadScale = mathClamp(1500 / plyd,1,100)
local aAng = asmlib.GetNormalAngle(ply,stTrace,surfsnap,ydegsnp)
Expand Down Expand Up @@ -774,7 +773,7 @@ function TOOL:DrawHUD()
goMonitor:DrawLine(Os,Tp,"y")
goMonitor:DrawCircle(Tp, RadScale / 2)
goMonitor:DrawCircle(Os, RadScale)
if(addinfo == 0) then return end
if(devmode == 0) then return end
local x,y = goMonitor:GetCenter(10,10)
goMonitor:SetTextEdge(x,y)
goMonitor:DrawText("Org POS: "..tostring(vPos),"k")
Expand Down Expand Up @@ -818,7 +817,7 @@ function TOOL:DrawHUD()
goMonitor:DrawCircle(Os, RadScale, "y")
goMonitor:DrawLine(Os,Tp)
goMonitor:DrawCircle(Tp, RadScale / 2)
if(addinfo == 0) then return end
if(devmode == 0) then return end
local x,y = goMonitor:GetCenter(10,10)
goMonitor:SetTextEdge(x,y)
goMonitor:DrawText("Org POS: "..tostring(stSpawn.OPos),"k")
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ A: Here they are, with available status, why I did not do some of them ( in the
18) Mr. Train's M-Gauge rails
19) Bobsters's two gauge rails
20) Mr. Train's G-Gauge rails
21) Ron's 56 gauge rails ( 12.5% Done )
21) Ron's 56 gauge rails
Q: Dude the rails are not showing in the menu, what should I do ?
A: SUBSCRIBE TO THE OWNER OF THE ADDON !!!!
Expand Down
2 changes: 0 additions & 2 deletions todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ X - Fail
D - Discontinued
N - Not applicable
? - Not yet tested

Test the On-Hover panel informations for the tree, type, name and bgskID

0 comments on commit ce7f2d3

Please sign in to comment.