AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Submissions (https://forums.alliedmods.net/forumdisplay.php?f=35)
-   -   Hero: Punisher V2 (https://forums.alliedmods.net/showthread.php?t=131398)

Jelle 07-04-2010 16:29

Hero: Punisher V2
 
1 Attachment(s)
Punisher V2

Description
In replacement for the old punisher. When shooting, you gain X amount of bullets in X amount of time into your current mag. This is very useful on soft SH servers where you do not want people to spray all the time.

Cvars:
Code:

//PunisherV2
punisherv2_level 5 //Level for this hero
punisherv2_ammotoadd 2 //The ammo to add must be a whole number!
punisherv2_ammotime 1 // time in seconds to add the ammo, can be any number

Credits:
DarkGod for helping a bit with the code so it won't add more bullets than the weapon can hold
dxteam for coming up with the idea for this
{HOJ}Batman/JTP10181/vittu for making wolverine, where I based the task and a few other things of.

Please do come with optimizations or things I can do better on this hero. This is the first time I try something like this.

Update history:
1.0 Initial release
1.1 Fixed the HE, C4, flashbang and smoke grenade issue. Uptimized a bit.
1.2 fixed index error.

The Art of War 07-05-2010 03:24

Re: Hero: Punisher V2
 
First of all change this: :P

Code:

//Deagle assassin
punisherv2_level 5 //Level for this hero
dassassin_ammotoadd 2 //The ammo to add must be a whole number!
dassassin_ammotime 1 // time in seconds to add the ammo, can be any number

Deagle Assassin isnt pv2 you know :)

Its an awesome hero, really. Going straight into the #2!

I tested an earlier version of it that worked fine, and I can test this one if you want me to.

SkiesOFF 07-05-2010 13:55

Re: Hero: Punisher V2
 
Cool hero, very nice for soft superhero.

Jelle 07-06-2010 06:22

Re: Hero: Punisher V2
 
Quote:

Originally Posted by The Art of War (Post 1228769)
First of all change this: :P

Code:

//Deagle assassin
punisherv2_level 5 //Level for this hero
dassassin_ammotoadd 2 //The ammo to add must be a whole number!
dassassin_ammotime 1 // time in seconds to add the ammo, can be any number

Deagle Assassin isnt pv2 you know :)

Its an awesome hero, really. Going straight into the #2!

I tested an earlier version of it that worked fine, and I can test this one if you want me to.

Oups. I copied the cvars from it since I was too lazy to write it myself. Fixed!

slamx 07-24-2010 16:08

Re: Hero: Punisher V2
 
I love the idea, but when i used it on my server, i think it was a little glitched. it wouldn't let me throw my nade :P

Jelle 07-24-2010 21:08

Re: Hero: Punisher V2
 
It checks for the nade, and does nothing if you have the nade out, so it cannot be this plugin.

G-Dog 07-24-2010 22:38

Re: Hero: Punisher V2
 
might want to check the code again, your setting the ammo to 0 on grenades.

Jelle 07-25-2010 08:40

Re: Hero: Punisher V2
 
I do? Oh. I gotta fix that. Thank you.

EDIT: Fixed!

slamx 07-25-2010 20:21

Re: Hero: Punisher V2
 
works perfectly thanks :D

Jelle 07-26-2010 07:36

Re: Hero: Punisher V2
 
No, thank you for pointing it out.


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

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