Download
(3Kb)
Download
Updated: 10-16-10 06:55 AM
Addon for:
oUF.
Pictures
File Info
Updated:10-16-10 06:55 AM
Created:unknown
Downloads:20,539
Favorites:120
MD5:

oUF Combat Feedback  Popular! (More than 5000 hits)

Version: r43-release
by: Ammo [More]

This is an addon that adds CombatFeedback to the oUF unitframes, based on the Blizzard combat feedback code. (Just wish I could reuse their functions easily)

It will display +100 on the frame when someone gets healed for 100 and -100 when someone gets damaged. It will also display block, miss etc.

To use this in your oUF layout you will need a CombatFeedbackText member on your oUF unit object (self):

Code:
	local cbft = self:CreateFontString(nil, "OVERLAY")
	cbft:SetPoint("CENTER", self, "CENTER")
	cbft:SetFontObject(GameFontNormal)
	self.CombatFeedbackText = cbft
Note: this usually places the CombatFeedbackText below the statusbars etc, so you might want to do:
Code:
local cbft = hpbar:CreateFontString(nil, "OVERLAY")
where hpbar is your hitpoints bar.

The combattext fades in and out when the damage happens, you can control the fading on a per unitframe basis by setting the .maxAlpha member
on the CombatFeedbackText string:

Code:
self.CombatFeedbackText.maxAlpha = .8
The default value is .6

You can ignore messages on a per unitframe basis using the following:

Code:
	self.CombatFeedbackText.ignoreImmune = true -- ignore 'immune' reports
	self.CombatFeedbackText.ignoreDamage = true -- ignore damage hits, blocks, misses, parries etc.
	self.CombatFeedbackText.ignoreHeal = true -- ignore heals 
	self.CombatFeedbackText.ignoreEnergize = true -- ignore energize events
	self.CombatFeedbackText.ignoreOther = true  -- ignore everything else
The default will show everything.

You can change the colors by setting a .colors table on the CombatFeedbackText.

The default colors table is:
Code:
local colors = {
	STANDARD		= { 1, 1, 1 }, -- color for everything not in the list below
	-- damage colors
	IMMUNE			= { 1, 1, 1 },
	DAMAGE			= { 1, 0, 0 },
	CRUSHING		= { 1, 0, 0 },
	CRITICAL		= { 1, 0, 0 },
	GLANCING		= { 1, 0, 0 },
	ABSORB			= { 1, 1, 1 },
	BLOCK			= { 1, 1, 1 },
	RESIST			= { 1, 1, 1 },
	MISS			= { 1, 1, 1 },
	-- heal colors
	HEAL			= { 0, 1, 0 },
	CRITHEAL		= { 0, 1, 0 },
	-- energize colors
	ENERGIZE		= { 0.41, 0.8, 0.94 },
	CRITENERGIZE	= { 0.41, 0.8, 0.94 },
}
You can override one or more:
Code:
self.CombatFeedbackText.colors = {
	DAMAGE = {0,1,1},
	CRITHEAL = {0,0,1},
}
Enjoy

-Ammo

r43-release
- 4.0 update

r40-release
- 3.3 compatible

r38-release
- 3.1 toc

r36-release
- Add the ability to change the colors for all types of feedback messages from a layout

r34-release
- wotlk update

r79327
- update for latest oUF

r71484
- fix global arg -> local thanks p3lim

r71247
- Initial upload to wowinterface
Post A Reply Comment Options
Unread 11-05-10, 05:19 PM  
cocotimbo
A Deviate Faerie Dragon
 
cocotimbo's Avatar

Forum posts: 11
File comments: 37
Uploads: 0
Originally posted by cocotimbo
This!
I use monoUI and I have the same problem. Anyone can help plz?
Is there anybody in this forum?

06.11.10
Still using MonoUI and oUF Combat Feedback seems to work only in my player frame. I'd like to make it work on the target frame too. Any help please?
Report comment to moderator  
Reply With Quote
Unread 09-07-10, 04:33 AM  
cocotimbo
A Deviate Faerie Dragon
 
cocotimbo's Avatar

Forum posts: 11
File comments: 37
Uploads: 0
Originally posted by zoktar
if anyone feels like adding this to rothui (ouf_d3orbs) would be my hero .
iv tried to implement it myself but my lack of lua/ouf knowledge renders me fit to only edit obvious things. basicly everything but mana gains would be nice on the health orb and energy gains on the energy/mana/rage orb. if thats to complex, all on the healthorb would be ok aswell.

it seems like someone with basic lua/ouf knowledge could add this within a minute, but i cannot read it :/.
This!
I use monoUI and I have the same problem. Anyone can help plz?
Report comment to moderator  
Reply With Quote
Unread 12-15-09, 07:12 PM  
omicron
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 47
Uploads: 1
Possible BUG?

i got a strange behavior with the new version of ... i think its oUF com.
my combat feedback stops working ... sometimes, no error nothing to report.
Report comment to moderator  
Reply With Quote
Unread 12-15-09, 11:13 AM  
zoktar
A Cliff Giant
AddOn Compiler - Click to view compilations

Forum posts: 72
File comments: 262
Uploads: 1
if anyone feels like adding this to rothui (ouf_d3orbs) would be my hero .
iv tried to implement it myself but my lack of lua/ouf knowledge renders me fit to only edit obvious things. basicly everything but mana gains would be nice on the health orb and energy gains on the energy/mana/rage orb. if thats to complex, all on the healthorb would be ok aswell.

