AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   CS Armor Drop (on death) (https://forums.alliedmods.net/showthread.php?t=15257)

OneEyed 07-14-2005 04:27

CS Armor Drop (on death)
 
1 Attachment(s)
Title:
CS Armor Drop (on death)

Summary:
When a player dies, if they have armor, they will drop their armor on the ground next to their corpse.
A player can then walk over it and pick it up, letting them get a "percentage" of the armor left behind.
Also, the player will recieve the same armor type as what they picked up.
All armor will be deleted when round ends. Or on specified time (see cvars).

Cvars:
armor_pct - (Default 20%) This is percentage of armor that will be received when its picked up.
armor_max - (Default 100) This is the max amount of armor a user can get from picking up.
armor_min - (Default 15) Minimum armor needed, for player to drop when killed.
armor_removetime - (Default 2min) Time before armor is removed from map (unless round ends).


Requires : AMXX 1.60
Modules : Engine, FakeMeta
Tested : Win32 (Linux untested)

Author: OneEyed
Version: 1.1


Thanks to ccnncc99, sXy-Schreck, phear of rice, and Aunt Friggin' Connie, for helping me test and fix this plugin!

- Change Log:
-v1.1
- Fixed to work on AMXX 1.60
- Added "Armor Drop" CVAR for queries to pick up.


Code:

#include <amxmodx>
#include <engine>
#include <fakemeta>


Front Line 07-14-2005 04:29

Hey thats very g00d :)

btw nice karma :)

Hey u script very similar to Burnzy :)
Who i indeed like :D

v3x 07-14-2005 06:59

Nice. :)

acehigh 07-14-2005 07:46

will this work for zombie panic ?

OneEyed 07-14-2005 12:21

Quote:

Originally Posted by acehigh
will this work for zombie panic ?

ummm, not really, but i could probably make one for it =/

acehigh 07-14-2005 12:37

could you? that would be great

bmann_420 07-14-2005 15:20

This will go right next to nade drops and make it complete. :D

Johnny got his gun 07-15-2005 03:50

Tag this to CS and choose a category? I assume you will do that soon and have approved this. Kudos for having a clean looking code.

OneEyed 07-15-2005 04:35

Quote:

Originally Posted by Johnny got his gun
Tag this to CS and choose a category? I assume you will do that soon and have approved this. Kudos for having a clean looking code.

Thanks, i take that as a compliment from you =).
But as to the catagory stuff, I did add that information when posting the plugin, but BAIL was fixing up the forum a bit, and I'm guessing he bugged it.. And now I can't edit it to fix it. Soooo ya..

Blitz 07-15-2005 12:17

Good job with nice plugin. +1 for you.


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

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