ULX

Author Topic: HOWTO: Modify Overload's Stacker to obey Uppl  (Read 4736 times)

0 Members and 1 Guest are viewing this topic.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
HOWTO: Modify Overload's Stacker to obey Uppl
« 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!
« Last Edit: June 02, 2007, 12:43:54 PM by Megiddo »
Experiencing God's grace one day at a time.

Offline Chironex

  • Full Member
  • ***
  • Posts: 197
  • Karma: 11
  • Formerly known as Kyzer
Re: HOWTO: Modify Overload's Stacker to obey Uppl
« Reply #1 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 )

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: HOWTO: Modify Overload's Stacker to obey Uppl
« Reply #2 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. :)
Experiencing God's grace one day at a time.

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Re: HOWTO: Modify Overload's Stacker to obey Uppl
« Reply #3 on: April 27, 2008, 01:41:43 AM »
Thanks