Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- simulated function ConsumePowerPool(float DeltaTime)
- {
- local TrPawn trP;
- local TrPlayerReplicationInfo TrPRI;
- local TrValueModifier VM;
- local float VMMultiplier;
- VMMultiplier = 1.0;
- trP = TrPawn(Instigator);
- if (trP != none)
- {
- // Apply skill/perk.
- TrPRI = trP.GetTribesReplicationInfo();
- if( TrPRI != none )
- {
- VM = TrPRI.GetCurrentValueModifier();
- if( VM != none )
- {
- VMMultiplier = 1.0 - VM.m_fPackEnergyCostBuffPct;
- }
- }
- TrP.ConsumePowerPool(GetPowerPool(trp) * DeltaTime * VMMultiplier);
- TrP.SyncClientCurrentPowerPool();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement