Exactly
New Member
- Joined
- Jul 14, 2014
- Messages
- 119
- Reaction score
- 4
Hello,
I have reborn script on my server when i attack on my engine send 1,1 1, 1, 1,1, ,1 ,1 and blocked my TFS
Can u tell me what is wrong on this script?
I have reborn script on my server when i attack on my engine send 1,1 1, 1, 1,1, ,1 ,1 and blocked my TFS
Can u tell me what is wrong on this script?
double bonusRebirth = 0.0;
if(attackerPlayer != nullptr){
bonusRebirth = attackerPlayer->rebirth * g_config.getNumber(ConfigManager::REBORN_DMGBONUS);
bonusRebirth /= 10;
bonusRebirth /= 100;
bonusRebirth += 1;
}
else
bonusRebirth = 1.0;
std::cout << bonusRebirth << std::endl;
damage.primary.value = std::abs(damage.primary.value) * bonusRebirth;
damage.secondary.value = std::abs(damage.secondary.value * bonusRebirth);