Hate modifiers patch
Hello, all--it's been a while since my last code submission, so I'm sorry about that.
Someone asked me to fix the hate modifiers so that they work--for worn effects, spells (i.e. Enchanter Horrifying Visage, etc.), and AAs (if there be any hate modifiers currently implemented). Here's a really simple patch that I think fixes the issue: Code:
Index: zone/attack.cpp |
Update
Wow, sorry about that -- that'd would produce an insane amount of hate.
Here's the update: Code:
Index: zone/attack.cpp |
Are hate modifiers not working without this patch? I thought they were already functional.
|
not getting used
I think they are getting calculated, but I followed the hit code and found no reference to it. This should allow warrior epic 2.0 and enchanter hate buffs to add hate.
Greenmachine noticed that the warrior epic 2.0 wasn't working, which prompted investigation. Note this is for effects and not procs. Thanks! |
Quote:
|
Seems like this wouldn't accurately reflect agro from live as there is no additional agro for crits, however with the code structured like that, on crits your hate would be doubled. Also Im pretty sure that agro on live is based on weapon dmg, not actual dmg, which is why war weapons from recent expansions have less dmg/dly with relatively high elemental dmg tacked on(The Keen Edge of Discord vs Skulltutor). This keeps the war agro high but their dps in check, however that is not entirely relevant to your change and seems to be in the code already.
That said, it should be a relatively easy effect to test(feel doesnt really cut it, especially with 15%), use an item like Raex's Chestplate of Destruction and check the hatelist entries with and without it. |
No crit hate mod
I'm sorry, I didn't realize that crits didn't count toward additional hate from spells, effects, etc.
Please move the effective line up one, right above crits. Thanks! |
Quote:
|
Quote:
Quote:
|
script
Okay, so I assume you mean a quest script for the EVENT_COMBAT event?
Also, I'm having a hard time finding the variable that corresponds to the hate for a character. Thanks! |
You could script it, or could just use the #hatelist command. I would make a level 1 mob, attack it, if you don't get a full dmg quad, repop until you do, then check its hatelist. Then make a level 255 mob with high ac, attack it, if you dont get a quad of misses, repop until you do. The hate values for a full dmg quad and quad of misses should be the same. Then do the same thing with the hate mod item.
|
Hate calc
Okay, so it sounds like you get extra hate even if you miss them, right?
Can you please post the formula for calculating the hate mod the way Live does it? Thanks! |
Alright so I did the test myself since it seems you didnt do it. Turns out agro seems to be fine.
First off, agro is generated per swing, not based on damage... http://i32.tinypic.com/e899jr.jpg http://i31.tinypic.com/30mnupz.jpg Notice 5 swings, different damage, same hate value. Secondly, agro mods like Echo of Anger, do indeed work: http://i30.tinypic.com/vg3a04.jpg Notice 5 swings again, this time hate is 100. 89 * 15% is 102, but its close enough that I would say its working. |
Part of that 89 is a small amount of static hate you get for aggroing a mob and isn't affected by any mods.
|
All times are GMT -4. The time now is 02:56 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.