Raised This Month: $51 Target: $400
 12% 

[L4D2] Weapon Drop


Post New Thread Reply   
 
Thread Tools Display Modes
alcybery
Member
Join Date: Apr 2016
Old 04-08-2017 , 19:13   Re: [L4D2] Weapon Drop
Reply With Quote #61

Quote:
Originally Posted by Uncle Jessie View Post
These lines are not needed for the R button, only for E, which I use.
PHP Code:
buttons &= ~IN_RELOAD
Also you can make the delay less.
PHP Code:
CreateTimer(1.0ResetDelayclient); 
I also changed R to E, as it seems it would cause less unintentional weapon drops.

Lowered the delay too, feels better, 2 seconds was a bit long.
alcybery is offline
ShineKia
Junior Member
Join Date: Apr 2017
Old 02-04-2018 , 03:31   Re: [L4D2] Weapon Drop
Reply With Quote #62

Found a problem... Sometimes when one drops a weapon and the weapon gets picked up by the others, the others have a chance of taking the gun without any spare ammo. Any idea why?
ShineKia is offline
Uncle Jessie
Member
Join Date: May 2016
Location: Mind Prison
Old 02-04-2018 , 09:26   Re: [L4D2] Weapon Drop
Reply With Quote #63

Quote:
Originally Posted by ShineKia View Post
Found a problem... Sometimes when one drops a weapon and the weapon gets picked up by the others, the others have a chance of taking the gun without any spare ammo. Any idea why?
It's not sometimes, but it always happens. Try using this version then.
It drops everything except m60 because no m_iAmmo Offset and custom mdl melee weapons.

Edit:
Added Shift+E version.
Added Shift+R version.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_drop.sp - 663 views - 10.0 KB)
File Type: sp Get Plugin or Get Source (l4d_drop_E.sp - 678 views - 11.2 KB)
File Type: sp Get Plugin or Get Source (l4d_drop_R.sp - 573 views - 10.7 KB)

Last edited by Uncle Jessie; 02-05-2018 at 06:59.
Uncle Jessie is offline
edwinvega86
Senior Member
Join Date: Feb 2016
Old 02-08-2018 , 01:54   Re: [L4D2] Weapon Drop
Reply With Quote #64

Uncle Jessie very well. Now I can throw medicine cabinet or pill from far away to the incapasitado companion, when I am escaping from the tank, recommended for those who use Self Help. it works perfect and there is no ammunition problem, but when leaving the weapon they all appear in a single direction but it does not matter. Could a cvar be added to prohibit leaving the primary weapon?
edwinvega86 is offline
ShineKia
Junior Member
Join Date: Apr 2017
Old 02-26-2018 , 04:23   Re: [L4D2] Weapon Drop
Reply With Quote #65

Quote:
Originally Posted by Uncle Jessie View Post
It's not sometimes, but it always happens. Try using this version then.
It drops everything except m60 because no m_iAmmo Offset and custom mdl melee weapons.

Edit:
Added Shift+E version.
Added Shift+R version.
Will this have the grenade duplicating problem?
ShineKia is offline
ReCreator
Member
Join Date: Nov 2017
Location: Ukraine,Kyiv
Old 11-25-2018 , 15:05   Re: [L4D2] Weapon Drop
Reply With Quote #66

If someone pickup dropped weapon, he gets only clip ammo and no other(even if it was dropped full).
I am the one who have this bug?
__________________
Sorry for my pure English...
ReCreator is offline
MasterMind420
BANNED
Join Date: Nov 2010
Old 11-27-2018 , 09:09   Re: [L4D2] Weapon Drop
Reply With Quote #67

No offense but this plugin needs a serious rewrite...I can tell some is still pans old code which is absolute garbage. Everything this plugin does can be done in 50 lines of code or less easily...pan had a really bad habit of coding something with way more than was necessary.
MasterMind420 is offline
ReCreator
Member
Join Date: Nov 2017
Location: Ukraine,Kyiv
Old 11-29-2018 , 16:59   Re: [L4D2] Weapon Drop
Reply With Quote #68

Quote:
Originally Posted by MasterMind420 View Post
No offense but this plugin needs a serious rewrite...I can tell some is still pans old code which is absolute garbage. Everything this plugin does can be done in 50 lines of code or less easily...pan had a really bad habit of coding something with way more than was necessary.
Just do it!;D
__________________
Sorry for my pure English...
ReCreator is offline
theproperson
Member
Join Date: Feb 2017
Old 11-29-2018 , 19:22   Re: [L4D2] Weapon Drop
Reply With Quote #69

Quote:
Originally Posted by ReCreator View Post
Just do it!;D
I would suggest using the one made by shao and panxiaohai located here

https://forums.alliedmods.net/showth...=158962&page=3

I did do a personal edit of it to remove the drop / give messages and to re-add the double-tap flashlight to drop items function. Too lazy to go recover the .sp since I cleaned out my projects folder but heres the smx I run on my server. CFG attached is the plugins cvars list. If you don't trust me, feel free to edit the original yourself.

Benefits of this one over machine's.
: Can drop all weapons including melee, m60 and magnum.
: Retains dropped weapons ammo counters and laser sights.
: Option to make damaging events against survivors cause them to drop items.
: Dropping an item gives it a short distance throw, when aimed at a survivor who does not have an item in that slot, they will automatically pick it up.
: Drop bind is not static, instead is connected to 2 inputs of the flashlight being used. So it does not force you to use a specific key, just a specific event.
Blocked Attachments
File Type: smx l4d_drop.smx
File Type: cfg l4d12_drop.cfg

Last edited by theproperson; 11-29-2018 at 19:31. Reason: Added more information.
theproperson is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 11-29-2018 , 20:04   Re: [L4D2] Weapon Drop
Reply With Quote #70

Quote:
Originally Posted by theproperson View Post
I would suggest using the one made by shao and panxiaohai located here

https://forums.alliedmods.net/showth...=158962&page=3

I did do a personal edit of it to remove the drop / give messages and to re-add the double-tap flashlight to drop items function. Too lazy to go recover the .sp since I cleaned out my projects folder but heres the smx I run on my server. CFG attached is the plugins cvars list. If you don't trust me, feel free to edit the original yourself.

Benefits of this one over machine's.
: Can drop all weapons including melee, m60 and magnum.
: Retains dropped weapons ammo counters and laser sights.
: Option to make damaging events against survivors cause them to drop items.
: Dropping an item gives it a short distance throw, when aimed at a survivor who does not have an item in that slot, they will automatically pick it up.
: Drop bind is not static, instead is connected to 2 inputs of the flashlight being used. So it does not force you to use a specific key, just a specific event.
You should provide the source code.
__________________
Psyk0tik is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode