| 
| enum   | ActionType { Automatic = 0
, SemiAutomatic
, Pump
, Bow
 } | 
|   | 
| enum   | BowType { Normal = 0
, Timeout
, Accuracy
 } | 
|   | 
 | 
| 
void  | WriteCreateData (BitPacker cd) | 
|   | 
| 
void  | ReadCreateData (BitPacker cd) | 
|   | 
| 
bool  | IsReady () | 
|   | 
| 
bool  | CanFire () | 
|   | 
| 
void  | Fire (Vector2 origin, float velocity, float angle, Vector2 addVelocity, Vector2 aim, bool crouched) | 
|   | 
| 
void  | SetBinkTime () | 
|   | 
| 
void  | SetSelfBinkTime () | 
|   | 
| 
float  | GetDynamicSpray () | 
|   | 
| 
bool  | IsMuzzleCollided () | 
|   | 
| 
void  | Reload () | 
|   | 
| 
bool  | IsReloading () | 
|   | 
| 
bool  | IsReloadingPaused () | 
|   | 
| 
bool  | ShouldReload () | 
|   | 
| 
void  | ResetClip () | 
|   | 
| 
void  | CancelReload () | 
|   | 
| 
void  | PauseReload () | 
|   | 
| 
void  | ResumeReload () | 
|   | 
| 
bool  | CanReload () | 
|   | 
| 
bool  | IsUsed () | 
|   | 
| 
void  | ClipOutStart () | 
|   | 
| 
void  | ClipInStart () | 
|   | 
| 
void  | BulletInStart () | 
|   | 
| 
void  | ReleasedTrigger () | 
|   | 
| 
void  | ReleaseTrigger (Vector2 origin, float velocity, float angle, Vector2 addVelocity, Vector2 aim) | 
|   | 
| 
float  | GetReloadingTimeRemaining () | 
|   | 
| 
int  | GetAmmoCount () | 
|   | 
| 
float  | GetFireIntervalPercent () | 
|   | 
| 
bool  | IsTriggerReleased () | 
|   | 
| override bool  | SendPump (BitPacker state) | 
|   | 
| override void  | ReceivePump (BitPacker state) | 
|   | 
| override void  | DebugLog () | 
|   | 
| 
void  | SetOutlineColor (Color color) | 
|   | 
| 
void  | SetOutlineSize (float size) | 
|   | 
  Public Member Functions inherited from StandardPump | 
| override bool  | UpdateIsMine () | 
|   | 
| 
virtual bool  | UpdateIsMine () | 
|   | 
| 
bool  | IsMine () | 
|   | 
| 
virtual bool  | SendPump (BitPacker packer) | 
|   | 
| 
virtual void  | ReceivePump (BitPacker packer) | 
|   | 
| 
virtual bool  | SendPumps (BitPacker packer) | 
|   | 
| 
virtual bool  | ReceivePumps (BitPacker packer) | 
|   | 
| 
virtual void  | DebugLog () | 
|   | 
| 
void  | SetOwner (ushort id) | 
|   | 
 | 
| 
static bool  | IsWeapon (GameObject gameObject) | 
|   | 
| 
static bool  | IsWeapon (Item item) | 
|   | 
 | 
