stop spawning meanrep info

This commit is contained in:
Shtoyan 2022-01-23 17:11:38 +04:00
parent 45d331ab09
commit 6f460b93f2
2 changed files with 1 additions and 14 deletions

View File

@ -468,7 +468,6 @@ simulated function bool CheckReplacement(Actor Other, out byte bSuperRelevant){
local NicePlayerController playerContr;
local NiceRepInfoRemoteData remoteRI;
local NiceReplicationInfo niceRI;
local MeanReplicationInfo meanRI;
local PlayerReplicationInfo pri;
// Replace loot on levels
if(Other.class == class'KFRandomItemSpawn' || Other.class == class'ScrnRandomItemSpawn'){
@ -493,8 +492,6 @@ simulated function bool CheckReplacement(Actor Other, out byte bSuperRelevant){
niceRI = spawn(class'NiceReplicationInfo', pri.Owner);
niceRI.Mut = self;
remoteRI = spawn(class'NiceRepInfoRemoteData', pri.Owner);
meanRI = spawn(class'MeanReplicationInfo', pri.Owner);
meanRI.ownerPRI = pri;
playerContr = NicePlayerController(PlayerReplicationInfo(Other).Owner);
playerContr.niceRI = niceRI;
playerContr.remoteRI = remoteRI;

View File

@ -32,7 +32,7 @@ event Timer()
maxBleedCount--;
bleedDamage = calcBleedDamage();
bleedDamage = bleedLevel * 7;
if (bleedDamage < 1.0)
{
maxBleedCount = 0;
@ -53,16 +53,6 @@ event Timer()
}
// Returns bleed damage, corresponding to given bleed level and damage scale.
// Rand(7) should be used as a scale.
// Separate function created to allow for lowest/highest damage value computing.
final private function int calcBleedDamage()
{
return bleedLevel * 7;
}
// cleanup
function Destroyed()
{