Forum

> > CS2D > General > Disable Buried items
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Disable Buried items

7 replies
To the start Previous 1 Next To the start

old Disable Buried items

Man Of Steel
User Off Offline

Quote
Hello Guys,
I need some help,

I want that can we can Stop/Disable our bury items in map?

Example: When we kill players and if he have items so his dropped items are buried in some seconds, i want to be a Disable it. items will not buried in map....Solution?

Thanks for attention,
Help me

old Re: Disable Buried items

script favor
User Off Offline

Quote
So if you want to do that you need to use the value on console ,set
mp_weaponfadeout to "seconds"
that you need to bury the weapon.

old Re: Disable Buried items

DC
Admin Off Offline

Quote
user GeoB99' solution will make all weapons not fade out anymore. Depending on the layout of your map, the used game mode and other Lua scripts, this might lead to a map full of weapons after a short time. So be careful with this and maybe limit it to some weapon types (e.g. only primary weapons).

Simply increasing cs2d cmd mp_weaponfadeout like user script favor suggested is a safer solution. Note however that the limit is 60 seconds (1 minute).

old Impossible?

Man Of Steel
User Off Offline

Quote
So its impossible? or not?
we cannot Disable Burial/fade items forever?

Whereas even i saw in Fws Jail server,
You can check there,

If its situation there using a Script for do that.

Please make any script for will done it.

I need it.

Inform me whenever script will made.

Thanks.

old Re: Disable Buried items

GeoB99
Moderator Off Offline

Quote
There you go.
1
2
3
4
5
6
7
8
9
10
11
local ItemIDs = {1, 2, 3, 4, 5, 6, 10, 11, 20, 21, 22, 23, 24, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40}

function NeverFadeItem(id, iid, type, ain, a, mode, x, y)
  for _, ID in pairs(ItemIDs) do
    if (type == ID) then
      return 2
    end
  end
end

addhook('drop', 'NeverFadeItem')
Note that I've only took the item IDs of primary and secondary (classic) weapons as you can see in the
ItemIDs
table, other items will fade regardless. You can add more item IDs though if you want them not to fade out.

old Thanks

Man Of Steel
User Off Offline

Quote
Thanks guy.
I try it, but even yet i don't know its work.

To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview