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