You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
795 B
25 lines
795 B
1 month ago
|
using GAS.Runtime;
|
||
|
|
||
|
namespace CoreGame.Render
|
||
|
{
|
||
|
public class GEComponent_FillAmmoStopReload : GameplayEffectComponent
|
||
|
{
|
||
|
public override void OnGameplayEffectExecuted(GameplayEffectComponentSpec partSelf, GameplayEffectSpec GESpec)
|
||
|
{
|
||
|
var owner = GESpec.Owner.owner;
|
||
|
if (owner.hasEquips)
|
||
|
{
|
||
|
var holdGun = owner.equips.GetHoldGunEntity();
|
||
|
if (holdGun.IsValid() && holdGun.hasReload)
|
||
|
{
|
||
|
var gc = holdGun.gunData;
|
||
|
if (owner.isLocalPlayer)
|
||
|
{
|
||
|
CoreUIBridge.CoreGamePushGunReload(gc.slotId, false);
|
||
|
}
|
||
|
holdGun.RemoveReload();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|