Counter Strike Online Wiki
Advertisement

This module contains functionality for scripts that run together on both the client and server.

It can be used in the script file registered in the game array and ui array of project.json at the same time.

Functions[]

GetWeaponOption (weaponid)[]

Get the WeaponOption class for a particular weapon
Parameters:
  • weaponid: (Common.Weapon)
Returns:
  • (Common.WeaponOption) weaponOption

UseWeaponInven (value)[]

Using the weapon inventory function
Parameters:
  • value: (bool) on/off

SetSaveCurrentWeapons (value)[]

Set to save currently equipped weapons
Parameters:
  • value: (bool) on/off

SetSaveWeaponInven (value)[]

Set to save weapon inventory content (UseWeaponInven must be set first)
Parameters:
  • value: (bool) on/off

SetAutoLoad (value)[]

The saved information is automatically loaded.
Parameters:
  • value: (bool) on/off

DisableWeaponParts (value)[]

Weapon parts disabled
Parameters:
  • value: (bool) on/off

DisableWeaponEnhance (value)[]

Disable weapon strengthening function
Parameters:
  • value: (bool) on/off

DontGiveDefaultItems (value)[]

Do not provide basic weapons at the start of the game
Parameters:
  • value: (bool) on/off

DontCheckTeamKill (value)[]

Team kills are still considered normal
Parameters:
  • value: (bool) on/off

UseScenarioBuymenu (value)[]

Makes the store use the scenario store window
Parameters:
  • value: (bool) on/off

SetNeedMoney (value)[]

Make sure you need money when buying a gun
Parameters:
  • value: (bool) on/off

UseAdvancedMuzzle (value)[]

Draw a muzzle effect in a new shape on launch. Scale does not apply
Parameters:
  • value: (bool) on/off

SetMuzzleScale (value)[]

Fixed muzzle effect size on launch
Parameters:
  • value: (number) scale

SetBloodScale (value)[]

Fixed the effect size when hit
Parameters:
  • value: (number) scale

SetGunsparkScale (value)[]

Corrected the effect size when the bullet hit the wall
Parameters:
  • value: (number) scale

SetHitboxScale (value)[]

Modify hitbox size
Parameters:
  • value: (number) scale

SetMouseoverOutline (value, color)[]

When you hover over an entity such as a monster, the outline is visible.
Parameters:
  • value: (bool) on/off
  • color: (color) overline

SetUnitedPrimaryAmmoPrice (price)[]

Uniform price per magazine for all major weapons
Parameters:
  • price: (int) price

SetUnitedSecondaryAmmoPrice (price)[]

Uniform price per magazine for all secondary weapons
Parameters:
  • price: (int) price

SetBuymenuWeaponList (list)[]

Store weapon list setting (UseScenarioBuymenu setting required)
Parameters:
  • list: (table) weapon list

Tables[]

Weapons[]

