We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28a80ab commit 5b10e5eCopy full SHA for 5b10e5e
pkg/demoinfocs/common/equipment.go
@@ -444,6 +444,18 @@ func (e *Equipment) RecoilIndex() float32 {
444
return val.Float()
445
}
446
447
+// Silenced returns true if weapon is silenced.
448
+func (e *Equipment) Silenced() bool {
449
+ // If entity is nil returns false.
450
+ if e.Entity == nil {
451
+ return false
452
+ }
453
+
454
+ prop := e.Entity.Property("m_bSilencerOn")
455
456
+ return prop.Value().BoolVal()
457
+}
458
459
// NewEquipment creates a new Equipment and sets the UniqueID.
460
//
461
// Intended for internal use only.
0 commit comments