SA-MP Forums Archive
AI Critical Hit - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: AI Critical Hit (/showthread.php?tid=71452)



AI Critical Hit - Kinetic - 01.04.2009

AI Critical Hit

I thought this would be a nice health detection system for all kinds of game modes. I also added in a critical hit system that runs randomly based on numbers you put in. As in all my scripts, the custom variables to mod the way the script is are easy to understand.

Код:
//----[Custom Stats]------------------------------------------------------------
new criticalpercent = 5; // % chance that a hit will be a critical hit.
new criticalamount = 2; // Damage multiplier for critical hit 2 = 2x damage.
new timerspeed   = 1; // How fast the health detection timer is in seconds.
//------------------------------------------------------------------------------
Download
PWN + AMX (http://www.mediafire.com/?wj1y1ouux4o)
AMX (http://www.mediafire.com/?zgw0mjidlyz)
Pastebin (http://pastebin.com/f7a462064)

As always, post any suggestions you would like to see and I will add them


Re: AI Critical Hit - lillilmike - 02.04.2009

What is this exactly?


Re: AI Critical Hit - Castle - 02.04.2009

I think its a Critical Hit a person can get...
Basically its useful to RP server
maybe make it that when the player has 25HP or lower h gets anim Crack and Medic need to /heal him


Re: AI Critical Hit - tom_jonez - 02.04.2009

This would be a cool script, but that code just doesn't make sense to me. =/


Re: AI Critical Hit - On_Top_Non_Stop - 02.04.2009

*I think* If you lose X amount of health it tells you that it was a critical hit/injury then it takes some health away.


Re: AI Critical Hit - lillilmike - 02.04.2009

Ahh I see yeah i'm confused by the title, I was thinking more of the lines of a mob hit.


Re: AI Critical Hit - Shellegg - 02.04.2009

No lol, a critical hit is when you hit you have 5% (in this case) to get a critical hit doing 2x more damage that hit.
Understand?

damn people you never played Pokemon!


Re: AI Critical Hit - On_Top_Non_Stop - 02.04.2009

Pokemon lol. Well, You gave no info so we guessed ^_^