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

Subplugin Submission [ZP] Addon: Critical Hit v1.2


Post New Thread Reply   
 
Thread Tools Display Modes
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 08-06-2011 , 04:16   Re: [ZP] Addon: Critical Hit v1.2
Reply With Quote #11

Add this check, other wise you will get errors:
Code:
public fw_TakeDamage( victim, inflictor, attacker, Float:damage, damage_type ) {
    if (!(1 <= attacker <= 32)) return HAM_IGNORED;
        if( attacker == victim )         return;     if( !zp_get_user_zombie( attacker ) )     {         if( random_num( 0, 100 ) < random_num( 0, 100 ) < random_num( 0, 100 ) )         {             SetHamParamFloat( 4, damage *= get_pcvar_float( cvar_criticaldamage ) )                         client_cmd( attacker, "spk ^"%s^"", sound_critical )                         set_user_rendering( victim, kRenderFxGlowShell, 255, 255, 255, kRenderNormal, 50 );                         set_hudmessage( 0, 255, 0, -1.0, -1.0, 0, 6.0, 1.1, 0.0, 0.0, 1 )             ShowSyncHudMsg( attacker, gSyncHud, "Critical Hit!" )                         set_task( 1.0, "remove_glow", victim+TASK_REMOVE )         }                 SetHamParamFloat( 4, damage )     } }
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
ChickenChaser
Member
Join Date: Aug 2010
Old 12-03-2011 , 06:29   Re: [ZP] Addon: Critical Hit v1.2
Reply With Quote #12

and it's there a cvar smthing to set chance % of critical ? or smthing ?
ChickenChaser is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 12-03-2011 , 06:46   Re: [ZP] Addon: Critical Hit v1.2
Reply With Quote #13

Dead thread revived!
__________________
Snaker beatter is offline
DoviuX
Senior Member
Join Date: Jun 2009
Location: Lithuania
Old 02-03-2012 , 01:31   Re: [ZP] Addon: Critical Hit v1.2
Reply With Quote #14

When joining other server i get sent alot of these critical hit files, I think it would be better this way.

PHP Code:
new const sound_critical[] = { "sound/critical_hit/critical_hit.wav" 
-->
PHP Code:
new const sound_critical[] = "sound/critical_hit/critical_hit.wav" 
PHP Code:
    for (new 0sizeof sound_criticali++)
        
engfunc(EngFunc_PrecacheSoundsound_critical[i]) 
-->
PHP Code:
engfunc(EngFunc_PrecacheSoundsound_critical
DoviuX is offline
Send a message via Skype™ to DoviuX
!Morte
Veteran Member
Join Date: May 2010
Old 05-13-2014 , 20:01   Re: [ZP] Addon: Critical Hit v1.2
Reply With Quote #15

Updated to the real v1.2
__________________
First Zombie Class
[ZP] Zombie Class: Houndeye Zombie
Quote:
Originally Posted by lucas_7_94 View Post
tenes que saber pawn antes de intentar hacer algo digno.
!Morte is offline
Send a message via MSN to !Morte Send a message via Skype™ to !Morte
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 05-13-2014 , 21:55   Re: [ZP] Addon: Critical Hit v1.2
Reply With Quote #16

Remove fun include you don't need it. (:
__________________
H.RED.ZONE 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 01:23.


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