Onizuka
Member
- Joined
- Jul 5, 2008
- Messages
- 2,291
- Reaction score
- 14
Lua:
Player* attackerPlayer = attacker->getPlayer();
if(!attackerPlayer || attackerPlayer == this)
return 0;
/*
Formula
c = victims experience
result = 0.01 * c
Not affected by special multipliers(!)
*/
uint64_t c = getExperience();
return (double)std::max((uint64_t)0, (uint64_t)std::floor(getDamageRatio(attacker)
* std::max((double)0, (double)0.01 * c))) * rate;
}
right now when a player kills a player he gets like 30-40% of the players level, when few people kill 1 guy, its shared even more.
But when i had 0.02, double player killed player and got 2-3 lvls
How can i make this so its not double but like you get 80% of exp not like 30%
So how can i higher this 0.01 to make it work better but not to high like few lvls.
Thanks, ;x
And if someone can come up with a good way to get this, ill pay him 15euro paypal ;x