Raised This Month: $95 Target: $400
 23% 

Drop All Weapons On Death (14 jul 2013)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Hawk552 (427)
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-15-2009 , 08:21   Drop All Weapons On Death (14 jul 2013)
Reply With Quote #1

Drop All Weapons On Death


.: Description :.

As you know, in cs1.6 you only drop one weapon when you die, on cz you can also drop one nade.
This plugin makes players drop all their weapons when they die unless command 'death_drop_rules' is sent to restrict some weapons from being dropped.
Where other plugins fail, this one make the ammo and the bpammo in weaponbox accurate.


.: Commands :.
  • death_drop_rules < flags >
    (flags: abcde..., default: "" : drop all weapons/items )
Code:
	a 	p228
	b	scout
	c 	hegrenade
	d 	xm1014	
	e 	mac10
	f 	aug
	g 	smokegrenade
	h 	elite
	i 	fiveseven
	j 	ump45
	k	sg550
	l 	galil
	m 	famas
	n 	usp
	o 	glock18
	p	awp
	q 	mp5navy
	r 	m249
	s 	m3
	t 	m4a1
	u 	tmp
	v	g3sg1
	w 	flashbang
	x 	deagle
	x 	sg552
	z	ak47
	{ 	p90
	|	defuser

.: Changelog :.
Code:
v0.4.0 (14 jul 2013)
- Added command to restrict some weapons from being dropped
v0.3.0 (???)
- Lots of fixes
v0.1.6 (14 mar 2010)
- Fixed stucked weapons bug
v0.1.5 (13 feb 2010)
- Fixed stucked weapons bug
- Added support for No Sil plugin by XxAvalanchexX (still waiting for someone to confirm it works...)
v0.1.4 (18 jul 2009)
- Added Cz Bots support
v0.1.3
- Use ExecuteHamB so it supports some plugins as weapon physics
v0.1.2 (29 mar 2009)
- cache allocated strings
v0.1.1
- fixed wrong ammo was set in m249 weaponboxes
- removed useless line in formatting model name
v0.1.0
- fixed nades were not exploding when you had pulled out the pin
v0.0.3 (20 feb 2009)
- changed the way we retrieve players weapons
v0.0.2 (17 feb 2009)
- now removes all packed weapons


Attached Files
File Type: sma Get Plugin or Get Source (death_weapons_drop.sma - 6332 views - 11.1 KB)
__________________
- tired and retired -

Last edited by ConnorMcLeod; 07-14-2013 at 08:25.
ConnorMcLeod is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 02-15-2009 , 08:45   Re: Drop All Weapons On Death
Reply With Quote #2

Quote:
This plugin makes players drop all their weapons when they die.
Nice
__________________

anakin_cstrike is offline
koyumu
Senior Member
Join Date: Jul 2008
Old 02-15-2009 , 09:17   Re: Drop All Weapons On Death
Reply With Quote #3

Nice.

Good Work,

Moreover, this plugin makes drop all weapons at the endround ? Or only when players die ?
__________________
[IMG]http://img80.**************/img80/4594/neyawndragon.gif[/IMG]





koyumu is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: La Plata, Bs As, Argenti
Old 02-15-2009 , 09:18   Re: Drop All Weapons On Death
Reply With Quote #4

Nice Exelent use of offsets & Ham

Gj
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 02-15-2009 , 09:38   Re: Drop All Weapons On Death
Reply With Quote #5

Quote:
Originally Posted by koyumu View Post
Moreover, this plugin makes drop all weapons at the endround ? Or only when players die ?
Description or any else thing here has said nothing about end of round. So on death only.
Edit: @Connor, GW
SnoW is offline
Send a message via MSN to SnoW
FakeNick
Senior Member
Join Date: Feb 2008
Location: Poland
Old 02-15-2009 , 11:38   Re: Drop All Weapons On Death
Reply With Quote #6

Ahh, again nice work Connor. Karma of course ;).
__________________


[||||||||||] Snowball war v3.05

Pol
ish translations here ;) (PM me if you want one).


FakeNick is offline
Costin83
Senior Member
Join Date: Jul 2008
Location: Romania
Old 02-15-2009 , 23:50   Re: Drop All Weapons On Death
Reply With Quote #7

Testing..............
Weee this plugin replaces 2 others: (drop weapons | drop nades) GJ !

Can you add this feature when "player disconnect" ?



btw: I like how the weapons "drop" on ground. There are spreaded allover randomly, Nice !

Last edited by Costin83; 02-15-2009 at 23:53.
Costin83 is offline
Send a message via Yahoo to Costin83
YKH =]
Senior Member
Join Date: Sep 2008
Location: Hong Kong
Old 02-16-2009 , 09:09   Re: Drop All Weapons On Death
Reply With Quote #8

Wow GJ +Karma=]
__________________
Approved Plugins

[ZP] Effect Plugins :
Damage Effect
Real Death
YKH =] is offline
wlacobain
Junior Member
Join Date: Mar 2008
Old 02-16-2009 , 18:07   Re: Drop All Weapons On Death
Reply With Quote #9

Great...
wlacobain is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 02-16-2009 , 19:16   Re: Drop All Weapons On Death
Reply With Quote #10

Quote:
Originally Posted by ConnorMcLeod View Post
http://forums.alliedmods.net/showthread.php?p=619788
This one creates armoury_entity instead of weaponbox
For grenades that is. About bpammo - it creates another weaponbox entity with all bullets. And supports all weapon drop on player disconnect. =P

// edit:
PHP Code:
public Event_HLTV_New_Round()
{
 new 
iWpnBx engfunc(EngFunc_FindEntityByStringFM_NULLENT"classname""weaponbox")
 while( 
iWpnBx )
 {
  
set_pev(iWpnBxpev_flagsFL_KILLME)
  
iWpnBx engfunc(EngFunc_FindEntityByStringiWpnBx"classname""weaponbox")
 }

Yes - it will remove "weaponbox", but not "weapon_*" related to it. I suggest dllfunc(DLLFunc_Think, iWpnBx).
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.

Last edited by MPNumB; 02-16-2009 at 19:19.
MPNumB is offline
Send a message via Skype™ to MPNumB
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 02:07.


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