Hardcoded classes removed #8
1 changed files with 24 additions and 0 deletions
GetAmmoMulti Instigator accessed none fix
commit
f93d1d4761
|
|
@ -1578,6 +1578,30 @@ simulated function 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
|
||||
{
|
||||
recordedZoomTime=-1.000000
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue