Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: Megiddo on June 02, 2007, 12:39:13 PM

Title: HOWTO: Modify Overload's Stacker to obey Uppl
Post by: Megiddo on June 02, 2007, 12:39:13 PM
This is a really simple modification!

Step 1

Find:
Code: [Select]
player:AddCleanup( "props", newent )At or near line 121.

Add after that line:
Code: [Select]
gamemode.Call( "PlayerSpawnedProp", player, ent:GetModel(), newent )


Step 2

Find:
Code: [Select]
if ( !self:GetSWEP():CheckLimit( "props" ) ) then break endAt or near line 68.

Add after that line:
Code: [Select]
if ( !gamemode.Call( "PlayerSpawnProp", player, ent:GetModel() ) ) then break end


You're done! Told you it was easy!
Title: Re: HOWTO: Modify Overload's Stacker to obey Uppl
Post by: Chironex on July 06, 2007, 08:07:22 PM
There is a bug with this method, each props stacked count as 2.

To fix it, comment this line with // (or remove it), like that:
Code: [Select]
//player:AddCount( "props", newent )
which is the line just before
Code: [Select]
player:AddCleanup( "props", newent )
Title: Re: HOWTO: Modify Overload's Stacker to obey Uppl
Post by: Megiddo on July 06, 2007, 09:23:31 PM
Thanks kyzer. I've had this modified on my server but was too lazy to put it back on here. :)
Title: Re: HOWTO: Modify Overload's Stacker to obey Uppl
Post by: Sc00by22 on April 27, 2008, 01:41:43 AM
Thanks