AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Drop Defuser Kit (https://forums.alliedmods.net/showthread.php?t=6047)

DS 09-20-2004 07:54

Drop Defuser Kit
 
2 Attachment(s)
Drop Defuser Kit 1.55
by Damaged Soul

AMX Mod X Version: 1.75 and above
Supported Mods: Counter-Strike 1.6 and Condition Zero

Description
This plugin allows the CT team to drop their defuser kits on the ground. Since defuser kits are dropped on death, why not allow a CT to voluntarily drop it as well? It could be used so one can buy defuse kits for other teammates when they do not have enough money.

Required Modules
Cstrike
Fakemeta

Usage
  • Client Commands
    • dropdefuser
      • Drops the defuser kit if you have one
      • Bind this to any key or or just type it in the console
      • For example, when you type "bind v dropdefuser" in the console, you will have bound the V key to drop the defuser kit.
  • Cvars
    • amx_dd_bindnotice [Default Value: 1]
      • Determines if a notification in the chat area is displayed to players when they are put in the server.
      • Set to this 0 to disable the notification
    • amx_dd_bindnotice_delay [Default Value: 20.0]
      • Determines how many seconds after a player enters the server that the bind notification will be displayed.
      • Depends upon amx_dd_bindnotice being set to 1
    • amx_dd_version
      • Shows the version of the plugin
Version History
  • 1.55 [July 4, 2006]
    • Added: amx_dd_version cvar for more easily finding a server with this plugin
    • Now uses the Fakemeta module instead of Engine
    • Minor optimizations
  • 1.51 [Apr. 19, 2006]
    • Fixed: No player could pick up any defuser kit unless he or she already dropped one
  • 1.50 [Apr. 17, 2006]
    • Now uses item_thighpack with DispatchSpawn instead of a "hacked" info_target entity
    • Added: Optional notification in chat area about binding dropdefuser command to a key
    • Fixed: Defuser kit removal at round end was using ResetHUD event which could be exploited or sometimes could cause defuser kits to removed too early.
  • 1.00 [Sept. 20, 2004]
    • Initial release

mercury 10-14-2004 13:46

hm.. is there ways to port to .16?)

BigBaller 10-14-2004 13:52

Quote:

Originally Posted by mercury
hm.. is there ways to port to .16?)

Why downgrade?

Johnny got his gun 10-14-2004 14:07

Maybe it's possible to have knife selected and then catch the normal drop command? If so you could have a CT drop a defuse kit if he has one... Then you won't need to bind another button.

mercury 10-14-2004 20:06

don't wanna use .20 until stable

BigBaller 10-15-2004 02:00

Quote:

Originally Posted by mercury
don't wanna use .20 until stable

ITs stable enough that my server has been running it for the past month without many problems.

Only problem I seem to have a overflow error and that occurs once a day if at all.

DS 10-15-2004 02:30

Quote:

Originally Posted by Johnny got his gun
Maybe it's possible to have knife selected and then catch the normal drop command? If so you could have a CT drop a defuse kit if he has one... Then you won't need to bind another button.

Yeah, that's a possibilty. But I would personally find it annoying to have to switch to knife just to drop it. Perhaps both ways? *shrug*

If it were possible to add an item into slot 5 for CTs, that would sure be nice. Maybe even make CTs press attack1 for using the defuse kit, like Ts need to do for planting the bomb. I'd certainly be willing to do that. That way you could use the regular drop command too... If it were possible, anyways. I was experimenting with the WeaponList message to switch the slots weapons go in for a TFC-like mod for CS. (I scrapped the idea later for other reasons tho...) It worked to an extent, some weapons were buggy though with that, especially the knife. If we had an entity and models for this, I could use WeaponList to force it into slot 5 perhaps. LINK_ENTITY_TO_CLASS would probably need to be implemented in metamod for any of that to be remotely possible though. *shrug* Maybe Source will allow for this sort of thing... who knows.

Quote:

Originally Posted by mercury
hm.. is there ways to port to .16?)

I think all that needs to be done is to remove the plugin_modules forward and use pfn_touch instead of register_touch. Unless the private data offset for the defuse kit has changed since the 0.16 cstrike module? I'm not sure, but I'll see what I can do.

EDIT
Version for 0.16 added now by request of mercury.

mercury 10-15-2004 09:16

much thanks, but it seems like .16 is becoming desolate..

Freaky frank 10-15-2004 11:44

BigBaller Posted: Thu Oct 14, 2004 5:52 pm Post subject:


mercury wrote:
hm.. is there ways to port to .16?)


Why downgrade?
------------------------------------------------------------------------------------
Because there is no stabel official relase for 0.20 maybe :shock:

Sorry for bad english :lol: [/i]

BigBaller 10-15-2004 13:18

.20 is stable enough to use for most if not all plugins.

Only unstablitiy comes with the very large plugins.

Freaky frank 10-15-2004 14:24

hey BigBaller,

When will be 0.20 official relased , it thakes forever :D

Because i dont like the nightly build thingy , after every update a plugin wont work then.

Love amxx :lol:

Kamikaze 12-10-2004 12:59

Can you make it so you drop the defuser when you die like on CZ.

