- Home
- Downloads
-
Addons & Mods
Featured
World of Warcraft
4,842 Addons
-
Popular Downloads
- Top World of Warcraft Addons
- Top Rift Addons
- Top Skyrim Mods
- Top Minecraft Server Mods
- Top Terraria Maps
- Top Starcraft II Maps
- Top Runes of Magic Addons
- Top Warhammer Online Addons
- Top Age of Conan Addons
-
- Curse Client
- Premium
- News
- Giveaways
- Forums
oUF_CombatFeedback
- 0 Likes
- World of Warcraft
- 9,259 Downloads
- Supports: 4.0.1
- 1 Average Daily Downloads
- Comments
- Created 7/28/2008 3:05:43 AM
- Updated 10/16/2010 7:52:49 AM
- 10 Favorites
- Project Site
- License: All Rights Reserved
- Release Type: Release
- Newest File: r43-release
About oUF_CombatFeedback
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):
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:
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:
self.CombatFeedbackText.maxAlpha = .8
The default value is .6
You can ignore messages on a per unitframe basis using the following:
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:
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:
self.CombatFeedbackText.colors = { DAMAGE = {0,1,1}, CRITHEAL = {0,0,1}, }
Enjoy
-Ammo
------------------------------------------------------------------------
r43 | ammo | 2010-10-16 12:52:10 +0000 (Sat, 16 Oct 2010) | 1 line
Changed paths:
A /tags/r43-release (from /trunk:42)
Tagging as r43-release
------------------------------------------------------------------------
r42 | ammo | 2010-10-16 12:42:48 +0000 (Sat, 16 Oct 2010) | 1 line
Changed paths:
M /trunk/oUF_CombatFeedback.toc
toc to the hand
------------------------------------------------------------------------
| File Name | Release Type | Game Version | Downloads | Date |
|---|---|---|---|---|
| r43-release | Release | 4.0.1 | 4,326 | 10/16/2010 7:52:49 AM |
| r40-release | Release | 3.3.0 | 2 | 12/15/2009 3:26:29 AM |
| r38-release | Release | 3.1.0 | - | 4/30/2009 6:09:34 AM |
| r36-release | Release | 3.0.9 | 883 | 4/5/2009 4:08:57 AM |
| r34-release | Release | 3.0.3 | 1,258 | 11/10/2008 12:52:06 PM |
| oUF_CombatFeedback-r79327 | Beta | 2.4.3 | 1 | 7/27/2008 11:39:06 PM |
| oUF_CombatFeedback-r71484 | Beta | 2.4.3 | 1 | 4/25/2008 8:36:09 AM |
| oUF_CombatFeedback-r71253 | Beta | 2.4.3 | - | 4/24/2008 7:22:29 AM |
| oUF_CombatFeedback-r71247 | Beta | 2.4.3 | 3 | 4/24/2008 6:42:50 AM |
| oUF_CombatFeedback-r71237 | Beta | 2.4.3 | 1 | 4/24/2008 4:15:41 AM |
| oUF_CombatFeedback-r71236 | Beta | 2.4.3 | 1 | 4/24/2008 3:47:35 AM |
| oUF_CombatFeedback-r71233 | Beta | 2.4.3 | 1 | 4/24/2008 3:01:34 AM |
| oUF_CombatFeedback-r71231 | Beta | 2.4.3 | 1 | 4/24/2008 2:24:30 AM |
Comments