| 
GameObject  | bulletPrefab | 
|   | 
| 
Transform  | muzzle | 
|   | 
| 
Transform  | handle | 
|   | 
| 
Transform  | barrel | 
|   | 
| 
Transform  | flash | 
|   | 
| 
Transform  | flashLight | 
|   | 
| 
float  | weaponLength | 
|   | 
| 
ActionType  | action = ActionType.Automatic | 
|   | 
| 
ObscuredFloat  | muzzleVelocity = 10.0f | 
|   | 
| 
ObscuredFloat  | fireIntervalSecs = 0.3f | 
|   | 
| 
ObscuredFloat  | bulletDamage = 0.1f | 
|   | 
| 
ObscuredFloat  | bulletForce = 50.0f | 
|   | 
| 
float  | bulletFlagForce = 50.0f | 
|   | 
| 
ObscuredFloat  | bulletForceUpwardsPercent = 0.0f | 
|   | 
| 
ObscuredBool  | bulletForceOnlyDead = true | 
|   | 
| 
ObscuredFloat  | bulletKnockOut = 0.75f | 
|   | 
| 
ObscuredFloat  | bulletKickBack = 10.0f | 
|   | 
| 
ObscuredFloat  | massAdd = 0.0f | 
|   | 
| 
ObscuredFloat  | camShake = 0.3f | 
|   | 
| 
ObscuredFloat  | startUpSecs = 0.0f | 
|   | 
| 
float  | bulletTimeOutSecs = 1.0f | 
|   | 
| 
float  | bulletGravity = 1.0f | 
|   | 
| 
float  | bulletDamp = 1.0f | 
|   | 
| 
float  | bulletMass = 1.0f | 
|   | 
| 
float  | bulletRicochetCoef = -0.2f | 
|   | 
| 
float  | bulletTrailTime = 1.0f | 
|   | 
| 
float  | trailTrailWidth = 1.0f | 
|   | 
| 
float  | headModifier = 1.0f | 
|   | 
| 
float  | torsoModifier = 1.0f | 
|   | 
| 
float  | legsModifier = 1.0f | 
|   | 
| 
Gradient  | bulletGradient | 
|   | 
| 
ObscuredFloat  | sprayPercent = 0.0f | 
|   | 
| 
float  | movementSprayPercent = 0.0f | 
|   | 
| 
float  | binkSecs = 0.0f | 
|   | 
| 
float  | selfBinkSecs = 0.0f | 
|   | 
| 
float  | selfBinkCoolSecs = 0.0f | 
|   | 
| 
float  | cursorBink = 0.0f | 
|   | 
| 
float  | cursorBinkCooldown = 0.0f | 
|   | 
| 
float  | flashSecs = 0.1f | 
|   | 
| 
ObscuredInt  | bulletsInShot = 1 | 
|   | 
| 
ObscuredFloat  | inheritedVelocityMuliplier = 0.5f | 
|   | 
| 
BowType  | bowType = BowType.Normal | 
|   | 
| 
bool  | bowAnimation = false | 
|   | 
| 
ObscuredFloat  | bowFullSecs = 0f | 
|   | 
| 
ObscuredFloat  | bowMinStrength = 0f | 
|   | 
| 
ObscuredFloat  | bowStrengthMultiplier = 1f | 
|   | 
| 
bool  | bowLoadArrow = false | 
|   | 
| 
float  | bulletOriginOffset = 0.0f | 
|   | 
| 
bool  | guided = false | 
|   | 
| 
float  | penetration = 0f | 
|   | 
| 
float  | overheatSecs = 0.0f | 
|   | 
| 
float  | overheatCooldown = 0.0f | 
|   | 
| 
int  | ammoCount = 9999999 | 
|   | 
| 
Transform  | clip | 
|   | 
| 
ObscuredInt  | clipCount = 30 | 
|   | 
| 
bool  | startLoaded = true | 
|   | 
| 
ObscuredInt  | ammo = 0 | 
|   | 
| 
ObscuredFloat  | reloadSecs = 3.0f | 
|   | 
| 
float  | reloadTime | 
|   | 
| 
float  | rifleCoef = 0.0f | 
|   | 
| 
float  | recoilCoef = 0.0f | 
|   | 
| 
ObscuredFloat  | fireTime | 
|   | 
| 
ObscuredFloat  | triggerTime | 
|   | 
| 
LayerMask  | muzzleCollisionLayer = 0 | 
|   | 
| 
ParticleSystem  | shells | 
|   | 
| 
WeaponEvent  | fireEvent | 
|   | 
| 
WeaponEvent  | reloadedEvent | 
|   | 
| 
WeaponEvent  | beforeDropClipEvent | 
|   | 
| 
WeaponEvent  | afterDropClipEvent | 
|   | 
| 
StandardBulletEvent  | bulletEvent | 
|   | 
| 
bool  | locked | 
|   | 
| 
Collider2D  | col | 
|   | 
| 
Rigidbody2D  | body | 
|   | 
| 
GlowObject  | glow | 
|   | 
| 
string  | soundPrefix | 
|   | 
| 
string  | bowDrawSound = "" | 
|   | 
| 
string  | fireReadySound = "" | 
|   | 
| 
float  | fireReadySoundAdvance | 
|   | 
| 
Vector3  | muzzleFlashPos | 
|   | 
| 
GameObject  | crate | 
|   | 
| 
ParticleSystem  | overheatSmoke | 
|   | 
  Public Attributes inherited from StandardPump | 
| 
StandardObject  | standard | 
|   | 
| 
Controls  | controls | 
|   | 
| 
Item  | item | 
|   | 
| 
bool  | isMine | 
|   | 
| 
ushort  | ownerId | 
|   | 
| 
float  | timeSinceCreated | 
|   | 
| 
bool  | relay | 
|   | 
| 
PumpObject[]  | pumpObjects | 
|   | 
 | 
| 
static bool  | BULLETS_POOLED = false | 
|   | 
 | 
| override void  | Awake () | 
|   | 
| override void  | Start () | 
|   | 
| override void  | OnDestroy () | 
|   | 
| override void  | Awake () | 
|   | 
| 
void  | Initialize () | 
|   | 
| virtual void  | Awake () | 
|   | 
| 
virtual void  | Start () | 
|   | 
| 
virtual void  | OnDestroy () | 
|   | 
| 
virtual bool  | IsLocalAuthority () | 
|   | 
| 
int  | ReadPingCheck (BitPacker packer, bool isLocal) | 
|   | 
| 
void  | WritePingCheck (BitPacker packer, bool isLocal) | 
|   | 
 | 
| 
Dictionary< byte, long >  | stateTimes = new Dictionary<byte, long>() | 
|   | 
| 
byte  | state | 
|   | 
| 
byte  | lastGotState | 
|   | 
◆ Awake()
  
  
      
        
          | override void Weapon.Awake  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotectedvirtual   | 
  
 
 
◆ DebugLog()
  
  
      
        
          | override void Weapon.DebugLog  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ OnDestroy()
  
  
      
        
          | override void Weapon.OnDestroy  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotectedvirtual   | 
  
 
 
◆ ReceivePump()
  
  
      
        
          | override void Weapon.ReceivePump  | 
          ( | 
          BitPacker  | 
          state | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ SendPump()
  
  
      
        
          | override bool Weapon.SendPump  | 
          ( | 
          BitPacker  | 
          state | ) | 
           | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ Start()
  
  
      
        
          | override void Weapon.Start  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineprotectedvirtual   | 
  
 
 
The documentation for this class was generated from the following file:
- C:/Transhuman/S2/Assets/Engine/Standard/Weapon/Weapon.cs