Weapons created and editable in scripts
Fields:
  • P228: P228
  • Scout: Scout
  • XM1014: XM1014 automatic shotgun
  • MAC10: MAC-10
  • AUG: AUG
  • DualBeretta: Dual Beretta
  • FiveSeven: Five-Seven
  • UMP45: UMP45
  • SG550Commando: SG550 Commando
  • Galil: galril
  • FAMAS: Pharma
  • USP45: USP45
  • Glock18C: Glock 18C
  • AWP: AWP
  • MP5: MP5
  • M249: M249
  • M3: M3
  • M4A1: M4A1
  • TMP: TMP
  • G3SG1: G3/SG-1
  • DesertEagle50C: Desert Eagle 50C
  • SG552: SG552
  • AK47: AK-47
  • P90: P90
  • SCAR: SCAR
  • USAS12: USAS12
  • QBB95: QBB95
  • MG3: MG3
  • DualMP7A1: dual MP7A1
  • AK47Custom: AK47 custom
  • DesertEagle50CGold: Desert Eagle 50C Gold Edition
  • WinchesterM1887: Winchester M1887
  • M134Minigun: M134 minigun
  • F2000: F2000
  • WinchesterM1887Gold: Winchester M1887 Gold Edition
  • LightningAR1: LightningAR-1
  • M24: M24
  • DualInfinity: Dual Infinity
  • DualInfinityCustom: Dual Infinity Custom
  • QBB95AdditionalMag: QBB95 + Extra magazine
  • MP7A1ExtendedMag: MP7A1 Extended Magazine
  • SawedOffM79: M79 Sword Off
  • DualInfinityFinal: Dual InfinityFinal
  • Crossbow: Crossbow
  • USAS12CAMO: USAS12 CAMO
  • DoubleBarrelShotgun: Double Barrel Shotgun
  • KrissSuperV: Chris Super V
  • TAR21: TAR-21
  • BarrettM95: Barrett M95
  • DualKriss: Dual Chris
  • AN94: AN94
  • M16A4: M16A4
  • P90Lapin: P90 Lapin
  • Volcano: Volcano
  • MG36: MG36
  • Salamander: Salamander
  • LightningSG1: Lightning SG-1
  • Tempest: Tempest
  • BlackDragonCannon: Black Dragon Cannon
  • TMPDragon: TMP Dragon
  • MK48: MK48
  • FNFNC: FN FNC
  • L85A2: L85A2
  • AKM: AKM
  • HK416: HK416
  • LightningAR2: LightningAR-2
  • Ethereal: Ethereal
  • M32MGL: M32 MGL
  • BALROGVII: BALROG-VII
  • OICW: OICW
  • TripleBarrelShotgun: Triple Barrel Shotgun
  • Ripper: Ripper
  • K3: K3
  • Needler: Needler
  • SKULL4: SKULL-4
  • BALROGXI: BALROG-XI
  • AK74U: AK74U
  • PlasmaGun: Plasma Gun
  • Leviathan: Leviathan
  • UTS15PinkGold: UTS-15 pink gold
  • CompoundBow: Compound Bow
  • ARX160: ARX-160
  • GaeBolg: Gae bolg
  • Cyclone: Cyclone
  • SPAS12Maverick: SPAS12 Maverick
  • Aeolis: Aeolis
  • PetrolBoomer: Petrol Boomer
  • RailCannon: Rail Cannon
  • Eruptor: Mortar
  • Slasher: Slasher
  • RPG7: RPG-7
  • Guillotine: Guillotine
  • CrossbowAdvance: Crossbow Advance
  • FireVulcan: Fire Balkans
  • JackHammer: Jack Hammer
  • Coilgun: Coilgun
  • DualUZI: Dual UZI
  • LaserMinigun: Laser Minigun
  • M4A1DarkKnight: M4A1 Dark Knight
  • AK47Paladin: AK47 Paladin
  • AttackM950: Attack M950
  • MagnumDrill: Magnum Drill
  • DesertEagleCrimsonHunter: Desert Eagle Crimson Hunter
  • FlameJackhammer: Flame Jack Hammer
  • SG552Lycanthrope: SG552 Lycanthrope
  • BroadDivine: Broad Divine
  • PythonDesperado: Python Desperado
  • CHARGER7: CHARGER-7
  • BOUNCER: BOUNCER
  • StunRifle: Stun Rifle
  • DualBerettaGunslinger: Dual Beretta Gunslinger
  • M249Phoenix: M249 Phoenix
  • StarChaserAR: StarChaser AR
  • M32MGLVenom: M32 MGL Venom
  • MG3CSOGSEdition: MG3 10th Edition
  • ThunderGhostWalker: Thunder Ghost Walker
  • Stinger: Stinger
  • InfinityLaserFist: Infinity Laser Fist
  • ShiningHeartRod: Shining Heart Rod

Colors[]

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

Class[]

WeaponOption[]

Set the combined stats for each weapon type. For example, if you modify the WeaponOption of AK-47, the modified stats will be reflected to all AK-47 used in the game.
  • WeaponOption: (Common.WeaponOption)

Advertisement