mirror of
https://github.com/dvdvideo1234/TrackAssemblyTool.git
synced 2025-03-04 03:13:32 -05:00
Added: OpVar for bodygroup and sking fail safe
This commit is contained in:
parent
60944e3984
commit
1fd4b2afc6
@ -72,7 +72,7 @@ local gtInitLogs = {"*Init", false, 0}
|
||||
|
||||
------ CONFIGURE ASMLIB ------
|
||||
asmlib.InitBase("track","assembly")
|
||||
asmlib.SetOpVar("TOOL_VERSION","7.587")
|
||||
asmlib.SetOpVar("TOOL_VERSION","7.588")
|
||||
asmlib.SetIndexes("V" , "x", "y", "z")
|
||||
asmlib.SetIndexes("A" ,"pitch","yaw","roll")
|
||||
asmlib.SetIndexes("WV",1,2,3)
|
||||
|
@ -568,10 +568,11 @@ function InitBase(sName,sPurpose)
|
||||
SetOpVar("DIRPATH_BAS",GetOpVar("TOOLNAME_NL")..GetOpVar("OPSYM_DIRECTORY"))
|
||||
SetOpVar("DIRPATH_INS","exp"..GetOpVar("OPSYM_DIRECTORY"))
|
||||
SetOpVar("DIRPATH_DSV","dsv"..GetOpVar("OPSYM_DIRECTORY"))
|
||||
SetOpVar("MISS_NOMD","X") -- No model
|
||||
SetOpVar("MISS_NOID","N") -- No ID selected
|
||||
SetOpVar("MISS_NOAV","N/A") -- Not Available
|
||||
SetOpVar("MISS_NOMD","X") -- No model
|
||||
SetOpVar("MISS_NOTP","TYPE") -- No track type
|
||||
SetOpVar("MISS_NOBS","0/0") -- No Bodygroup skin
|
||||
SetOpVar("MISS_NOSQL","NULL") -- No SQL value
|
||||
SetOpVar("MISS_NOTR","Oops, missing ?") -- No translation found
|
||||
SetOpVar("FORM_CONCMD", "%s %s")
|
||||
@ -1861,7 +1862,7 @@ function GetCategory(oTyp,fCat)
|
||||
LogInstance("Compilation failed <"..fCat.."> ["..sTyp.."]", ssLog); return nil end
|
||||
tCat[sTyp].Cmp = out; tTyp = tCat[sTyp]
|
||||
return sTyp, (tTyp and tTyp.Txt), (tTyp and tTyp.Cmp)
|
||||
else LogInstance("Avoided "..GetReport(fCat).." ["..sTyp.."]", ssLog) end
|
||||
else LogInstance("Skip "..GetReport(fCat).." ["..sTyp.."]", ssLog) end
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -70,6 +70,7 @@ local gsUndoPrefN = asmlib.GetOpVar("NAME_INIT"):gsub("^%l", stringUpper)..": "
|
||||
local gsNoID = asmlib.GetOpVar("MISS_NOID") -- No such ID
|
||||
local gsNoAV = asmlib.GetOpVar("MISS_NOAV") -- Not available
|
||||
local gsNoMD = asmlib.GetOpVar("MISS_NOMD") -- No model
|
||||
local gsNoBS = asmlib.GetOpVar("MISS_NOBS") -- No Bodygroup skin
|
||||
local gsSymRev = asmlib.GetOpVar("OPSYM_REVISION")
|
||||
local gsSymDir = asmlib.GetOpVar("OPSYM_DIRECTORY")
|
||||
local gsNoAnchor = gsNoID..gsSymRev..gsNoMD
|
||||
@ -105,7 +106,7 @@ TOOL.ClientConVar = {
|
||||
[ "nextyaw" ] = 0,
|
||||
[ "nextrol" ] = 0,
|
||||
[ "spawncn" ] = 0,
|
||||
[ "bgskids" ] = "0/0",
|
||||
[ "bgskids" ] = gsNoBS,
|
||||
[ "gravity" ] = 1,
|
||||
[ "adviser" ] = 1,
|
||||
[ "elevpnt" ] = 0,
|
||||
@ -242,7 +243,7 @@ function TOOL:GetIgnoreType()
|
||||
end
|
||||
|
||||
function TOOL:GetBodyGroupSkin()
|
||||
return tostring(self:GetClientInfo("bgskids") or "")
|
||||
return tostring(self:GetClientInfo("bgskids") or gsNoBS)
|
||||
end
|
||||
|
||||
function TOOL:GetGravity()
|
||||
@ -453,8 +454,7 @@ function TOOL:GetWorkingMode() -- Put cases in new mode resets here
|
||||
if (workmode == 1) then self:IntersectClear(true) -- Reset ray list in snap mode
|
||||
elseif(workmode == 2) then --[[ Nothing to reset in intersect mode ]] end
|
||||
return workmode, tostring(conWorkMode:Select(workmode) or gsNoAV):sub(1,6)
|
||||
-- Reset settings server-side where available and return the value
|
||||
end
|
||||
end -- Reset settings server-side where available and return the value
|
||||
|
||||
function TOOL:GetStatus(stTr,vMsg,hdEnt)
|
||||
local iMaxlog = asmlib.GetOpVar("LOG_MAXLOGS")
|
||||
|
Loading…
Reference in New Issue
Block a user