Hardcoded classes removed #8
@ -1578,6 +1578,30 @@ simulated function Destroyed(){
|
|||||||
super(KFWeapon).Destroyed();
|
super(KFWeapon).Destroyed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
simulated function float GetAmmoMulti()
|
||||||
|
{
|
||||||
|
if (NextAmmoCheckTime > Level.TimeSeconds)
|
||||||
|
{
|
||||||
|
return LastAmmoResult;
|
||||||
|
}
|
||||||
|
|
||||||
|
NextAmmoCheckTime = Level.TimeSeconds + 1;
|
||||||
|
|
||||||
|
// Instigator accessed none fix
|
||||||
|
if (FireMode[0] != none && FireMode[0].AmmoClass != none && Instigator != none && KFPlayerReplicationInfo(Instigator.PlayerReplicationInfo) != none &&
|
||||||
|
KFPlayerReplicationInfo(Instigator.PlayerReplicationInfo).ClientVeteranSkill != none )
|
||||||
|
{
|
||||||
|
LastAmmoResult = KFPlayerReplicationInfo(Instigator.PlayerReplicationInfo).ClientVeteranSkill.static.AddExtraAmmoFor(KFPlayerReplicationInfo(Instigator.PlayerReplicationInfo), FireMode[0].AmmoClass);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LastAmmoResult = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return LastAmmoResult;
|
||||||
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
{
|
{
|
||||||
recordedZoomTime=-1.000000
|
recordedZoomTime=-1.000000
|
||||||
|
Loading…
Reference in New Issue
Block a user