public bool UpdateVisiblity_Invis() { if (this.currentVisState == HeldEntity.heldEntityVisState.Invis) { return(false); } this.currentVisState = HeldEntity.heldEntityVisState.Invis; this.SetParent((BaseEntity)this.GetOwnerPlayer(), this.GetBone(this.handBone), false, false); this.limitNetworking = true; this.SetFlag(BaseEntity.Flags.Disabled, true, false, true); return(true); }
public bool UpdateVisibility_Hand() { if (this.currentVisState == HeldEntity.heldEntityVisState.Hand) { return(false); } this.currentVisState = HeldEntity.heldEntityVisState.Hand; base.limitNetworking = false; base.SetFlag(BaseEntity.Flags.Disabled, false, false, true); base.SetParent(this.GetOwnerPlayer(), this.GetBone(this.handBone), false, false); return(true); }
public bool UpdateVisiblity_Holster() { if (this.currentVisState == HeldEntity.heldEntityVisState.Holster) { return(false); } this.currentVisState = HeldEntity.heldEntityVisState.Holster; this.limitNetworking = false; this.SetFlag(BaseEntity.Flags.Disabled, false, false, true); this.SetParent((BaseEntity)this.GetOwnerPlayer(), this.GetBone(this.holsterInfo.holsterBone), false, false); this.SetLightsOn(false); return(true); }