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

[L4D] Drag and Drop


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Crimson_Fox
Senior Member
Join Date: Mar 2009
Plugin ID:
1201
Plugin Version:
0.7
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Survivors drop equipped item on smoker drag or incap.
Old 10-02-2009 , 20:18   [L4D] Drag and Drop
Reply With Quote #1

This plugin is intended to enhance the smoker's ability to disrupt the survivors. Once the survivor is paralyzed by a dragging smoker, the plugin will cause the survivor to drop their equipped item. Survivors will also drop their equipped item when they get incaped along with their grenade.

Please post any feedback or suggestions.

This plugin requires [L4D] Drop Weapon.
http://forums.alliedmods.net/showthread.php?p=938116

CVARS:
sm_dad_drag = 1
"Survivors drop equipped item on smoker drag."

sm_dad_pounce = 0
"Survivors drop equipped item on hunter pounce."

sm_dad_incap = 1
"Survivors drop equipped item when they become incapacitated."

sm_dad_incap_grenade = 1
"Survivors drop their grenade when they become incapacitated."

sm_dad_pistols = 0
"Will survivors drop second pistol?"

sm_dad_bots = 0
"Will bots drop equipped item?"

* 0.7
* - Added CVARs.
* 0.6
* - Added drop on hunter pounce.
* - Fixed crash bugs, thanks Frus!
* 0.5
* - Survivors will now drop currently equipped item on drag/incap.
* 0.4
* - Added funtionality for survivor incap.
* 0.3
* - Added check so that weapon is not dropped if tongue is released before survivor is paralyzed.
* 0.2
* - Disabled weapon dropping for bots since the AI doesn't know to pick them back up.
* 0.1
* - Beta release.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_DragandDrop.sp - 2903 views - 3.6 KB)

Last edited by Crimson_Fox; 10-11-2009 at 22:00.
Crimson_Fox is offline
olj
Veteran Member
Join Date: Jun 2009
Old 10-03-2009 , 04:51   Re: [L4D] Drag and Drop
Reply With Quote #2

Shouldnt you actually just "include" Drop Weapon plugin so you could refer to its contents more easily?

BTW - Nice idea for plugin.
__________________
olj is offline
mikhdenis
Member
Join Date: Aug 2009
Location: Ukraine
Old 10-03-2009 , 07:05   Re: [L4D] Drag and Drop
Reply With Quote #3

good! But need drop grenades/medkits/pills, when you down?!
mikhdenis is offline
Frus
Senior Member
Join Date: Aug 2009
Old 10-03-2009 , 10:52   Re: [L4D] Drag and Drop
Reply With Quote #4

Very interesting idea, I like it.

I don't mind if you just copy&paste the one function you need in my plugin into yours, so you don't need a dependency, as long as you give me credit for it.
Frus is offline
LTR.2
Veteran Member
Join Date: Aug 2009
Old 10-03-2009 , 11:21   Re: [L4D] Drag and Drop
Reply With Quote #5

the weapon dissapears or is droped?
and just when you get to the smoker or when the tongue touches you?
LTR.2 is offline
Crimson_Fox
Senior Member
Join Date: Mar 2009
Old 10-03-2009 , 13:14   Re: [L4D] Drag and Drop
Reply With Quote #6

Quote:
Originally Posted by olj View Post
Shouldnt you actually just "include" Drop Weapon plugin so you could refer to its contents more easily?

BTW - Nice idea for plugin.
Thanks! I thought of this a long time ago, I just had no idea how to do it. When Drop Weapon came along it made it a snap to implement.

As far as including the Drop Weapon plugin, is there another way to use it that does not involve forwarding a call to it?
Crimson_Fox is offline
Crimson_Fox
Senior Member
Join Date: Mar 2009
Old 10-03-2009 , 13:16   Re: [L4D] Drag and Drop
Reply With Quote #7

Quote:
Originally Posted by mikhdenis View Post
good! But need drop grenades/medkits/pills, when you down?!
I was thinking of making it so you can specify if the survivors loose their other items when they're dragged, not when they go down. I'm not sure if this is what you meant by your question, could you rephrase it?
Crimson_Fox is offline
Crimson_Fox
Senior Member
Join Date: Mar 2009
Old 10-03-2009 , 13:25   Re: [L4D] Drag and Drop
Reply With Quote #8

Quote:
Originally Posted by Frus View Post
Very interesting idea, I like it.

I don't mind if you just copy&paste the one function you need in my plugin into yours, so you don't need a dependency, as long as you give me credit for it.
Thanks man, that's really cool of you! The main reason I didn't want to copy and paste your function is that I feel the survivors should have the functionality of Drop Weapon if this plugin is implemented. Imagine a scenario where one survivor looses his weapon and can't retrieve it. Drop Weapon allows the other survivors to help him out by giving him their primary or a second pistol.

The other reason is that this way you can update the functionality of the DropSlot function and I wouldn't have to worry about updating it here.

If anything, I wouldn't mind if you added this plugins functionality to yours. There isn't much to it and it feels like a natural extension to Drop Weapon.
Crimson_Fox is offline
Crimson_Fox
Senior Member
Join Date: Mar 2009
Old 10-03-2009 , 13:30   Re: [L4D] Drag and Drop
Reply With Quote #9

Quote:
Originally Posted by LTR.2 View Post
the weapon dissapears or is droped?
and just when you get to the smoker or when the tongue touches you?
The weapon is dropped, so any of the survivors can pick it up afterwards.

When a survivor gets hit by a smoker tongue he has one second before he gets paralyzed and can't use his weapon. The plugin waits one second to give the survivors a chance to use their weapon before making them drop it.
Crimson_Fox is offline
Crimson_Fox
Senior Member
Join Date: Mar 2009
Old 10-05-2009 , 18:59   Re: [L4D] Drag and Drop
Reply With Quote #10

Quote:
Originally Posted by mikhdenis View Post
good! But need drop grenades/medkits/pills, when you down?!
I think I get the jist of what you mean. Added item dropping on incap.
Crimson_Fox is offline
Reply


Thread Tools
Display Modes

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 16:29.


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