This is a patch to fix the issue with duping older thrusters that do not have the new sound data. This checks if a thruster is missing this sound data and if the thruster is missing the sound data it replaces the data with a blank sound. (a blank string like this "")
Code:
if ( EntTable.Class == "prop_physics" ) then
ok, Result = pcall( AdvDupe.MakeProp, Player, unpack(EntTable.arglist) )
elseif ( EntTable.Class == "gmod_thruster" ) then
if ( EntTable.arglist[10] == false and EntTable.arglist[11] == true ) then
EntTable.arglist[10] = ""
EntTable.arglist[11] = false
end
ok, Result = pcall( EntityClass.Func, Player, unpack(EntTable.arglist) )
else
ok, Result = pcall( EntityClass.Func, Player, unpack(EntTable.arglist) )
end
Patch attached below:
Bookmarks