예제 #1
0
 public bool UpdateVisibility_GenericVis()
 {
     if (currentVisState == heldEntityVisState.GenericVis)
     {
         return(false);
     }
     currentVisState      = heldEntityVisState.GenericVis;
     base.limitNetworking = false;
     SetFlag(Flags.Disabled, false);
     return(true);
 }
예제 #2
0
 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);
 }
예제 #3
0
 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);
 }
예제 #4
0
 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);
 }