i want to add another level condition to SupportSpec. 3 level conditions:welding, kill monsters with shotgun,kill stalkers with assult rifles.
heres what i have done in SRVetSupportSpec.uc
I know there is much more to be done.But i don't know what shall i do next.would you guys help me a little? im a new hand,please tell me how to do it in detail,please.i beg you.
heres what i have done in SRVetSupportSpec.uc
Code:
static function int GetPerkProgressInt( ClientPerkRepLink StatOther, out int FinalInt, byte CurLevel, byte ReqNum )
{
switch( CurLevel )
{
case 0:
if( ReqNum==0 )
FinalInt = 1000;
else if(ReqNum==1)
FinalInt = 1000;
else FinalInt =10
break;
case 1:
if( ReqNum==0 )
FinalInt = 2000;
else if(ReqNum==1)
FinalInt = 5000;
else FinalInt = 30;
break;
case 2:
if( ReqNum==0 )
FinalInt = 7000;
else if(ReqNum==1)
FinalInt = 100000;
else FinalInt = 100;
break;
case 3:
if( ReqNum==0 )
FinalInt = 35000;
else if(ReqNum==1)
FinalInt = 500000;
else FinalInt = 350;
break;
case 4:
if( ReqNum==0 )
FinalInt = 120000;
else if(ReqNum==1)
FinalInt = 1500000;
else FinalInt = 1200;
break;
case 5:
if( ReqNum==0 )
FinalInt = 250000;
else if(ReqNum==1)
FinalInt = 3500000;
else FinalInt = 2300;
break;
case 6:
if( ReqNum==0 )
FinalInt = 370000;
else if(ReqNum==1)
FinalInt = 5500000;
else FinalInt = 3600;
break;
default:
if( ReqNum==0 )
FinalInt = 370000+GetDoubleScaling(CurLevel,35000);
else if(ReqNum==1)
FinalInt = 5500000+GetDoubleScaling(CurLevel,500000);
else FinalInt = 3600+GetDoubleScaling(CurLevel,350);
break;
}
if( ReqNum==0 )
return Min(StatOther.RWeldingPointsStat,FinalInt);
else if(ReqNum==1)
return Min(StatOther.RShotgunDamageStat,FinalInt);
else return Min(StatOther.RStalkerKillsStat,FinalInt);
}
I know there is much more to be done.But i don't know what shall i do next.would you guys help me a little? im a new hand,please tell me how to do it in detail,please.i beg you.