Raised This Month: $32 Target: $400
 8% 

[L4D2] Weapon Drop


Post New Thread Reply   
 
Thread Tools Display Modes
MarshalZCC
Senior Member
Join Date: Feb 2010
Location: Alberta, Canada
Old 04-03-2010 , 11:39   Re: [L4D2] Weapon Drop
Reply With Quote #11

The L4D version wouldn't allow the survivor to drop their single pistol. I guess with melee weapons it makes things a bit more complicated, since either you allow them to drop it and be weaponless, or you give them a single pistol which would create new pistol entities, or you don't allow them to drop any melee weapons.

Actually, what would be cool is if the survivor had no weapons, then they would be in the holding pills animation state and could melee zombies, despite not having a weapon. I could see some dorks dropping everything and trying to make it through the levels without weapons. At least if they could melee it would be an improvement.

Last edited by MarshalZCC; 04-03-2010 at 11:46.
MarshalZCC is offline
LTR.2
Veteran Member
Join Date: Aug 2009
Old 04-03-2010 , 13:28   Re: [L4D2] Weapon Drop
Reply With Quote #12

Quote:
Originally Posted by LTR.2 View Post
question, if you type !drop and you are holding a melee weapon, it goes back to pistols?
i prefer this.
maybe it could be optional with a cvar, choose wheter or not if dropping a melee will give us a pistol or not.
LTR.2 is offline
MarshalZCC
Senior Member
Join Date: Feb 2010
Location: Alberta, Canada
Old 04-03-2010 , 14:55   Re: [L4D2] Weapon Drop
Reply With Quote #13

Quote:
Originally Posted by LTR.2 View Post
i prefer this.
maybe it could be optional with a cvar, choose wheter or not if dropping a melee will give us a pistol or not.
Problem is: someone could spawn infinite pistols with this option enabled and crash the server.
MarshalZCC is offline
LTR.2
Veteran Member
Join Date: Aug 2009
Old 04-03-2010 , 16:16   Re: [L4D2] Weapon Drop
Reply With Quote #14

Quote:
Originally Posted by MarshalZCC View Post
Problem is: someone could spawn infinite pistols with this option enabled and crash the server.
there is a plugin around here that adresses that.
LTR.2 is offline
satannuts
Member
Join Date: Jan 2010
Old 04-03-2010 , 17:27   Re: [L4D2] Weapon Drop
Reply With Quote #15

REQ: Some of my players have requested !dropall if that's possible.
I'm also running BackPack plugin on the server. It would be cool if this plugin and that one stay compatible.

Awesome plugin BTW.
satannuts is offline
Machine
Senior Member
Join Date: Apr 2010
Old 04-03-2010 , 18:27   Re: [L4D2] Weapon Drop
Reply With Quote #16

Quote:
Originally Posted by satannuts View Post
REQ: Some of my players have requested !dropall if that's possible.
I'm also running BackPack plugin on the server. It would be cool if this plugin and that one stay compatible.

Awesome plugin BTW.
It would be far easier for them to bind a key to sm_drop, and just press it a few times to drop everything than typing out a command. But if I get more requests on this I'll think about it.

Quote:
Originally Posted by MarshalZCC View Post
Actually, what would be cool is if the survivor had no weapons, then they would be in the holding pills animation state and could melee zombies, despite not having a weapon. I could see some dorks dropping everything and trying to make it through the levels without weapons. At least if they could melee it would be an improvement.
I really like this idea, I'm not sure it's possible but I'll look into it.
Machine is offline
LTR.2
Veteran Member
Join Date: Aug 2009
Old 05-12-2010 , 14:33   Re: [L4D2] Weapon Drop
Reply With Quote #17

any updates on this? it seems like i can't drop the M60 or melee weapons/second pistol.

besides, you could add new functionalities to this plugin (example: if a tank punches you, you drop your gun in the fly, etc. )
LTR.2 is offline
Portalboat
Senior Member
Join Date: May 2010
Old 06-28-2010 , 14:06   Re: [L4D2] Weapon Drop
Reply With Quote #18

Quote:
Originally Posted by LTR.2 View Post
besides, you could add new functionalities to this plugin (example: if a tank punches you, you drop your gun in the fly, etc. )
I like this.
Portalboat is offline
MarshalZCC
Senior Member
Join Date: Feb 2010
Location: Alberta, Canada
Old 08-31-2010 , 01:02   Re: [L4D2] Weapon Drop
Reply With Quote #19

Knife support:

Code:
#define MODEL_V_KNIFE "models/v_models/v_knife_t.mdl"
Code:
else if (StrEqual(item, MODEL_V_KNIFE))
{
    DispatchKeyValue(index, "model", MODEL_V_KNIFE);
    DispatchKeyValue(index, "melee_script_name", "hunting_knife");
}
NOTE: This assumes using a modified VPK that adds knife support using "hunting_knife.txt". The original german version is "knife.txt"

Last edited by MarshalZCC; 08-31-2010 at 01:05. Reason: Added note about knife support.
MarshalZCC is offline
Machine
Senior Member
Join Date: Apr 2010
Old 09-01-2010 , 00:51   Re: [L4D2] Weapon Drop
Reply With Quote #20

Yes, that looks correct.
Machine 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 12:26.


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