AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D] Drag and Drop (https://forums.alliedmods.net/showthread.php?t=105262)

Crimson_Fox 10-02-2009 20:18

[L4D] Drag and Drop
 
1 Attachment(s)
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.

olj 10-03-2009 04:51

Re: [L4D] Drag and Drop
 
Shouldnt you actually just "include" Drop Weapon plugin so you could refer to its contents more easily?

BTW - Nice idea for plugin.

mikhdenis 10-03-2009 07:05

Re: [L4D] Drag and Drop
 
good! But need drop grenades/medkits/pills, when you down?!

Frus 10-03-2009 10:52

Re: [L4D] Drag and Drop
 
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.

LTR.2 10-03-2009 11:21

Re: [L4D] Drag and Drop
 
the weapon dissapears or is droped?
and just when you get to the smoker or when the tongue touches you?

Crimson_Fox 10-03-2009 13:14

Re: [L4D] Drag and Drop
 
Quote:

Originally Posted by olj (Post 950769)
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 10-03-2009 13:16

Re: [L4D] Drag and Drop
 
Quote:

Originally Posted by mikhdenis (Post 950834)
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 10-03-2009 13:25

Re: [L4D] Drag and Drop
 
Quote:

Originally Posted by Frus (Post 950961)
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 10-03-2009 13:30

Re: [L4D] Drag and Drop
 
Quote:

Originally Posted by LTR.2 (Post 950981)
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 10-05-2009 18:59

Re: [L4D] Drag and Drop
 
Quote:

Originally Posted by mikhdenis (Post 950834)
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.


All times are GMT -4. The time now is 19:49.

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