it seems like someone with basic lua/ouf knowledge could add this within a minute, but i cannot read it :/.
Report comment to moderator  
Reply With Quote
Unread 12-08-09, 11:40 PM  
Freki
A Deviate Faerie Dragon
 
Freki's Avatar
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 94
Uploads: 6
For those that need this like I do, I found a fix to the issue described below.
1) Open oUF_CombatFeedback\oUF_CombatFeedback.lua with notepad.
2) Go to line 138 (use Ctrl-G) and either delete the line or comment it out by changing the line to
Code:
--oUF.UNIT_COMBAT = combat
3) Go to line 147 and change it from
Code:
object:RegisterEvent("UNIT_COMBAT")
to
Code:
object:RegisterEvent("UNIT_COMBAT",combat)
4) Save and reload interface / restart WoW
Last edited by Freki : 12-08-09 at 11:40 PM.
Report comment to moderator  
Reply With Quote
Unread 12-03-09, 06:22 AM  
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 918
File comments: 959
Uploads: 22
Seems like there are some issues with oUF. 1.3.22

I get the following error with combat feedback being enabled and it also stopped working.

Code:
oUF: Error: Handler for event [UNIT_COMBAT] on unit [unknown] does not exist.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

Report comment to moderator  
Reply With Quote
Unread 06-02-09, 09:48 AM  
Syngian
A Kobold Labourer

Forum posts: 0
File comments: 72
Uploads: 0
Originally posted by Ammo
Blizzard doesn't provide info for the targettarget frame. hence it does not work
Ahh, kinda hoped that had not been the case >_< Thanks!
Report comment to moderator  
Reply With Quote
Unread 06-01-09, 12:32 PM  
Ammo
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 22
Originally posted by Syngian
This doesn't seem to be working on my targettarget frame, yet it works on every other frame I have- did I miss something? :/
Blizzard doesn't provide info for the targettarget frame. hence it does not work
Report comment to moderator  
Reply With Quote
Unread 06-01-09, 07:20 AM  
Syngian
A Kobold Labourer

Forum posts: 0
File comments: 72
Uploads: 0
This doesn't seem to be working on my targettarget frame, yet it works on every other frame I have- did I miss something? :/
Report comment to moderator  
Reply With Quote
Unread 05-20-09, 11:17 AM  
Ammo
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 22
Originally posted by boingy
how about blizzard combat feedback which type only u damage on target, its possible enable for ouf)?
That's the scrolling combat stuff, not the combat feedback. Blizzard combat feedback is all damage on the target.
Report comment to moderator  
Reply With Quote
Unread 05-20-09, 09:16 AM  
boingy
A Kobold Labourer

Forum posts: 1
File comments: 29
Uploads: 0
how about blizzard combat feedback which type only u damage on target, its possible enable for ouf)?
Report comment to moderator  
Reply With Quote
Unread 05-20-09, 06:10 AM  
Ammo
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 17
File comments: 137
Uploads: 22
Originally posted by boingy
how to do that show damage on target only from me?
sorry, that's not possible.
Report comment to moderator  
Reply With Quote
Unread 05-20-09, 04:09 AM  
boingy
A Kobold Labourer

Forum posts: 1
File comments: 29
Uploads: 0
how to do that show damage on target only from me?
Report comment to moderator  
Reply With Quote
Unread 04-05-09, 03:55 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
File comments: 252
Uploads: 5
Thanks alot for the changes in r36 ammo
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Report comment to moderator  
Reply With Quote
Unread 12-15-08, 06:45 AM  
zoktar
A Cliff Giant
AddOn Compiler - Click to view compilations

Forum posts: 72
File comments: 262
Uploads: 1
Originally posted by Ammo
nope, you'd have to write somehting special for that
damn, u have anything like this planned atm?. perhaps have some sort of container setup, where u could set in the lua wich feedbacks go into wich container


cant really think of a good cause to put some feedback on one spot and other feedback on another. cept for mana and hp if they where seperate unit frames, wich they are in ouf_d3orbs. thinking what other type of text one could put on the a mana bar/orb, if this addon had the function to seperate combat info.

mana regen tick perhaps?, mana drain, mana gain, mana usage?(when u cast spells).


just realized iv been saying mana the hole time ofc rage/energy would be cool 2. also sorry for repeats/bad writing 2 lazy to edit atm.

edit, i have a bigger problem, cant seem to figure out how to attach ouf_combatfeedback to the healthorb in ouf_d3orbs, doesnt seem to have a specific name. (im lua noob).

edit, just curious if u want 2 have combatfeedback on 2 frames. could u not define what should be shown and not per frame, like said in readme?.then id just keep all but energisze on healthframe, and only energize on mana frame.
wouldnt that work?. (still havnt figured out how to get it working in ouf_d3orbs at all. with direct copy of the code on main page just gives me index self nil global type error.

self.CombatFeedbackText.ignoreImmune = true -- ignore 'immune' reports
self.CombatFeedbackText.ignoreDamage = true -- ignore damage hits, blocks, misses, parries etc.
self.CombatFeedbackText.ignoreHeal = true -- ignore heals
self.CombatFeedbackText.ignoreEnergize = true -- ignore energize events
self.CombatFeedbackText.ignoreOther = true -- ignore everything else

edit: iv givven up for now, gonna see if author adds it himself, hopefully he will.
Last edited by zoktar : 12-16-08 at 01:17 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: