Add changed for updates 001 and 002
This commit is contained in:
parent
ec8c6a16f1
commit
0ee6e2e0ca
16 changed files with 112 additions and 93 deletions
|
|
@ -26,13 +26,24 @@ static function float GetNiceHeadShotDamMulti(KFPlayerReplicationInfo KFPRI, Nic
|
|||
nicePawn = NiceHumanPawn(nicePlayer.pawn);
|
||||
//if(IsPerkedPickup(pickupClass)){
|
||||
ret += 0.25;
|
||||
if(nicePawn != none && class'NiceVetSharpshooter'.static.hasSkill(nicePlayer, class'NiceSkillSharpshooterTalent')){
|
||||
if(nicePawn != none && class'NiceVetSharpshooter'.static.hasSkill(nicePlayer, class'NiceSkillSharpshooterDamage')){
|
||||
calibratedTalentBonus = 0.1f * Min(nicePawn.calibrationScore, 3);
|
||||
ret *= (1.0 + calibratedTalentBonus);
|
||||
}
|
||||
//}
|
||||
return ret;
|
||||
}
|
||||
static function int AddStunScore(KFPlayerReplicationInfo KFPRI, KFMonster Injured, KFPawn DamageTaker, int inStunScore, class<NiceWeaponDamageType> DmgType)
|
||||
{
|
||||
local NicePlayerController nicePlayer;
|
||||
if (KFPRI != none) {
|
||||
nicePlayer = NicePlayerController(KFPRI.Owner);
|
||||
}
|
||||
if(nicePlayer != none && class'NiceVetSharpshooter'.static.HasSkill(nicePlayer, class'NiceSkillSharpshooterControl')) {
|
||||
return int(float(inStunScore) * class'NiceSkillSharpshooterControl'.default.stunMultiplier);
|
||||
}
|
||||
return inStunScore;
|
||||
}
|
||||
static function float GetReloadSpeedModifierStatic(KFPlayerReplicationInfo KFPRI, class<KFWeapon> Other){
|
||||
local float reloadMult;
|
||||
//local float reloadScale;
|
||||
|
|
@ -46,15 +57,15 @@ static function float GetReloadSpeedModifierStatic(KFPlayerReplicationInfo KFPRI
|
|||
reloadMult = 1.0;
|
||||
if(nicePlayer != none)
|
||||
nicePawn = NiceHumanPawn(nicePlayer.pawn);
|
||||
if(nicePlayer != none && nicePawn != none && class'NiceVetSharpshooter'.static.hasSkill(nicePlayer, class'NiceSkillSharpshooterHardWork')){
|
||||
if(nicePlayer != none && nicePawn != none && class'NiceVetSharpshooter'.static.hasSkill(nicePlayer, class'NiceSkillSharpshooterControl')){
|
||||
//reloadScale = VSize(nicePlayer.pawn.velocity) / nicePlayer.pawn.groundSpeed;
|
||||
//reloadScale = 1.0 - reloadScale;
|
||||
if(nicePawn.calibrationScore >= 3)
|
||||
calibratedReloadBonus = class'NiceSkillSharpshooterHardWork'.default.reloadBonus;
|
||||
calibratedReloadBonus = class'NiceSkillSharpshooterControl'.default.reloadBonus;
|
||||
else if(nicePawn.calibrationScore == 2)
|
||||
calibratedReloadBonus = 0.5f * class'NiceSkillSharpshooterHardWork'.default.reloadBonus;
|
||||
calibratedReloadBonus = 0.5f * class'NiceSkillSharpshooterControl'.default.reloadBonus;
|
||||
else
|
||||
calibratedReloadBonus = 0.25f * class'NiceSkillSharpshooterHardWork'.default.reloadBonus;
|
||||
calibratedReloadBonus = 0.25f * class'NiceSkillSharpshooterControl'.default.reloadBonus;
|
||||
reloadMult *= 1.0 + calibratedReloadBonus;
|
||||
}
|
||||
if( nicePlayer != none && nicePlayer.abilityManager != none
|
||||
|
|
@ -73,13 +84,13 @@ static function float GetFireSpeedModStatic(KFPlayerReplicationInfo KFPRI, class
|
|||
fireRateMult = 1.0;
|
||||
if(nicePlayer != none)
|
||||
nicePawn = NiceHumanPawn(nicePlayer.pawn);
|
||||
if(nicePawn != none && class'NiceVetSharpshooter'.static.hasSkill(NicePlayerController(KFPRI.Owner), class'NiceSkillSharpshooterHardWork')){
|
||||
if(nicePawn != none && class'NiceVetSharpshooter'.static.hasSkill(NicePlayerController(KFPRI.Owner), class'NiceSkillSharpshooterControl')){
|
||||
if(nicePawn.calibrationScore >= 3)
|
||||
calibratedFireSpeedBonus = class'NiceSkillSharpshooterHardWork'.default.fireRateBonus;
|
||||
calibratedFireSpeedBonus = class'NiceSkillSharpshooterControl'.default.fireRateBonus;
|
||||
else if(nicePawn.calibrationScore == 2)
|
||||
calibratedFireSpeedBonus = (2.0f/3.0f) * class'NiceSkillSharpshooterHardWork'.default.fireRateBonus;
|
||||
calibratedFireSpeedBonus = (2.0f/3.0f) * class'NiceSkillSharpshooterControl'.default.fireRateBonus;
|
||||
else
|
||||
calibratedFireSpeedBonus = (1.0f/3.0f) * class'NiceSkillSharpshooterHardWork'.default.fireRateBonus;
|
||||
calibratedFireSpeedBonus = (1.0f/3.0f) * class'NiceSkillSharpshooterControl'.default.fireRateBonus;
|
||||
fireRateMult *= 1.0f + calibratedFireSpeedBonus;
|
||||
}
|
||||
if( nicePlayer != none && nicePlayer.abilityManager != none
|
||||
|
|
@ -93,8 +104,8 @@ static function float ModifyRecoilSpread(KFPlayerReplicationInfo KFPRI, WeaponFi
|
|||
if(KFPRI != none)
|
||||
nicePlayer = NicePlayerController(KFPRI.Owner);
|
||||
Recoil = 1.0;
|
||||
if(HasSkill(NicePlayerController(KFPRI.Owner), class'NiceSkillSharpshooterHardWork'))
|
||||
Recoil = class'NiceSkillSharpshooterHardWork'.default.recoilMult;
|
||||
if(HasSkill(NicePlayerController(KFPRI.Owner), class'NiceSkillSharpshooterControl'))
|
||||
Recoil = class'NiceSkillSharpshooterControl'.default.recoilMult;
|
||||
if( nicePlayer != none && nicePlayer.abilityManager != none
|
||||
&& nicePlayer.abilityManager.IsAbilityActive(class'NiceSkillSharpshooterGunslingerA'.default.abilityID))
|
||||
Recoil = 0;
|
||||
|
|
@ -131,12 +142,12 @@ defaultproperties
|
|||
{
|
||||
bNewTypePerk=True
|
||||
SkillGroupA(0)=Class'NicePack.NiceSkillSharpshooterKillConfirmed'
|
||||
SkillGroupA(1)=Class'NicePack.NiceSkillSharpshooterTalent'
|
||||
SkillGroupA(1)=Class'NicePack.NiceSkillSharpshooterDamage'
|
||||
SkillGroupA(2)=Class'NicePack.NiceSkillSharpshooterDieAlready'
|
||||
SkillGroupA(3)=Class'NicePack.NiceSkillSharpshooterReaperA'
|
||||
SkillGroupA(4)=Class'NicePack.NiceSkillSharpshooterZEDAdrenaline'
|
||||
SkillGroupB(0)=Class'NicePack.NiceSkillSharpshooterSurgical'
|
||||
SkillGroupB(1)=Class'NicePack.NiceSkillSharpshooterHardWork'
|
||||
SkillGroupB(1)=Class'NicePack.NiceSkillSharpshooterControl'
|
||||
SkillGroupB(2)=Class'NicePack.NiceSkillSharpshooterArdour'
|
||||
SkillGroupB(3)=Class'NicePack.NiceSkillSharpshooterGunslingerA'
|
||||
SkillGroupB(4)=Class'NicePack.NiceSkillSharpshooterZEDHundredGauntlets'
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
class NiceSkillSharpshooterControl extends NiceSkill
|
||||
abstract;
|
||||
|
||||
var float zoomBonus;
|
||||
var float zoomSpeedBonus;
|
||||
var float reloadBonus;
|
||||
var float fireRateBonus;
|
||||
var float recoilMult;
|
||||
var float stunMultiplier;
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
zoomBonus=1.0//0.750000
|
||||
zoomSpeedBonus=1.0//0.500000
|
||||
ReloadBonus=0.2500000
|
||||
fireRateBonus=0.1500000
|
||||
recoilMult=0.500000
|
||||
stunMultiplier=2.0
|
||||
SkillName="Control"
|
||||
SkillEffects="Twice as much stun power, reload up to 25% faster, shoot up to 15% faster and recoil only for half as much."
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
class NiceSkillSharpshooterDamage extends NiceSkill
|
||||
abstract;
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
SkillName="Damage"
|
||||
SkillEffects="You gain additional up to 30% headshot damage bonus."
|
||||
}
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
class NiceSkillSharpshooterHardWork extends NiceSkill
|
||||
abstract;
|
||||
var float zoomBonus;
|
||||
var float zoomSpeedBonus;
|
||||
var float reloadBonus;
|
||||
var float fireRateBonus;
|
||||
var float recoilMult;
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
zoomBonus=0.750000
|
||||
zoomSpeedBonus=0.500000
|
||||
ReloadBonus=0.500000
|
||||
fireRateBonus=0.300000
|
||||
recoilMult=0.500000
|
||||
SkillName="Hard work"
|
||||
SkillEffects="Reload up to 50% faster, shoot up to 30% faster and recoil only for half as much. Additionally, you can switch to/from iron sights twice as fast and zoom 25% further while crouched."
|
||||
}
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
class NiceSkillSharpshooterTalent extends NiceSkill
|
||||
abstract;
|
||||
|
||||
defaultproperties
|
||||
{
|
||||
SkillName="Talent"
|
||||
SkillEffects="You gain additional up to 30% headshot damage bonus."
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue