Counter Strike Online Wiki
Advertisement

Weapon Options Object

Tables[]

Common.WeaponOption.color[]

Color type
Fields:
  • r: (int) red color (0 ~ 255)
  • g: (int) green color (0 ~ 255)
  • b: (int) blue color (0 ~ 255)

Fields[]

Common.WeaponOption.weaponid[]

Gets the weapon type that is pointing.

Common.WeaponOption.user[]

A table that can store arbitrary data.

Common.WeaponOption.price[]

Weapon purchase price (requires Common.SetNeedMoney setting)
  • price: (int)

Common.WeaponOption.damage[]

Damage multiplier (both multiplied if set with Game.Weapon class)
  • damage: (number)

Common.WeaponOption.penetration[]

Penetration power magnification
  • penetration: (number)

Common.WeaponOption.rangemod[]

Magnification for damage attenuation rate over distance
  • rangemod: (number)

Common.WeaponOption.cycletime[]

CS speed multiplier
  • cycletime: (number)

Common.WeaponOption.reloadtime[]

Loading speed multiplier
  • reloadtime: (number)

Common.WeaponOption.accuracy[]

Accuracy magnification
  • accuracy: (number)

Common.WeaponOption.spread[]

Magnification for the degree of inaccuracy when performing an action
  • spread: (number)

Methods[]

Common.WeaponOption: SetBulletColor (color)[]

When the gun is fired, the firing path of the specified color is displayed.
Parameters:
Advertisement