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

Drop all weapons when you die


Post New Thread Reply   
 
Thread Tools Display Modes
AlienNation
New Member
Join Date: Jul 2006
Old 07-26-2006 , 02:00   Re: Drop all weapons when you die
Reply With Quote #11

Umm , whena player drops the weapons the clips are gone , even if the weapons are dropped AFTER he dies which usually leaves the extra clips in the gun...
AlienNation is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 07-29-2006 , 04:59   Re: Drop all weapons when you die
Reply With Quote #12

I made a modification of the code.

Excluded grenades which should solve the crash issue.
Added "drop all weapons on disconnect" mode.
Cleared and optimized the code a bit.

CVAR daw_mode is 3 by default, possible CVAR values:
1 - "on death" mode only
2 - "on disconnect" mode only
3 - the both modes
0 - disables the plugin

Also if you like screenshots i attached one below just for fun.
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpg
Views:	335
Size:	30.3 KB
ID:	9486  
Attached Files
File Type: sma Get Plugin or Get Source (dropallweapons.sma - 1165 views - 1.9 KB)
VEN is offline
TheLinx
BANNED
Join Date: Jun 2006
Location: Somewhere i belong (swe)
Old 07-29-2006 , 05:08   Re: Drop all weapons when you die
Reply With Quote #13

Quote:
Originally Posted by VEN
Excluded grenades which should solve the crash issue.
My server have never crashed when it drops nades. Can you plz make a version with both nade drop and drop at disconnect for those ppl like me?
TheLinx is offline
Send a message via ICQ to TheLinx Send a message via AIM to TheLinx Send a message via MSN to TheLinx Send a message via Yahoo to TheLinx Send a message via Skype™ to TheLinx
VEN
Veteran Member
Join Date: Jan 2005
Old 07-29-2006 , 10:32   Re: Drop all weapons when you die
Reply With Quote #14

Ok i added nade drop feature back but since it is seems buggy i disabled it. To enable replace //#define GRENADE_DROP with the #define GRENADE_DROP, i.e. uncomment this line, then recompile the code locally. Information about plugins comiling is here: http://wiki.amxmodx.org/index.php/Co...28AMX_Mod_X%29

Also i added the circle drop feature, it requires fakemeta module. Those who don't know how to enable modules just upgrade to the latest AMXX version and it will automatically enable it for you. To upgrade click here: http://www.amxmodx.org/downloads.php

The circle drop is show on the screenshot below.
To disable this feature comment #define CIRCLE_DROP then recompile the code locally.
Attached Thumbnails
Click image for larger version

Name:	circle_drop.jpg
Views:	393
Size:	85.5 KB
ID:	9492  
Attached Files
File Type: sma Get Plugin or Get Source (dropallweapons.sma - 1547 views - 2.6 KB)
VEN is offline
NemesisDelta
Senior Member
Join Date: Jul 2006
Location: Germany/Hessen/Kassel
Old 08-14-2006 , 19:05   Re: Drop all weapons when you die
Reply With Quote #15

Ive got lots of crashes..if someone was to near at a wall when dieing.....he droppes his weapon out of the world and ZACK! SERVER CRASHES....Welcome in the Desktop
__________________
NemesisDelta is offline
Send a message via ICQ to NemesisDelta
Locks
Senior Member
Join Date: Sep 2005
Old 08-14-2006 , 20:15   Re: Drop all weapons when you die
Reply With Quote #16

Maybe your other plugins got issues, this plugin works perfectly fine to me and as to people that play on my server, no crashes..

Oh, and VEN, I think you should post this plugin as a New Plugin Submission, IMO it's nice and neat. More people might notice this if you post this plugin as a new plugin topic rather than having them digging up through this topic
Locks is offline
NemesisDelta
Senior Member
Join Date: Jul 2006
Location: Germany/Hessen/Kassel
Old 08-15-2006 , 08:42   Re: Drop all weapons when you die
Reply With Quote #17

Ok i will search for issues, but during this time remember , dont die near a wall !

__________________
NemesisDelta is offline
Send a message via ICQ to NemesisDelta
kinsprite2
Junior Member
Join Date: Mar 2006
Old 09-17-2006 , 22:26   Re: Drop all weapons when you die
Reply With Quote #18

Quote:
Originally Posted by VEN View Post
Ok i added nade drop feature back but since it is seems buggy i disabled it. To enable replace //#define GRENADE_DROP with the #define GRENADE_DROP, i.e. uncomment this line, then recompile the code locally. Information about plugins comiling is here: http://wiki.amxmodx.org/index.php/Co...28AMX_Mod_X%29

Also i added the circle drop feature, it requires fakemeta module. Those who don't know how to enable modules just upgrade to the latest AMXX version and it will automatically enable it for you. To upgrade click here: http://www.amxmodx.org/downloads.php

The circle drop is show on the screenshot below.
To disable this feature comment #define CIRCLE_DROP then recompile the code locally.
Before
Quote:
new Float:angle = 360.0 / num
,add
Quote:
if (num < 1)
return 0
to fix the problem when you only have a knife or...[/quote]

Here is the one : don't use the plugin to drop your first Primary or Secondary (if you have no primary) when you die. Using function "drop_allweapons(id, is_disconnet)"

Last edited by kinsprite2; 09-19-2006 at 02:58.
kinsprite2 is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 09-18-2006 , 07:22   Re: Drop all weapons when you die
Reply With Quote #19

Do you have any practical solution to detect the "first" weapon? And i don't really see the problem with that.
VEN is offline
kinsprite2
Junior Member
Join Date: Mar 2006
Old 09-18-2006 , 09:47   Re: Drop all weapons when you die
Reply With Quote #20

Quote:
Originally Posted by VEN View Post
Do you have any practical solution to detect the "first" weapon? And i don't really see the problem with that.
Leave a primary or secondary weapon in his weapon bitfield, unless he has a shield or is_disconnet. In this way, the backpack ammo will be with this weapon.

Such as: when a player who has a primary and a secondary dies, use the plugin to drop his secondary. If he is disconnecting, use the plugin to drop all.
kinsprite2 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 17:50.


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