[wip] NPC spellcasting
having human warrior as first char from 1999 made me dislike to fight NPCs that can cast spells.. heals.. blinds.. slows.. so the cleric / shaman mobs. sure you can shield bash, if you do not miss, if you manage to bash them actually with stunning effect.
after stopping to play the "blind fool" i started elf cleric to see the other sight of this.. well.. i was interrupted by each and every hit of my enemies.. hard to regain concentration and such, but no warhamer was good enough to interrupt an enemy casting but the high mana cost stun spells (etc). nahh well.. after "ballancing" the NPC melee for my own "fair-play"-taste i thought i take my revenge on those duhhh casters. so first thing i thought why not make them be so less good caster and have same chance on losing concentration instead of having bad dreams of old-time-rememberings of some sabbertooth soothslayer lets modify the spells.cpp a bit Code:
the code is not pretty at all, but wanted to rip it this apart so the comments are ok and good looking. next thing for me is to go for mobs' fizzling (all i got so far is a fizzle and they never ever casted spells, so i guess there is more in it.. some timer or such - no idea yet.. any suggestions please?) |
mob fizzle
well to make mobs fizzle you are to insert some code - since there is no way a mob to fizzle normally there is nothing in yet
into mob::CheckFizzle Code:
this is not enough you are to insert a line too into mob::CastSpell Code:
|
quickfix
quickfix for post #1
instead of "float mult;" write "float mult = 0;" |
All times are GMT -4. The time now is 01:49 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.