Category: oUF: Plugins
Addon Information
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Ammo's Portal Bug Reports Feature Requests

This file is a Addon for oUF by haste. You must have that installed before this Addon will work.

Author:
Version:
r38-release
Date:
04-30-2009 07:11 AM
Size:
3.33 Kb
Downloads:
7,694
Favorites:
122
MD5:
Pictures
ha! dodged!
ugh they got me!
oUF Combat Feedback   Popular! (More than 5000 hits)
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
  Change Log - oUF Combat Feedback
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
  Archived Versions - oUF Combat Feedback
File Name
Version
Size
Author
Date
r36-release
4kB
Ammo
04-05-2009 05:11 AM
r34-release
4kB
Ammo
12-23-2008 06:51 AM
  Comments - oUF Combat Feedback
Post A Reply Comment Options
Old 06-02-2009, 11:48 AM  
Syngian
A Kobold Labourer

Forum posts: 0
File comments: 53
Uploads: 0
Quote:
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!
Syngian is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-01-2009, 02:32 PM  
Ammo
Premium Member
Premium Member
Interface Author - Click to view interfaces

Forum posts: 13
File comments: 128
Uploads: 26
Quote:
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
Ammo is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-01-2009, 09:20 AM  
Syngian
A Kobold Labourer

Forum posts: 0
File comments: 53
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? :/
Syngian is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-20-2009, 01:17 PM  
Ammo
Premium Member
Premium Member
Interface Author - Click to view interfaces

Forum posts: 13
File comments: 128
Uploads: 26
Quote:
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.
Ammo is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-20-2009, 11:16 AM  
boingy
A Kobold Labourer

Forum posts: 1
File comments: 9
Uploads: 0
how about blizzard combat feedback which type only u damage on target, its possible enable for ouf)?
boingy is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-20-2009, 08:10 AM  
Ammo
Premium Member
Premium Member
Interface Author - Click to view interfaces

Forum posts: 13
File comments: 128
Uploads: 26
Quote:
Originally posted by boingy
how to do that show damage on target only from me?
sorry, that's not possible.
Ammo is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-20-2009, 06:09 AM  
boingy
A Kobold Labourer

Forum posts: 1
File comments: 9
Uploads: 0
how to do that show damage on target only from me?
boingy is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-05-2009, 05:55 AM  
Caellian
A Chromatic Dragonspawn
 
Caellian's Avatar
Interface Author - Click to view interfaces

Forum posts: 163
File comments: 663
Uploads: 4
Thanks alot for the changes in r36 ammo
__________________


Quote:
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Caellian is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-15-2008, 07:45 AM  
zoktar
A Deviate Faerie Dragon

Forum posts: 13
File comments: 116
Uploads: 0
Quote:
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-2008 at 02:17 AM.
zoktar is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-15-2008, 03:47 AM  
Ammo
Premium Member
Premium Member
Interface Author - Click to view interfaces

Forum posts: 13
File comments: 128
Uploads: 26
Quote:
Originally posted by zoktar
hi im looking to get this working on ouf_d3orbs, with hp and mana seperated on each orb, healthorb 2 the left manaorb to the right. is that at all possible(only for self, player unit, all other units are both), with the way combatfeedback works now?. cheers.
nope, you'd have to write somehting special for that
Ammo is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 12-14-2008, 02:14 AM  
zoktar
A Deviate Faerie Dragon

Forum posts: 13
File comments: 116
Uploads: 0
hi im looking to get this working on ouf_d3orbs, with hp and mana seperated on each orb, healthorb 2 the left manaorb to the right. is that at all possible(only for self, player unit, all other units are both), with the way combatfeedback works now?. cheers.
zoktar is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-12-2008, 06:00 AM  
Caellian
A Chromatic Dragonspawn
 
Caellian's Avatar
Interface Author - Click to view interfaces

Forum posts: 163
File comments: 663
Uploads: 4
I might be wrong but it seems to generate an error in 3.0.3, something with being in combat, i don't have the log here, i'm not at home.
__________________


Quote:
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Caellian is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-08-2008, 04:40 AM  
Ammo
Premium Member
Premium Member
Interface Author - Click to view interfaces

Forum posts: 13
File comments: 128
Uploads: 26
Quote:
Originally posted by MoonWitch
Does this only show heals done by the person who has the addon?

eg. I use it, I heal person_x, my fellow healer heals person_y, will this show both heals?
It will show both. It will show all heals on that unit, regardless of the healer
Ammo is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 08-07-2008, 07:12 PM  
MoonWitch
A Cliff Giant
Interface Author - Click to view interfaces

Forum posts: 70
File comments: 130
Uploads: 8
Does this only show heals done by the person who has the addon?

eg. I use it, I heal person_x, my fellow healer heals person_y, will this show both heals?
MoonWitch is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-26-2008, 04:58 PM  
Purity
A Deviate Faerie Dragon

Forum posts: 16
File comments: 135
Uploads: 0
Quote:
Originally posted by Ammo
oUF Combat Feedback obeys the initial fontsize set by your layout. So setting the CombatFeedbackText font larger will work.

object.CombatFeedbackText:SetFont("path\\to\\myfont.ttf", 16, "OUTLINE")
or
object.CombatFeedbackText:SetFontObject(GameFontNormalLarge)

-Ammo
Thank you Ammo!
__________________
Purity is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.