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

HitZones Manager v0.0.4 ( 09/06/2014 )


Post New Thread Reply   
 
Thread Tools Display Modes
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-08-2014 , 19:44   Re: HitZones Manager ( 07/06/2014 )
Reply With Quote #11

Quote:
Originally Posted by Backstabnoob View Post
PHP Code:
new Float:flDamage;
            
if( 
get_user_teamindex ) == 
{
    
flDamage = ( Dmg g_iCvarsTR ][ iHitGroup ] / 100 );
}
else if( 
get_user_teamindex ) == )
{
    
flDamage = ( Dmg g_iCvarsCT ][ iHitGroup ] / 100 );
}                        
SetHamParamFloat4flDamage  ); 
=>
PHP Code:
SetHamParamFloat4Dmg g_iCvarsget_user_teamindex ) == TR CT ][ iHitGroup ] / 100 ); 

You don't need to cache the cvars, but I'll leave that up to you as it doesn't matter at all here.
Thanks you know I never thought of that lol. Will add to update.

EDIT:

might keep the cache as im going to add TK, and Self damage % to hitzones in next update and also a cfg file for cvars
__________________

Last edited by Blizzard_87; 06-08-2014 at 20:08.
Blizzard_87 is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-08-2014 , 20:20   Re: HitZones Manager ( 07/06/2014 )
Reply With Quote #12

Sure, I have nothing against the cache, but there are a few other things you should change. I updated my post.
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-08-2014 , 22:18   Re: HitZones Manager ( Updated 09/06/2014 )
Reply With Quote #13

Updated Plugin Version 0.0.2
__________________
Blizzard_87 is offline
EthicalHacker007
Veteran Member
Join Date: May 2014
Old 06-09-2014 , 01:31   Re: HitZones Manager ( Updated 09/06/2014 )
Reply With Quote #14

@Backstabnoob I'm amazed by the way you changed a 10 line code into 1.
__________________
EthicalHacker007 is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-09-2014 , 01:56   Re: HitZones Manager ( Updated 09/06/2014 )
Reply With Quote #15

Quote:
Originally Posted by EthicalHacker007 View Post
@Backstabnoob I'm amazed by the way you changed a 10 line code into 1.
Really amazed?

Have you tried the new version?
__________________
Blizzard_87 is offline
EthicalHacker007
Veteran Member
Join Date: May 2014
Old 06-09-2014 , 02:14   Re: HitZones Manager ( Updated 09/06/2014 )
Reply With Quote #16

I'm just a beginner(newbie), and don't know much so I'm amazed. Hehe.

Should I try?
__________________
EthicalHacker007 is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-09-2014 , 04:18   Re: HitZones Manager ( Updated 09/06/2014 )
Reply With Quote #17

I'm on phone so I haven't checked your code yet, although you should format cvars into one like this:
amx_hzm_head "ct t team"
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-09-2014 , 04:36   Re: HitZones Manager ( Updated 09/06/2014 )
Reply With Quote #18

Quote:
Originally Posted by Backstabnoob View Post
I'm on phone so I haven't checked your code yet, although you should format cvars into one like this:
amx_hzm_head "ct t team"
Will totally do that. Then it will only be one set of cvars for hit zones.

Will try update tonight.

EDIT:

Updated Plugin Version 0.03

You Must Follow The HitZones Cvar Setup Otherwise HitZones Damage % Wont Work.
__________________

Last edited by Blizzard_87; 06-09-2014 at 07:19.
Blizzard_87 is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-09-2014 , 07:45   Re: HitZones Manager v0.0.3 ( Updated 09/06/2014 )
Reply With Quote #19

You're using this three times, so you should at least cache the value:
PHP Code:
get_user_teamindex 
Also please consider what I said about the debug message in your next update (being able to choose for which hitzones it should show up and what method, chat/hud because hud seems better for this).

Code's good enough, approved.
__________________
Currently busy working on a very large scale anime database project.

Last edited by Backstabnoob; 06-09-2014 at 07:46.
Backstabnoob is offline
EthicalHacker007
Veteran Member
Join Date: May 2014
Old 06-09-2014 , 08:05   Re: HitZones Manager v0.0.3 ( Updated 09/06/2014 )
Reply With Quote #20

That was quick. Congratulations on the approval.
Thinking of releasing my first plugin.
__________________
EthicalHacker007 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 06:06.


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