English Disable Buried items

7 replies
Goto Page
To the start Previous 1 Next To the start
05.01.18 06:53:04 pm
Up
Man Of Steel
User
Offline Off
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
FRiendly boYy.
05.01.18 06:55:40 pm
Up
TrialAndError
User
Offline Off
Edit: I'm stupid, don't try whatever I wrote (Before this).

Use @user Fraizeraust:' solution
edited 1×, last 05.01.18 07:48:21 pm
05.01.18 07:08:44 pm
Up
Fraizeraust
Moderator
Offline Off
Use cs2d lua hook drop hook and return the value as 2 to never fade out the item on the ground with
return
.
05.01.18 07:31:13 pm
Up
script favor
User
Offline Off
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.
Visit my website : https://bounty-mafia.tk , Discord : https://discord.gg/ntNd6TX, IMG:http://i60.tinypic.com/5kixc8.gif
05.01.18 08:10:35 pm
Up
DC
Admin
Offline Off
user Fraizeraust' 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).
www.UnrealSoftware.de | www.CS2D.com | www.CarnageContest.com | Use the forum & avoid PMs!
07.01.18 07:47:36 am
Up
Man Of Steel
User
Offline Off
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.
FRiendly boYy.
07.01.18 10:35:14 am
Up
Fraizeraust
Moderator
Offline Off
There you go.
Code:
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.
07.01.18 04:16:26 pm
Up
Man Of Steel
User
Offline Off
Thanks guy.
I try it, but even yet i don't know its work.

FRiendly boYy.
To the start Previous 1 Next To the start