#1




I have a question about wich it will use >=1 or >=11
Hello, I am moding perk bonuses and I have a question:
Code:
if ( KFPRI.ClientVeteranSkillLevel == 0) return float(InDamage) * 1.05; else if ( KFPRI.ClientVeteranSkillLevel >= 1 ) return float(InDamage) * (1.0 + (0.10 * float(KFPRI.ClientVeteranSkillLevel))); else if ( KFPRI.ClientVeteranSkillLevel >= 21 ) return float(InDamage) * (3.0 + (0.05 * float(KFPRI.ClientVeteranSkillLevel  20))); Or i have to do it like this ? Code:
if ( KFPRI.ClientVeteranSkillLevel == 0 ) return float(InDamage) * 1.05; else if ( KFPRI.ClientVeteranSkillLevel >= 1 ) return float(InDamage) * (1.0 + (0.10 * float(KFPRI.ClientVeteranSkillLevel))); if ( KFPRI.ClientVeteranSkillLevel >= 21 ) return float(InDamage) * (3.0 + (0.05 * float(KFPRI.ClientVeteranSkillLevel  20))); Last edited by Dinamix; 05052012 at 05:43 PM. Reason: edit 
#2




This
__________________
www.fluxiservice.com  Friendly, supportive game server host awaiting your arrival. >> My Custom Content Archive << 
#3




And could you explain how to understand this ?
return 1.0 + (0.12 * FMin(float(KFPRI.ClientVeteranSkillLevel), 5.0)) and this return (1.0 + (0.08 * float(Min(KFPRI.ClientVeteranSkillLevel, 5)))) Minminimum and FMin also minimum or it means the maximum value can be alowed? 
#4




Quote:
Ok i'll try explain it to my best and I have coloured it to try make more sense. Green = The client's current perk level as a number. Blue = Checks to see what is smaller, the perks level OR "5". If the level was 6, the FMin will choose 5 as the number to use as it is smaller. Orange = This will be multiplied by the FMin number given, whether it's the perks level or "5". Whatever is the smaller number. The overal number from the equation is then added to "1" and returning the outcome. Try figure out the other one for yourself from my explaination above. See it as homework It's always nice to try figure stuff out yourself to show you have understood something. Ask away if you have anymore questions.
__________________
www.fluxiservice.com  Friendly, supportive game server host awaiting your arrival. >> My Custom Content Archive << 
#5




Quote:
Cheers 
Thread Tools  
Display Modes  

