Ok I now I don't deserve full credits on this one, but if you use this code I want you to credit, chris, insurrectionman (he helped me to understand the T_Bite sound system hehe) and me, Razi (or Just Karharis or Ritual )Plus even if you think I'm wrong and you don't think I deserve any credits at all I think I still deserve those credits for Putting this code for you guys that maybe want to make this happen. Anyway, 'nuff said.. Let's code!

Now if you got it all correctly you should have a guard that attacks from close range but he still barks because we didn't made any changes to the T_Bite function. So let's do it shall we? Okay, do a search for:

Now just change the Guards pistol sound with a swing of a sword sound or whatever you want.. Now the guard is attacking from close range and he doesn't bark! and like my old fella Fat Bastard used to say. ain't that magical?

Just don't forget to credit the people I mentioned above including me :muwaha: and there you have it! a guard that attack you from a close range. Hope you understood this rough tutorial because it's my first one So if you got questions about it or whatever please do (NOT) ask me..

EDIT1: if you want the guard to attack harder like he's shooting you (but only from close range you should leave the first line where we changed the T_Shoot to T_Bite intact. And to make the guard to take less damage with each attack: Apply this quick tutorial by BrotherTank http://diehardwolfers.areyep.com/viewtopic.php?t=1606