Forum

> > CS2D > General > Disable Buried items
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Disable Buried items

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Disable Buried items

Man Of Steel
User Off Offline

Zitieren
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

alt Re: Disable Buried items

script favor
User Off Offline

Zitieren
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.

alt Re: Disable Buried items

DC
Admin Off Offline

Zitieren
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).

alt Impossible?

Man Of Steel
User Off Offline

Zitieren
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.

alt Re: Disable Buried items

GeoB99
Moderator Off Offline

Zitieren
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.

alt Thanks

Man Of Steel
User Off Offline

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

Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht