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

[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 - 2933 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
Crimson_Fox
Senior Member
Join Date: Mar 2009
Old 10-03-2009 , 13:14   Re: [L4D] Drag and Drop
Reply With Quote #3

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
mikhdenis
Member
Join Date: Aug 2009
Location: Ukraine
Old 10-03-2009 , 07:05   Re: [L4D] Drag and Drop
Reply With Quote #4

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

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-05-2009 , 18:59   Re: [L4D] Drag and Drop
Reply With Quote #6

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
hommayudi
Member
Join Date: Sep 2009
Old 10-06-2009 , 13:06   Re: [L4D] Drag and Drop
Reply With Quote #7

could u add the drop when hunter pounce?

Sorry for my BAD english...
hommayudi is offline
mikhdenis
Member
Join Date: Aug 2009
Location: Ukraine
Old 10-07-2009 , 05:56   Re: [L4D] Drag and Drop
Reply With Quote #8

Thanks! Good work! Remains to add CVARS on \ off for drag and incap.
mikhdenis is offline
λlsnana(H λ l f l i f e)
Member
Join Date: Jun 2010
Old 06-29-2010 , 13:18   Re: [L4D] Drag and Drop
Reply With Quote #9

Quote:
Originally Posted by mikhdenis View Post
good! But need drop grenades/medkits/pills, when you down?!
No need to Becuase you allready put the grenade in the pockat
λlsnana(H λ l f l i f e) is offline
Send a message via MSN to λlsnana(H λ l f l i f e)
Frus
Senior Member
Join Date: Aug 2009
Old 10-03-2009 , 10:52   Re: [L4D] Drag and Drop
Reply With Quote #10

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
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 14:28.


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