DS 12-10-2004 15:33

Quote:

Originally Posted by Kamikaze
Can you make it so you drop the defuser when you die like on CZ.

If I'm not mistaken, you already do drop the defuser kit when you die in CS 1.6. That is why there is already the model and whatnot for it. The only thing I remember from CZ that definitely is different from 1.6 is that you drop grenades when you die. It's possible that's what you're thinking of. But the defuser gets dropped on death in both versions.

Kamikaze 12-11-2004 03:38

Oh yea, I was thinking about the grenades, my bad.

There's a plugin arleady released that does that by the way.

I do like your plugin, it's a cool idea being able to drop a defuser because I use it to buy teammates defusers if they don't have the money to buy one (teamwork :))

breaddawson 12-11-2004 04:19

i think someone made this plugin before,Kamikaze

maybe that's what u want

see this:

http://forums.alliedmods.net/showthread.php?t=7747

Kamikaze 12-11-2004 13:56

I know, I did say that didn't I? 8)

VEN 11-08-2005 09:46

Code:
register_event("ResetHUD", "defkit_cleanup", "b")
This is logically wrong to use this event for cleaning dropped defkit.
Because "defkit_cleanup" function would be called
1. On client connect
2. On client spawn
3. On appropriate client command (considered as exploit)
Also this isn't rationally to call this function N times where N - number of spawned clients for example.

My opinion: this function should be called only on round start.

DS 04-17-2006 17:45

After over a year, I have released a new version of this plugin (1.50). I rewrote a fair amount of the code, hence the sort of large version bump. The biggest change is the fact that it no longer relies on ResetHUD which fixes quite a few issues.

Casio 04-18-2006 21:22

Damaged Soul, can I ask how you found out the name of the defuser kit? i.e "item_thighpack". I have being trying to figure out how to get the name of items, weapons etc. but have been unsuccessful, can you or anyone else help me out please?

DS 04-19-2006 00:47

Quote:

Originally Posted by Casio
Damaged Soul, can I ask how you found out the name of the defuser kit? i.e "item_thighpack". I have being trying to figure out how to get the name of items, weapons etc. but have been unsuccessful, can you or anyone else help me out please?

Well, I think this is a question more suited to the Scripting Help board, but I just knew it because it sort of is common knowledge I thought.

But a good place to find entity names however is on the supported mods page of the Metamod web site. If you click on the links that say [ents] next to each mod name you'll get a list of entities/items for each mod. For example, the CS 1.6 entity list is here: http://metamod.org/dl/metamod/ents/cstrike. Then you could just experiment by creating those entities with the create_entity and DispatchSpawn natives and see which one is which if you don't already know.

And finally you could also try using the Entity Info plugin which lets you point at things and it will tell you the classname of the entity among other pieces of information.

Hope that helped you.

Casio 04-19-2006 12:04

Awesome thankyou :D :D

DS 04-20-2006 01:42

A new version (1.51) has been released that fixes the most incredibly stupid bug ever. No one could pick up any defuser kit unless he or she had already dropped one. I cannot believe it slipped past testing or that no one has posted about it because it also appears to be present in version 1.00 as well. :oops:

I suppose not too many people use this plugin anyways. But the bug pretty much ruined the entire point of the plugin.

FrontLine 04-20-2006 02:21

Heyya, i like this plugin mate...

I don't think the concept is there?
because, seriously...Who does drop there DK?

Yes i know in response people will say, to people with no money...
But it's the principal...

Well i can see you've put in time, been creative.

So i will Give you 4/5, Interesting,
also adding + to your Karma.

FL.

DS 07-04-2006 16:28

Re: Drop Defuser Kit
 
A new minor version (1.55) has been released. No bug fixes to speak of. But the biggest change is that it no longer requires the Engine module. Instead it now uses Fakemeta.

jowy77 01-15-2007 07:55

Re: Drop Defuser Kit
 
L 01/15/2007 - 10:06:52: [FAKEMETA] Invalid entity
L 01/15/2007 - 10:06:52: [AMXX] Displaying debug trace (plugin "dropdefuser.amxx")
L 01/15/2007 - 10:06:52: [AMXX] Run time error 10: native error (native "pev")
L 01/15/2007 - 10:06:52: [AMXX] [0] 5863.attach::hook_touch (line 184)


Help please I do not speak English SORRY Im Spanish

cs1.6 03-15-2008 07:47

Re: Drop Defuser Kit
 
does this bug still exist? i guess so, huh? :)

Ser_UFL 05-28-2008 06:00

Re: Drop Defuser Kit
 
dropdefuser.amxx debug:
Quote:

L 05/28/2008 - 13:33:56: [FAKEMETA] Invalid entity
L 05/28/2008 - 13:33:56: [AMXX] Displaying debug trace (plugin "dropdefuser.amxx")
L 05/28/2008 - 13:33:56: [AMXX] Run time error 10: native error (native "pev")
L 05/28/2008 - 13:33:56: [AMXX] [0] dropdefuser.sma::hook_touch (line 184)
Sorry, can you fix this?
)

Slim-T 08-10-2008 09:22

Re: Drop Defuser Kit
 
multilingual ? i could translate it so swedish ^^


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

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