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

Hero: Toriko


Post New Thread Reply   
 
Thread Tools Display Modes
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 06-23-2011 , 06:34   Re: Hero: Toriko
Reply With Quote #41

I don't get the code.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
RollerBlades
Senior Member
Join Date: Feb 2011
Location: Sweden
Old 06-23-2011 , 08:21   Re: Hero: Toriko
Reply With Quote #42

it adds health if you killed a player or players
RollerBlades is offline
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 06-24-2011 , 15:52   Re: Hero: Toriko
Reply With Quote #43

Quote:
Originally Posted by DarkGod View Post
I don't get the code.
My first impression too, please hardcode the streak into 2+ or it is like 5 other heroes. Yey a new smiley
__________________
The Art of War is offline
RollerBlades
Senior Member
Join Date: Feb 2011
Location: Sweden
Old 06-25-2011 , 05:38   Re: Hero: Toriko
Reply With Quote #44

sure, but i dont think hardcoding( i hate hardcoding ) is necessary i just changed the cvar to 5

like i said its not like other heroes since on dracula you drain small amount of hp from the dmg your dealing on a alive player and the higher level you are the more you drain each time you deal dmg on someone..

this hero gives health when you kill a player or players and it exceeds your maxhealth.. i dont see the connection between 5 other heroes and hardcoding is not gonna change that since its ingame that matters...

edit: i took away the fix since the cvar hpgained doesnt need to be multiplied by the killsneed instead you increase its value

Last edited by RollerBlades; 06-25-2011 at 08:23.
RollerBlades is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 06-25-2011 , 07:33   Re: Hero: Toriko
Reply With Quote #45

I agree with that you shouldn't hardcode it. It's a lot better to use CVars for this.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
The Art of War
Veteran Member
Join Date: Dec 2009
Location: Sweden Rock Festival
Old 06-25-2011 , 14:17   Re: Hero: Toriko
Reply With Quote #46

Quote:
Originally Posted by RollerBlades View Post
i dont see the connection between 5 other heroes and hardcoding is not gonna change that since its ingame that matters...
Precisely, Im not saying the code is similar, but that the ingame effect is. Its your hero, Im just saying, that it should be different than others, and yes there are a lot of health draining heroes out there...

I agree I hate hardcoding aswell, perhaps make a pcvar check and set it to 2 if the value is less than 2, but yeh.. "Softcore" hardcoding then.
__________________
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 11:44.


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