• 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!

Request/help for the pvp 50% dmg reduction

Werewolf

Forbidden Ascension
Joined
Jul 15, 2012
Messages
886
Reaction score
123
Is it possible to Remove the 50% pvp damage reduction, WITHOUT doing any source edits?
if it is, could someone tell me how to remove it please?
 
In statsOnChange only can increase damage in players vs players.

Or healing 50% of value dmg recived.
Or null all damage with return false in healthChange.

For reduction only with sources edit :p
 
On TFS 1.2+, I would recommend to edit sources, search combat.cpp and look for the next part:
Code:
    if ((damage.primary.value < 0 || damage.secondary.value < 0) && caster) {
        Player* targetPlayer = target->getPlayer();
        if (targetPlayer && caster->getPlayer() && targetPlayer->getSkull() != SKULL_BLACK) {
            damage.primary.value /= 2;
            damage.secondary.value /= 2;
        }
    }
Where you can modify:
Code:
from:
            damage.primary.value /= 2;
            damage.secondary.value /= 2;
to:
               damage.primary.value /= 1;
            damage.secondary.value /= 1;
This will remove the PVE/PVP damage reduction from 50% to 0%. I hope this helps.
Here is an example of my own server compiled and runing with damage reduction at 5% (damage.primary.value /= 1.1):
pvp.jpg
 
Back
Top