From 6f460b93f2ff6ccff595cdb31b63108eb2a8ba92 Mon Sep 17 00:00:00 2001 From: Shtoyan Date: Sun, 23 Jan 2022 17:11:38 +0400 Subject: [PATCH] stop spawning meanrep info --- sources/NicePack.uc | 3 --- sources/Zeds/Mean/MeanBleedInventory.uc | 12 +----------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/sources/NicePack.uc b/sources/NicePack.uc index eefb7b6..97e3f38 100644 --- a/sources/NicePack.uc +++ b/sources/NicePack.uc @@ -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; diff --git a/sources/Zeds/Mean/MeanBleedInventory.uc b/sources/Zeds/Mean/MeanBleedInventory.uc index 29736bd..c3b813d 100644 --- a/sources/Zeds/Mean/MeanBleedInventory.uc +++ b/sources/Zeds/Mean/MeanBleedInventory.uc @@ -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() {