Fixed the KeyValues for vehicles when pasting.

This commit is contained in:
tbzipper 2011-10-30 04:19:32 +00:00
parent 067d2f75db
commit 63873d2743

View File

@ -330,7 +330,7 @@ local function LoadSents()
AdvDupe2.duplicator.WhiteList[_] = true
end
end
concommand.Add("advdupe2_reloadwhitelist", LoadSents)
//concommand.Add("advdupe2_reloadwhitelist", LoadSents)
hook.Add( "InitPostEntity", "LoadDuplicatingEntities", LoadSents)
--[[
@ -764,7 +764,7 @@ local function CreateEntityFromTable(EntTable, Player)
if ( Key == "ang" || Key == "Ang" || Key == "angle" ) then Key = "Angle" end
if ( Key == "model" ) then Key = "Model" end
if ( Key == "VehicleTable" )then //Exploit fix, not sure if its still an exploit
EntTable[Key] = {vehiclescript=EntTable[Key].vehiclescript, limitview=EntTable[Key].limitview}
EntTable[Key]["KeyValues"] = {vehiclescript=EntTable[Key]["KeyValues"] .vehiclescript, limitview=EntTable[Key]["KeyValues"] .limitview}
end
Arg = EntTable[ Key ]