• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[10.95] TFS 1.2 with critical hits and hp/mana leech!

okay. but can u tell me: where is the codes of health and mana leech ? so i coul figure it out myself.
 
Wtf. It says "Critical Hit" every single time I shoot or hit a creature, and the SDs do like 2000 damage.
 
put here the critical hits code from player.cpp. I dont wanna download these all.
 
I can't see anything here related to critical hits. Maybe other file.
 
the problem may be in the "game.cpp"
> the function: bool Game::combatChangeHealth(Creature* attacker, Creature* target, CombatDamage& damage)

>>
Lua:
if (damage.critical) {
            addMagicEffect(spectators, targetPos, CONST_ME_CRITICAL_DAMAGE);
        }
 
Back
Top