How could I get the Mortal Kombat sounds to work in pve

Info on other Mods that I have written/created/updated
Locked
Thraikan

How could I get the Mortal Kombat sounds to work in pve

Post by Thraikan »

I am willing to edit code but I dont know what I need to make to work on mobs. I know itll have to do with like

Code: Select all

function MKombat_OnEvent()
	if( event == "UNIT_HEALTH") then
		if&#40; arg1 == "target" and UnitHealth&#40;"target"&#41; < 20 and UnitHealth&#40;"target"&#41; > 0 and not healthFinishHim &#41; then
	        if&#40; UnitName&#40;"target"&#41; and UnitIsPlayer&#40;"target"&#41; and UnitIsEnemy&#40;"player", "target"&#41; &#41; then
      			--  PLAY FINISH HIM!!!
				MKombat_PlayFile&#40; g_MKombat_Packs&#91;MK_CurrentPack&#93;&#91;"FINISH_THEM"&#93; &#41;;
				healthFinishHim = true;
			end
the unitisplayer("target"), possibly, but I dont know what to do, I want all the pvp features to work with pve

Guest

Post by Guest »

HAHA i got it to work, only thing not working is the UT sounds like multi kill etc.

Kayde
Posts: 20
Joined: Sun Aug 07, 2005 3:14 pm

Post by Kayde »

Looks like your on your way! Good job in finding the needed code for your liking.

Jasmin
Posts: 1
Joined: Mon Sep 12, 2005 2:51 am

Post by Jasmin »

Finish Him! Thats gotta be a rush 8)

User avatar
Synn
Posts: 1
Joined: Tue May 16, 2006 2:52 am

Post by Synn »

Nice oneThraikan!

How about posting the code mate, i've been wondering how possible it would be to get it working for PVE for a warrior... IE:

"finish Him" on 20% (Good Warning for "Execute") then have the fatality / brutality play on the Executes type of attack... Crit or Not Crit...

Now cause i'm crap at coding... basic HTML is as far as i can go :P would you mind editting it to suit the warrior example i said above? ;)

Would be great if you could

Locked