AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [ZP] Zombie Class: Grabbing Zombie (https://forums.alliedmods.net/showthread.php?t=136484)

nikhilgupta345 08-26-2010 19:30

[ZP] Zombie Class: Grabbing Zombie
 
1 Attachment(s)
[ZP] Zombie Class: Grabbing Zombie by nikhilgupta345


Info - Anyone who uses this zombie class will have the power to do the following, depending on set cvars:

Bind a key to drop_cmd - which can either strip the users weapon at which they aim and press the button on, or can set the user's ammo (in backpack) to 0.
Use it a set number of times per round.
If set, the person who used the command will lose hp every time they use the command.
_____________________________________________ __________________________________

Cvars:

zp_rounduse - How many times the command can be used per round, 0 for unlimited

zp_stripweapon - 1 = strip users weapon, 0 = set user's bp ammo (backpack) to 0

zp_removehp - if more than 0, will reduce hp each time zombie uses this class by however much this cvar is set to.

_____________________________________________ ___________________________________

Changelog:

v1.0 - Initial Release

v1.1 - Added cvars and pcvars, and some more features

_____________________________________________ ____________________________________

Credits:
nikhilgupta345 (me) - making the plugin
Kingofking1105 - Idea
_____________________________________________ _____________________________________



Lol srry, but this is being kinda gay, when I upload the sma file as well, it provides a link to "get plugin", which does not work since the web compiler doesn't have zombieplague include. Anyone care to help? Just don't click the Get Plugin for now.

Ryokin 08-26-2010 22:24

Re: [ZP] Zombie Class: Grabbing Zombie
 
PHP Code:

HasUsedGrab[id] == true 

>>
PHP Code:

HasUserGrab[id

and look at zombie-example again..
i think press button to use ability may be better

nikhilgupta345 08-26-2010 23:12

Re: [ZP] Zombie Class: Grabbing Zombie
 
You do press button. Whatever button you bind to grab_weapon. Lol.

Fixed other problem. About the button, what button did you have in mind?

Also, do you have any idea about the Get Plugin not working? if you've ever uploaded before, how do you get around the webcompiler not having zombieplague include :(

Vechta 08-27-2010 01:36

Re: [ZP] Zombie Class: Grabbing Zombie
 
Don't upload Amxx File!
and i think he ment +USE button

albert123 08-27-2010 10:59

Re: [ZP] Zombie Class: Grabbing Zombie
 
You should set drop_cmd to use this abillity

kingofking1105 08-27-2010 12:33

Re: [ZP] Zombie Class: Grabbing Zombie
 
My idead :D

nikhilgupta345 08-27-2010 14:21

Re: [ZP] Zombie Class: Grabbing Zombie
 
Quote:

Originally Posted by albert123 (Post 1283310)
You should set drop_cmd to use this abillity



I'll fix it when i get home. Will add some
Cvars also.

Backstabnoob 08-27-2010 14:46

Re: [ZP] Zombie Class: Grabbing Zombie
 
Quote:

Originally Posted by Ryokin (Post 1282901)
PHP Code:

HasUsedGrab[id] == true 

>>
PHP Code:

HasUserGrab[id


Trivial optimization.

nikhilgupta345 08-27-2010 23:24

Re: [ZP] Zombie Class: Grabbing Zombie
 
v1.1 released. Added cvars and some new features.

jc980 08-28-2010 08:48

Re: [ZP] Zombie Class: Grabbing Zombie
 
REMOVE AMXX FILE.


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

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