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

Hero: Toriko


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RollerBlades
Senior Member
Join Date: Feb 2011
Location: Sweden
Old 04-18-2011 , 11:03   Hero: Toriko
Reply With Quote #1

Toriko the Gourmet Hunter
You can gain unlimited health and become unstoppable, get more fighting experience and so the more you kill the Stronger you'll become!

http://en.wikipedia.org/wiki/Toriko

Description:
gain extra HP from Killing - health you gain from killing exceeds your maxhealth and doesn't have a health limit.
Devour twice as much health by killing someone with headshot


shconfig.cfg CVARS
Code:
//Toriko
toriko_level 7
toriko_killsneed 5  // How many people you have to kill in order to gain hp
toriko_hpgained 100   // How much health is gained on a streak
Changelog:
Code:
* v 1.1 - RollerBlades - 20/04/11
*       - Code cleaned up.
*       - Added double health for killing with headshot.
Hope you enjoy this hero

**Credits** - This is ripped from killstreak plugin so credits goes to Jelle and Fr33m@n!
Attached Files
File Type: sma Get Plugin or Get Source (sh_toriko.sma - 988 views - 2.4 KB)

Last edited by RollerBlades; 06-25-2011 at 08:16.
RollerBlades is offline
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 04-18-2011 , 11:08   Re: Hero: Toriko
Reply With Quote #2

You know, you even stated yourself that you ripped it, but as that is a plugin well, not as bad as it could be atleast!

Oh, yeah, "Haunter", in sh_set_hero_info is spelled "Hunter", as you spelled it everywhere else correctly.

Why are you checking gHasToriko twice? You only need one of them.

PHP Code:
if ( !sh_is_active() || !gHasToriko[attacker] ) return
    
    if ( 
gHasToriko[attacker] && is_user_connected(attacker) && is_user_connected(victim) && victim != attacker 
__________________
The Art of War is offline
RollerBlades
Senior Member
Join Date: Feb 2011
Location: Sweden
Old 04-18-2011 , 11:59   Re: Hero: Toriko
Reply With Quote #3

opss srry i must have totally missed that when i double checked the code.

but the code is still okay otherwise?

this is weird: // How many you need to kill need to gain hp XD???? i really suck at english

Last edited by RollerBlades; 04-18-2011 at 12:26.
RollerBlades is offline
kennyke12
Junior Member
Join Date: Mar 2011
Location: Hungary
Old 04-18-2011 , 14:29   Re: Hero: Toriko
Reply With Quote #4

Not bad but may we need to report to the players how many kills they need...
kennyke12 is offline
Send a message via MSN to kennyke12
RollerBlades
Senior Member
Join Date: Feb 2011
Location: Sweden
Old 04-18-2011 , 15:04   Re: Hero: Toriko
Reply With Quote #5

i dont think we need, usually you only need to kill 1 person to get more hp but if you change it and you want to know how many kills you need i think you have to do it yourself...

Last edited by RollerBlades; 04-18-2011 at 15:07.
RollerBlades is offline
Exploited
Veteran Member
Join Date: Jul 2010
Location: Sweden
Old 04-18-2011 , 15:45   Re: Hero: Toriko
Reply With Quote #6

Quote:
Originally Posted by RollerBlades View Post
this is weird: // How many you need to kill need to gain hp XD???? i really suck at english
Code:
// How many people you have to kill in order to gain hp
or a somewhat shorter version

Code:
// Amount of kills needed for extra HP
__________________
Jelle (1): I LOVE YOU
Jelle (1): Yeah. omg you are so awesome!
--------------
Jelle (1): You know when a poo is about to exit but it is too big?
Jelle (1): God my ass still hurts
Exploited is offline
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 04-18-2011 , 16:19   Re: Hero: Toriko
Reply With Quote #7

Quote:
Originally Posted by RollerBlades View Post
i dont think we need, usually you only need to kill 1 person to get more hp but if you change it and you want to know how many kills you need i think you have to do it yourself...
In my opinion this should really be hardcoded into something higher than 2... As if you set it to one its basically a 100% Dracula..

Would be funny with like 4-5 killstreak and if you reach it you get a massive health bonus, though its not directly balanced, something that Im always as cranky about as Fr33m@n about code efficiency
__________________
The Art of War is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 04-18-2011 , 19:56   Re: Hero: Toriko
Reply With Quote #8

If default is 1 for how many kills is needed you might as well not even have that cvar.

Either you should do as art says or remove the cvar for how many kills is needed. The way it is now it just seems kinda strange.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
RollerBlades
Senior Member
Join Date: Feb 2011
Location: Sweden
Old 04-19-2011 , 03:05   Re: Hero: Toriko
Reply With Quote #9

i set to 1 beacuse it more fun to get health right after you kill someone but if you want it different change it then, that's the reason why i gave you guys the cvar incase you want to change.....

nothing needs to be changed, it's just a simple code, made out of a great idea

Last edited by RollerBlades; 04-19-2011 at 03:26.
RollerBlades is offline
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 04-19-2011 , 03:23   Re: Hero: Toriko
Reply With Quote #10

Quote:
Originally Posted by RollerBlades View Post
i set to 1 beacuse it more fun to get health right after you kill someone but it you want it different change it then, that's the reason why i gave you guys the cvar incase you want to change.....

nothing needs to be changed, it's just a simple code, made out of a great idea
But as it is now it is:

1. A rip in two ways, ripped from a superhero plugin (Not that bad, I guess thats okey, why not). But also there are atleast 2-3 heroes that gives you health, released and known I can tell you is Dracula, then we have that Head Shooter hero and there are of course others.

2. The hero does not follow the description, or the reversed, which I think is stated in the rules for this section that the description should tell what the hero does, but thats not very important, I guess, but still.


I didnt exactly test it but it looks ok, yes. But I would never even consider using it anywhere if the cvar would be 1 (Im not saying you could change it, but a lot of stupid server operators actually doesnt know or vice versa). I otherwisely hate hardcoded things with all of my heart but this hero is nothing new at all if it's not hardcoded. But you made it, you choose.

Well, you did give proper credits. Ive seen a lot worse from people in that part..
__________________

Last edited by The Art of War; 04-19-2011 at 03:27.
The Art of War 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 13:39.


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