Garry's Mod

Garry's Mod

Stik's Weapon Drop and Drop Item on Death Scripts
30 条留言
Bonniboi42 4 月 13 日 上午 11:31 
appreciate the mod bro
:steamthumbsup:
Teimo Väinämö Pielinen 2024 年 12 月 11 日 上午 2:45 
could you make it so that npcs also drop weapons on death?
devStik  [作者] 2024 年 2 月 28 日 下午 12:42 
just make it a bind
pokomm24 2024 年 2 月 26 日 上午 4:49 
make it a key not consle command
TexasOmertosa 2024 年 1 月 1 日 上午 1:05 
very nice Compared to other modules, this module is more compatible
obsidian5420 2023 年 10 月 22 日 下午 2:27 
can you add a setting that controls how long until the dropped weapon vanishes?
N00bGsav™ 2023 年 5 月 25 日 下午 2:35 
which one is the one where when the player dies they drop their weapon
devStik  [作者] 2022 年 9 月 14 日 下午 9:40 
it should
comte de swag 2022 年 9 月 14 日 下午 3:54 
does it stay when you restart?
devStik  [作者] 2022 年 3 月 20 日 上午 2:06 
put it in Bug Reports with actual information, otherwise I can't fix your issue
konekuski 2022 年 3 月 20 日 上午 1:58 
I enabled the drop weapon on death and instaly my server starts to lag
devStik  [作者] 2022 年 1 月 14 日 下午 4:34 
put in Bug Reports for any errors so I can see what to do to fix it
Notispadiko 2022 年 1 月 14 日 上午 9:30 
it killed my server
CodFish 2021 年 2 月 2 日 下午 2:56 
Stik is the name of one of my characters lmao
devStik  [作者] 2021 年 1 月 13 日 下午 1:27 
added velocity to weapon drop command
devStik  [作者] 2021 年 1 月 12 日 上午 10:11 
tysm, I wish I could help you, but I am sure there is an addon or some code somewhere that has exactly what you are looking for
S. HITMAN 2021 年 1 月 12 日 上午 10:01 
I have tons of respect for anyone who can put up with coding anything, cause that stuff is absolute hell for me. Don't worry about overcomplicating the simple code of your mod for a commentor.
datæ 2021 年 1 月 12 日 上午 9:59 
it's closer to a few lines actually
devStik  [作者] 2021 年 1 月 12 日 上午 9:53 
presumably I would have to add a hook to get all weapons on death, and then create an entity, that when used, gives you all your items back. it would most likely be substantially harder, since dropping an item on death is already part of the game, it just needs to be enabled. the method that you suggested is NOT part of source, and has to be coded in manually, but it may be possible, just requires lots of code
S. HITMAN 2021 年 1 月 11 日 下午 11:32 
How difficult do you suppose it would be to code it so every weapon drops at once in a crate on the players death or that items dropped by players be put in a suitcase rather than dropped as the W_model of the gun.

I bring this problem up because the weapon mod i favor has pretty borked world model physics, and im trying to find something that would be able to support that
datæ 2020 年 12 月 8 日 上午 5:49 
This works fine with manual pickup, you must at least use an empty hand swep if you want to use anything VManip without any weapons on you. No weapons = no c_hands, therefore no animation can be played
devStik  [作者] 2020 年 11 月 17 日 下午 5:08 
at this moment I don't know/don't have access to that addon's source code and thus I can't make anything for it
cr4sh 2020 年 11 月 17 日 下午 4:27 
I like the new drop on death feature. The last weapon you've dropped will automatically be picked up, even if you have a manual pickup mod. This is the only thing there is right now that bugs me, everything else is great.
devStik  [作者] 2020 年 11 月 17 日 下午 3:40 
btw I updated it to include one of your suggestions
devStik  [作者] 2020 年 11 月 17 日 下午 12:14 
I think it's because yesterday there were serious bugs, and I fixed them 5 hours later. since the dropped weapons are regular weapon entities, they are most likely affected by vmanip's manual pickup, and I can't do anything about it unless there is a flag or smth I can set
cr4sh 2020 年 11 月 17 日 上午 11:39 
I don’t know why, but it actually worked this time. I remember there being a lua error yesterday when I tried it. The weapons drop perfectly, but you should change it so you can pick weapons back up without having to hold anything, not even an empty hand swep, this is with vmanip’s manual pickup. This addon has lots of potential.
devStik  [作者] 2020 年 11 月 17 日 上午 11:08 
copy and paste the error here so I can see
cr4sh 2020 年 11 月 17 日 上午 10:04 
I did that, but whenever I tried to drop the weapon there was a LUA error and nothing dropped.
devStik  [作者] 2020 年 11 月 17 日 上午 8:05 
it can be bound to a key, such as "bind <key> stik_dropweapon", but idk about vmanip's manual pickup. I could add settings for dropping weapon on death though!
cr4sh 2020 年 11 月 17 日 上午 7:06 
You should add a way for it to be binded to a key, and try to make it compatible with vmanip’s manual pickup, or even add settings for you to drop weapons on death! Just suggestions.