Results 1 to 3 of 3

Thread: [WireSVN] 2082 server/AdvDupe.lua: Fixed duping old thrusters

  1. #1
    Wire Amateur jonney934's Avatar
    Join Date
    Feb 2008
    Posts
    37

    Post [WireSVN] 2082 server/AdvDupe.lua: Fixed duping old thrusters

    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:

    When you're trying to restart a server, you don't need more than 10 V2 rockets. All you need is someone to join.

  2. #2
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,582

    Default Re: [WireSVN] 2082 server/AdvDupe.lua: Fixed duping old thrusters

    This will shut 'em up. Commit!
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  3. #3
    Have plane will travel Anticept's Avatar
    Join Date
    Feb 2008
    Location
    Ohio, USA
    Posts
    1,503

    Default Re: [WireSVN] 2082 server/AdvDupe.lua: Fixed duping old thrusters

    Committed.
    "You can only tie the record for flying low."

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots