Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function(e, t, i) {
- "use strict";
- e.exports = {
- Action: {
- None: 0,
- Reload: 1,
- UseItem: 2,
- Revive: 3
- },
- WeaponSlot: {
- Primary: 0,
- Secondary: 1,
- Throwable: 2,
- Melee: 3,
- Count: 4
- },
- WeaponType: ["gun", "gun", "throwable", "melee"],
- DamageType: {
- Player: 0,
- Bleeding: 1,
- Gas: 2
- },
- Anim: {
- None: 0,
- Melee: 1,
- Cook: 2,
- Throw: 3,
- CrawlForward: 4,
- CrawlBackward: 5,
- Revive: 6
- },
- GasMode: {
- Inactive: 0,
- Waiting: 1,
- Moving: 2
- },
- protocolVersion: 18,
- map: {
- baseWidth: 512,
- baseHeight: 512,
- gridSize: 16,
- shoreDivisions: 64,
- shoreInset: 32,
- shoreVariation: 3,
- grassInset: 18,
- grassVariation: 2,
- extension: 80
- },
- gas: {
- initWaitTime: 90,
- waitTimeDecay: 15,
- waitTimeMin: 10,
- initGasTime: 30,
- gasTimeDecay: 5,
- gasTimeMin: 5,
- initWidth: .75,
- widthDecay: .5,
- widthMin: 0,
- damageTickRate: 2,
- damagePerTick: [.012, .02, .035, .075, .1, .14, .22, .22]
- },
- player: {
- radius: 1,
- minActiveTime: 10,
- moveSpeed: 12,
- health: 100,
- boostDecay: .33,
- boostMoveSpeed: 2,
- boostHealAmount: .33,
- boostBreakpoints: [1, 1, 1.5, .5],
- scopeDelay: .25,
- baseSwitchDelay: .25,
- freeSwitchCooldown: 1,
- headshotChance: .15,
- img: {
- scale: 1
- },
- spectateDeadTimeout: 2,
- bleedTickRate: 1,
- bleedDamage: 2,
- downedMoveSpeed: 4,
- downedRezMoveSpeed: 2,
- reviveDuration: 8,
- reviveMaxRange: 5,
- reviveHealth: 24,
- crawlTime: .75,
- emoteSoftCooldown: 2,
- emoteHardCooldown: 6,
- emoteThreshold: 6,
- throwableMaxMouseDist: 18,
- cookTime: .1,
- throwTime: .3,
- cookSpeedPenalty: 3,
- waterSpeedPenalty: 3,
- meleeHeight: .25
- },
- teamColors: [16776960, 255, 16711680, 16711935],
- bullet: {
- maxReflect: 3,
- reflectDistDecay: 1.5,
- height: .25
- },
- projectile: {
- maxHeight: 2
- },
- explosions: {
- explosion_frag: {
- damage: 125,
- rad: {
- min: 5,
- max: 12
- },
- shrapnelCount: 12,
- shrapnelType: "shrapnel_frag",
- explosionType: "frag",
- decalType: "decal_frag_explosion"
- },
- explosion_barrel: {
- damage: 125,
- rad: {
- min: 5,
- max: 12
- },
- shrapnelCount: 12,
- shrapnelType: "shrapnel_barrel",
- explosionType: "barrel",
- decalType: "decal_barrel_explosion"
- }
- },
- bullets: {
- bullet_mp5: {
- damage: 11,
- obstacleDamage: 1,
- falloff: .8,
- distance: 100,
- speed: 85,
- variance: 0,
- shrapnel: !1,
- tracerColor: 16704198,
- tracerWidth: .1,
- tracerLength: .8,
- tracerAlpha: 1
- },
- bullet_ak47: {
- damage: 13.5,
- obstacleDamage: 1,
- falloff: .9,
- distance: 200,
- speed: 100,
- variance: 0,
- shrapnel: !1,
- tracerColor: 12965630,
- tracerWidth: .1,
- tracerLength: .8,
- tracerAlpha: 1
- },
- bullet_mosin: {
- damage: 64,
- obstacleDamage: 1.5,
- falloff: .95,
- distance: 500,
- speed: 178,
- variance: 0,
- shrapnel: !1,
- tracerColor: 12965630,
- tracerWidth: .2,
- tracerLength: .8,
- tracerAlpha: 1
- },
- bullet_m39: {
- damage: 24.5,
- obstacleDamage: 1,
- falloff: .9,
- distance: 400,
- speed: 125,
- variance: 0,
- shrapnel: !1,
- tracerColor: 12965630,
- tracerWidth: .1,
- tracerLength: .8,
- tracerAlpha: 1
- },
- bullet_shotgun: {
- damage: 12,
- obstacleDamage: 1,
- falloff: .6,
- speed: 66,
- distance: 29,
- variance: 0,
- shrapnel: !1,
- tracerColor: 16702684,
- tracerWidth: .1,
- tracerLength: .8,
- tracerAlpha: 1
- },
- bullet_m9: {
- damage: 12,
- obstacleDamage: 1,
- falloff: .7,
- speed: 85,
- distance: 100,
- variance: 0,
- shrapnel: !1,
- tracerColor: 16704198,
- tracerWidth: .1,
- tracerLength: .8,
- tracerAlpha: 1
- },
- bullet_ot38: {
- damage: 26,
- obstacleDamage: 1,
- falloff: .75,
- speed: 112,
- distance: 125,
- variance: 0,
- shrapnel: !1,
- tracerColor: 12965630,
- tracerWidth: .09,
- tracerLength: .8,
- tracerAlpha: 1
- },
- bullet_mac10: {
- damage: 9.25,
- obstacleDamage: 1,
- falloff: .6,
- distance: 50,
- speed: 75,
- variance: 0,
- shrapnel: !1,
- tracerColor: 16704198,
- tracerWidth: .1,
- tracerLength: .8,
- tracerAlpha: 1
- },
- bullet_ump9: {
- damage: 15,
- obstacleDamage: 1,
- falloff: .75,
- distance: 100,
- speed: 100,
- variance: 0,
- shrapnel: !1,
- tracerColor: 16704198,
- tracerWidth: .1,
- tracerLength: .8,
- tracerAlpha: 1
- },
- bullet_dp28: {
- damage: 14,
- obstacleDamage: 1.5,
- falloff: .9,
- distance: 225,
- speed: 110,
- variance: 0,
- shrapnel: !1,
- tracerColor: 12965630,
- tracerWidth: .1,
- tracerLength: .8,
- tracerAlpha: 1
- },
- bullet_glock: {
- damage: 9,
- obstacleDamage: 1,
- falloff: .5,
- speed: 70,
- distance: 44,
- variance: 0,
- shrapnel: !1,
- tracerColor: 16704198,
- tracerWidth: .1,
- tracerLength: .8,
- tracerAlpha: 1
- },
- bullet_famas: {
- damage: 17,
- obstacleDamage: 1,
- falloff: .8,
- distance: 150,
- speed: 110,
- variance: 0,
- shrapnel: !1,
- tracerColor: 11141010,
- tracerWidth: .1,
- tracerLength: .8,
- tracerAlpha: 1
- },
- bullet_hk416: {
- damage: 11,
- obstacleDamage: 1,
- falloff: .85,
- distance: 175,
- speed: 105,
- variance: 0,
- shrapnel: !1,
- tracerColor: 11141010,
- tracerWidth: .1,
- tracerLength: .8,
- tracerAlpha: 1
- },
- bullet_mk12: {
- damage: 19.5,
- obstacleDamage: 1,
- falloff: .9,
- distance: 400,
- speed: 132,
- variance: 0,
- shrapnel: !1,
- tracerColor: 11141010,
- tracerWidth: .1,
- tracerLength: .8,
- tracerAlpha: 1
- },
- bullet_m249: {
- damage: 14,
- obstacleDamage: 1.75,
- falloff: .9,
- distance: 220,
- speed: 125,
- variance: 0,
- shrapnel: !1,
- tracerColor: 11141010,
- tracerWidth: .1,
- tracerLength: .8,
- tracerAlpha: 1
- },
- shrapnel_barrel: {
- damage: 20,
- obstacleDamage: 1,
- falloff: 1,
- speed: 20,
- distance: 8,
- variance: 1.5,
- shrapnel: !0,
- tracerColor: 3355443,
- tracerWidth: .125,
- tracerLength: .5,
- tracerAlpha: 1
- },
- shrapnel_frag: {
- damage: 20,
- obstacleDamage: 1,
- falloff: 1,
- speed: 20,
- distance: 8,
- variance: 1.5,
- shrapnel: !0,
- tracerColor: 3355443,
- tracerWidth: .125,
- tracerLength: .5,
- tracerAlpha: 1
- }
- },
- items: {
- outfitBase: {
- name: "Basic Outfit",
- type: "skin",
- subtype: "normal",
- rad: 1,
- skinImg: {
- baseTint: 16566389,
- baseSprite: "img/player/player-base.svg",
- baseScale: 1,
- handTint: 16566389,
- handSprite: "img/player/player-hands.svg"
- },
- lootImg: {
- sprite: "img/loot/loot-shirt-01.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16566389
- },
- sound: {
- pickup: "clothes_pickup_01"
- }
- },
- outfitWoodland: {
- name: "Woodland Combat",
- type: "skin",
- subtype: "normal",
- rad: 1,
- skinImg: {
- baseTint: 2831146,
- baseSprite: "img/player/player-base.svg",
- baseScale: 1,
- handTint: 5925970,
- handSprite: "img/player/player-hands.svg"
- },
- lootImg: {
- sprite: "img/loot/loot-shirt-01.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 2831146
- },
- sound: {
- pickup: "clothes_pickup_01"
- }
- },
- outfitRoyalFortune: {
- name: "Royal Fortune",
- type: "skin",
- subtype: "normal",
- rad: 1,
- skinImg: {
- baseTint: 8333091,
- baseSprite: "img/player/player-base.svg",
- baseScale: 1,
- handTint: 15254058,
- handSprite: "img/player/player-hands.svg"
- },
- lootImg: {
- sprite: "img/loot/loot-shirt-01.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 8333091
- },
- sound: {
- pickup: "clothes_pickup_01"
- }
- },
- outfitKeyLime: {
- name: "Key Lime",
- type: "skin",
- subtype: "normal",
- rad: 1,
- skinImg: {
- baseTint: 13107007,
- baseSprite: "img/player/player-base.svg",
- baseScale: 1,
- handTint: 15662941,
- handSprite: "img/player/player-hands.svg"
- },
- lootImg: {
- sprite: "img/loot/loot-shirt-01.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 13107007
- },
- sound: {
- pickup: "clothes_pickup_01"
- }
- },
- outfitCobaltShell: {
- name: "Cobalt Shell",
- type: "skin",
- subtype: "normal",
- rad: 1,
- skinImg: {
- baseTint: 11095,
- baseSprite: "img/player/player-base.svg",
- baseScale: 1,
- handTint: 2711164,
- handSprite: "img/player/player-hands.svg"
- },
- lootImg: {
- sprite: "img/loot/loot-shirt-01.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 11095
- },
- sound: {
- pickup: "clothes_pickup_01"
- }
- },
- outfitCarbonFiber: {
- name: "Carbon Fiber",
- type: "skin",
- subtype: "normal",
- rad: 1,
- skinImg: {
- baseTint: 2171169,
- baseSprite: "img/player/player-base.svg",
- baseScale: 1,
- handTint: 1842204,
- handSprite: "img/player/player-hands.svg"
- },
- lootImg: {
- sprite: "img/loot/loot-shirt-01.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 2171169
- },
- sound: {
- pickup: "clothes_pickup_01"
- }
- },
- outfitDarkGloves: {
- name: "The Professional",
- type: "skin",
- subtype: "normal",
- rad: 1,
- skinImg: {
- baseTint: 16566389,
- baseSprite: "img/player/player-base.svg",
- baseScale: 1,
- handTint: 12482560,
- handSprite: "img/player/player-hands.svg"
- },
- lootImg: {
- sprite: "img/loot/loot-shirt-01.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 12482560
- },
- sound: {
- pickup: "clothes_pickup_01"
- }
- },
- outfitBarrel: {
- name: "Fish in a Barrel",
- type: "skin",
- subtype: "camo",
- rad: 1,
- skinImg: {
- baseTint: 16777215,
- baseSprite: "img/map/map-barrel-01.svg",
- baseScale: .8,
- handTint: 2236962,
- handSprite: "img/player/player-hands.svg"
- },
- lootImg: {
- sprite: "img/loot/loot-shirt-01.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 2236962
- },
- sound: {
- pickup: "clothes_pickup_01"
- }
- },
- outfitGhillie: {
- name: "Ghillie Suit",
- type: "skin",
- subtype: "camo",
- rad: 1,
- skinImg: {
- baseTint: 8630096,
- baseSprite: "img/player/player-base.svg",
- baseScale: 1,
- handTint: 8630096,
- handSprite: "img/player/player-hands.svg"
- },
- lootImg: {
- sprite: "img/loot/loot-shirt-01.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 8630096
- },
- sound: {
- pickup: "clothes_pickup_01"
- }
- },
- outfitCamo: {
- name: "Forest Camo",
- type: "skin",
- subtype: "normal",
- rad: 1,
- skinImg: {
- baseTint: 10066278,
- baseSprite: "img/player/player-base.svg",
- baseScale: 1,
- handTint: 8684631,
- handSprite: "img/player/player-hands.svg"
- },
- lootImg: {
- sprite: "img/loot/loot-shirt-01.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 10066278
- },
- sound: {
- pickup: "clothes_pickup_01"
- }
- },
- outfitRed: {
- name: "Target Practice",
- type: "skin",
- subtype: "normal",
- rad: 1,
- skinImg: {
- baseTint: 16711680,
- baseSprite: "img/player/player-base.svg",
- baseScale: 1,
- handTint: 13893632,
- handSprite: "img/player/player-hands.svg"
- },
- lootImg: {
- sprite: "img/loot/loot-shirt-01.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16711680
- },
- sound: {
- pickup: "clothes_pickup_01"
- }
- },
- outfitWhite: {
- name: "Arctic Avenger",
- type: "skin",
- subtype: "normal",
- rad: 1,
- skinImg: {
- baseTint: 14935011,
- baseSprite: "img/player/player-base.svg",
- baseScale: 1,
- handTint: 15658734,
- handSprite: "img/player/player-hands.svg"
- },
- lootImg: {
- sprite: "img/loot/loot-shirt-01.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 14935011
- },
- sound: {
- pickup: "clothes_pickup_01"
- }
- },
- fists: {
- name: "Punch",
- type: "melee",
- switchDelay: .25,
- rangeMult: 1.25,
- areaOfEffect: .75,
- damageTime: .1,
- cooldownTime: .15,
- damage: 24,
- headshotMult: 1,
- speed: {
- equip: 1,
- attack: 0
- },
- sound: {
- swing: "punch_swing_01",
- deploy: "stow_weapon_01"
- }
- },
- mp5: {
- name: "MP5",
- type: "gun",
- fireMode: "auto",
- reloadMode: "mag",
- caseTiming: "shoot",
- ammo: "9mm",
- ammoSpawnCount: 90,
- maxClip: 30,
- maxReload: 30,
- reloadTime: 2,
- fireDelay: .09,
- switchDelay: .75,
- lengthMult: .75,
- rad: 1.25,
- moveSpread: 4,
- shotSpread: 3,
- bulletCount: 1,
- bulletType: "bullet_mp5",
- headshotMult: 2,
- speed: {
- equip: 0,
- attack: 0
- },
- lootImg: {
- sprite: "img/loot/loot-weapon-mp5.svg",
- scale: .3,
- rad: 25,
- border: !0,
- tint: 65280
- },
- worldImg: {
- sprite: "img/guns/gun-med.svg",
- scale: {
- x: .5,
- y: .5
- },
- tint: 1184274,
- hands: 2,
- leftHandOffset: 0
- },
- particle: {
- shellScale: 1
- },
- sound: {
- shoot: "mp5_01",
- reload: "mp5_reload_01",
- pickup: "gun_pickup_01",
- empty: "empty_fire_01",
- deploy: "mp5_switch_01"
- }
- },
- mac10: {
- name: "MAC-10",
- type: "gun",
- fireMode: "auto",
- reloadMode: "mag",
- caseTiming: "shoot",
- ammo: "9mm",
- ammoSpawnCount: 96,
- maxClip: 32,
- maxReload: 32,
- reloadTime: 1.8,
- fireDelay: .045,
- switchDelay: .75,
- lengthMult: .7,
- rad: 1.25,
- moveSpread: 11,
- shotSpread: 10,
- bulletCount: 1,
- bulletType: "bullet_mac10",
- headshotMult: 2,
- speed: {
- equip: 0,
- attack: 0
- },
- lootImg: {
- sprite: "img/loot/loot-weapon-mac10.svg",
- scale: .3,
- rad: 25,
- border: !0,
- tint: 65280
- },
- worldImg: {
- sprite: "img/guns/gun-med.svg",
- scale: {
- x: .5,
- y: .46
- },
- tint: 3684408,
- hands: 2,
- leftHandOffset: 4
- },
- particle: {
- shellScale: 1
- },
- sound: {
- shoot: "mac10_01",
- reload: "mac10_reload_01",
- pickup: "gun_pickup_01",
- empty: "empty_fire_01",
- deploy: "mac10_switch_01"
- }
- },
- ump9: {
- name: "UMP9",
- type: "gun",
- fireMode: "burst",
- reloadMode: "mag",
- caseTiming: "shoot",
- ammo: "9mm",
- ammoSpawnCount: 90,
- maxClip: 30,
- maxReload: 30,
- reloadTime: 1.9,
- fireDelay: .35,
- burstDelay: .07,
- switchDelay: .75,
- lengthMult: .8,
- rad: 1.25,
- moveSpread: 3,
- shotSpread: 1.5,
- bulletCount: 1,
- burstCount: 3,
- bulletType: "bullet_ump9",
- headshotMult: 2,
- speed: {
- equip: 0,
- attack: 0
- },
- lootImg: {
- sprite: "img/loot/loot-weapon-ump9.svg",
- scale: .3,
- rad: 25,
- border: !0,
- tint: 65280
- },
- worldImg: {
- sprite: "img/guns/gun-med.svg",
- scale: {
- x: .5,
- y: .52
- },
- tint: 1184274,
- hands: 2,
- leftHandOffset: 16
- },
- particle: {
- shellScale: 1
- },
- sound: {
- shoot: "ump9_01",
- reload: "ump9_reload_01",
- pickup: "gun_pickup_01",
- empty: "empty_fire_01",
- deploy: "ump9_switch_01"
- }
- },
- famas: {
- name: "FAMAS",
- type: "gun",
- fireMode: "burst",
- reloadMode: "mag",
- caseTiming: "shoot",
- ammo: "556mm",
- ammoSpawnCount: 75,
- maxClip: 25,
- maxReload: 25,
- reloadTime: 2.3,
- fireDelay: .35,
- burstDelay: .07,
- switchDelay: .75,
- lengthMult: .85,
- rad: 1.25,
- moveSpread: 2,
- shotSpread: 1.1,
- bulletCount: 1,
- burstCount: 3,
- bulletType: "bullet_famas",
- headshotMult: 2,
- speed: {
- equip: 0,
- attack: 0
- },
- lootImg: {
- sprite: "img/loot/loot-weapon-famas.svg",
- scale: .3,
- rad: 25,
- border: !0,
- tint: 65280
- },
- worldImg: {
- sprite: "img/guns/gun-med.svg",
- scale: {
- x: .5,
- y: .53
- },
- tint: 10061929,
- hands: 2,
- leftHandOffset: 16
- },
- particle: {
- shellScale: 1
- },
- sound: {
- shoot: "famas_01",
- reload: "famas_reload_01",
- pickup: "gun_pickup_01",
- empty: "empty_fire_01",
- deploy: "famas_switch_01"
- }
- },
- hk416: {
- name: "HK416",
- type: "gun",
- fireMode: "auto",
- reloadMode: "mag",
- caseTiming: "shoot",
- ammo: "556mm",
- ammoSpawnCount: 90,
- maxClip: 30,
- maxReload: 30,
- reloadTime: 2.3,
- fireDelay: .075,
- switchDelay: .75,
- lengthMult: .8,
- rad: 1.25,
- moveSpread: 8,
- shotSpread: 4,
- bulletCount: 1,
- bulletType: "bullet_hk416",
- headshotMult: 2,
- speed: {
- equip: 0,
- attack: 0
- },
- lootImg: {
- sprite: "img/loot/loot-weapon-hk416.svg",
- scale: .3,
- rad: 25,
- border: !0,
- tint: 65280
- },
- worldImg: {
- sprite: "img/guns/gun-med.svg",
- scale: {
- x: .5,
- y: .52
- },
- tint: 14402714,
- hands: 2,
- leftHandOffset: 12
- },
- particle: {
- shellScale: 1
- },
- sound: {
- shoot: "hk416_01",
- reload: "hk416_reload_01",
- pickup: "gun_pickup_01",
- empty: "empty_fire_01",
- deploy: "hk416_switch_01"
- }
- },
- mk12: {
- name: "Mk 12 SPR",
- type: "gun",
- fireMode: "single",
- reloadMode: "mag",
- caseTiming: "shoot",
- ammo: "556mm",
- ammoSpawnCount: 60,
- maxClip: 20,
- maxReload: 20,
- reloadTime: 2.4,
- fireDelay: .15,
- switchDelay: .75,
- lengthMult: 1.1,
- rad: 1.25,
- moveSpread: 3,
- shotSpread: 1,
- bulletCount: 1,
- bulletType: "bullet_mk12",
- headshotMult: 2,
- speed: {
- equip: 0,
- attack: 0
- },
- lootImg: {
- sprite: "img/loot/loot-weapon-mk12.svg",
- scale: .3,
- rad: 25,
- border: !0,
- tint: 65280
- },
- worldImg: {
- sprite: "img/guns/gun-long.svg",
- scale: {
- x: .5,
- y: .49
- },
- tint: 10984586,
- hands: 2,
- leftHandOffset: 12
- },
- particle: {
- shellScale: 1.3
- },
- sound: {
- shoot: "mk12_01",
- reload: "mk12_reload_01",
- pickup: "gun_pickup_01",
- empty: "empty_fire_02",
- deploy: "mk12_switch_01"
- }
- },
- m249: {
- name: "M249",
- type: "gun",
- fireMode: "auto",
- reloadMode: "mag",
- caseTiming: "shoot",
- ammo: "556mm",
- ammoSpawnCount: 200,
- maxClip: 100,
- maxReload: 100,
- reloadTime: 6.7,
- fireDelay: .08,
- switchDelay: .75,
- lengthMult: 1.175,
- rad: 1.25,
- moveSpread: 6,
- shotSpread: 1.5,
- bulletCount: 1,
- bulletType: "bullet_m249",
- headshotMult: 2,
- speed: {
- equip: 0,
- attack: -4
- },
- lootImg: {
- sprite: "img/loot/loot-weapon-m249.svg",
- scale: .3,
- rad: 25,
- border: !0,
- tint: 65280
- },
- worldImg: {
- sprite: "img/guns/gun-long.svg",
- sprite_bot: "img/guns/gun-m249-bot.svg",
- scale: {
- x: .5,
- y: .525
- },
- tint: 3618613,
- hands: 2,
- leftHandOffset: 32
- },
- particle: {
- shellScale: 1
- },
- sound: {
- shoot: "m249_01",
- reload: "m249_reload_01",
- pickup: "gun_pickup_01",
- empty: "empty_fire_02",
- deploy: "m249_switch_01"
- }
- },
- ak47: {
- name: "AK-47",
- type: "gun",
- fireMode: "auto",
- reloadMode: "mag",
- caseTiming: "shoot",
- ammo: "762mm",
- ammoSpawnCount: 90,
- maxClip: 30,
- maxReload: 30,
- reloadTime: 2.5,
- fireDelay: .1,
- switchDelay: .75,
- lengthMult: .9,
- rad: 1.25,
- moveSpread: 7,
- shotSpread: 2.5,
- bulletCount: 1,
- bulletType: "bullet_ak47",
- headshotMult: 2,
- speed: {
- equip: 0,
- attack: 0
- },
- lootImg: {
- sprite: "img/loot/loot-weapon-ak.svg",
- scale: .3,
- rad: 25,
- border: !0,
- tint: 65280
- },
- worldImg: {
- sprite: "img/guns/gun-long.svg",
- scale: {
- x: .5,
- y: .45
- },
- tint: 6433298,
- hands: 2,
- leftHandOffset: 8
- },
- particle: {
- shellScale: 1
- },
- sound: {
- shoot: "ak47_01",
- reload: "ak47_reload_01",
- pickup: "gun_pickup_01",
- empty: "empty_fire_02",
- deploy: "ak47_switch_01"
- }
- },
- dp28: {
- name: "DP-28",
- type: "gun",
- fireMode: "auto",
- reloadMode: "mag",
- caseTiming: "shoot",
- ammo: "762mm",
- ammoSpawnCount: 120,
- maxClip: 60,
- maxReload: 60,
- reloadTime: 3.3,
- fireDelay: .115,
- switchDelay: .75,
- lengthMult: 1.2,
- rad: 1.25,
- moveSpread: 8,
- shotSpread: 2,
- bulletCount: 1,
- bulletType: "bullet_dp28",
- headshotMult: 2,
- speed: {
- equip: 0,
- attack: -2
- },
- lootImg: {
- sprite: "img/loot/loot-weapon-dp28.svg",
- scale: .3,
- rad: 25,
- border: !0,
- tint: 65280
- },
- worldImg: {
- sprite: "img/guns/gun-long.svg",
- sprite_top: "img/guns/gun-dp28-top.svg",
- scale: {
- x: .5,
- y: .53
- },
- tint: 1710618,
- hands: 2,
- leftHandOffset: 24
- },
- particle: {
- shellScale: 1
- },
- sound: {
- shoot: "dp28_01",
- reload: "dp28_reload_01",
- pickup: "gun_pickup_01",
- empty: "empty_fire_02",
- deploy: "dp28_switch_01"
- }
- },
- mosin: {
- name: "Mosin Nagant",
- type: "gun",
- fireMode: "single",
- reloadMode: "single",
- caseTiming: "shoot",
- ammo: "762mm",
- ammoSpawnCount: 20,
- maxClip: 5,
- maxReload: 1,
- reloadTime: .9,
- fireDelay: 2,
- switchDelay: 1,
- pullDelay: 1,
- lengthMult: 1.2,
- rad: 1.25,
- moveSpread: 3,
- shotSpread: 1,
- bulletCount: 1,
- bulletType: "bullet_mosin",
- headshotMult: 2,
- speed: {
- equip: 0,
- attack: 0
- },
- lootImg: {
- sprite: "img/loot/loot-weapon-enfield.svg",
- scale: .3,
- rad: 25,
- border: !0,
- tint: 65280
- },
- worldImg: {
- sprite: "img/guns/gun-long.svg",
- scale: {
- x: .5,
- y: .52
- },
- tint: 3348992,
- hands: 2,
- leftHandOffset: 8
- },
- particle: {
- shellScale: 1.8
- },
- sound: {
- shoot: "mosin_01",
- reload: "mosin_reload_01",
- cycle: "mosin_cycle_01",
- pull: "mosin_pull_01",
- pickup: "gun_pickup_01",
- empty: "empty_fire_02",
- deploy: "mosin_cycle_01"
- }
- },
- m39: {
- name: "M39 EMR",
- type: "gun",
- fireMode: "single",
- reloadMode: "mag",
- caseTiming: "shoot",
- ammo: "762mm",
- ammoSpawnCount: 60,
- maxClip: 20,
- maxReload: 20,
- reloadTime: 2.5,
- fireDelay: .2,
- switchDelay: .75,
- lengthMult: 1.15,
- rad: 1.25,
- moveSpread: 4.25,
- shotSpread: 1,
- bulletCount: 1,
- bulletType: "bullet_m39",
- headshotMult: 2,
- speed: {
- equip: 0,
- attack: 0
- },
- lootImg: {
- sprite: "img/loot/loot-weapon-m39.svg",
- scale: .3,
- rad: 25,
- border: !0,
- tint: 65280
- },
- worldImg: {
- sprite: "img/guns/gun-long.svg",
- scale: {
- x: .5,
- y: .5
- },
- tint: 3355443,
- hands: 2,
- leftHandOffset: 8
- },
- particle: {
- shellScale: 1.3
- },
- sound: {
- shoot: "m39_01",
- reload: "m39_reload_01",
- pickup: "gun_pickup_01",
- empty: "empty_fire_02",
- deploy: "m39_switch_01"
- }
- },
- m870: {
- name: "M870",
- type: "gun",
- fireMode: "single",
- reloadMode: "single",
- caseTiming: "shoot",
- ammo: "12gauge",
- ammoSpawnCount: 10,
- maxClip: 5,
- maxReload: 1,
- reloadTime: .75,
- fireDelay: .9,
- switchDelay: .9,
- pullDelay: .9,
- lengthMult: .9,
- rad: 1.25,
- moveSpread: 2,
- shotSpread: 10,
- bulletCount: 9,
- bulletType: "bullet_shotgun",
- headshotMult: 2,
- lootImg: {
- sprite: "img/loot/loot-weapon-pumpshotgun.svg",
- scale: .3,
- rad: 25,
- border: !0,
- tint: 65280
- },
- speed: {
- equip: 0,
- attack: 0
- },
- worldImg: {
- sprite: "img/guns/gun-long.svg",
- scale: {
- x: .5,
- y: .45
- },
- tint: 3348992,
- hands: 2,
- leftHandOffset: 20
- },
- particle: {
- shellScale: 1
- },
- sound: {
- shoot: "m870_01",
- reload: "m870_reload_01",
- cycle: "m870_cycle_01",
- pull: "m870_pull_01",
- pickup: "gun_pickup_01",
- empty: "empty_fire_01",
- deploy: "m870_cycle_01"
- }
- },
- mp220: {
- name: "MP220",
- type: "gun",
- fireMode: "single",
- reloadMode: "mag",
- caseTiming: "reload",
- ammo: "12gauge",
- ammoSpawnCount: 10,
- maxClip: 2,
- maxReload: 2,
- reloadTime: 2.6,
- fireDelay: .2,
- switchDelay: .3,
- lengthMult: .7,
- rad: 1,
- moveSpread: 2,
- shotSpread: 10,
- bulletCount: 9,
- bulletType: "bullet_shotgun",
- headshotMult: 2,
- speed: {
- equip: 0,
- attack: 0
- },
- lootImg: {
- sprite: "img/loot/loot-weapon-soshotgun.svg",
- scale: .3,
- rad: 25,
- border: !0,
- tint: 65280
- },
- worldImg: {
- sprite: "img/guns/gun-med.svg",
- scale: {
- x: .5,
- y: .47
- },
- tint: 3348992,
- hands: 2,
- leftHandOffset: 0
- },
- particle: {
- shellScale: 1
- },
- sound: {
- shoot: "mp220_01",
- reload: "mp220_reload_01",
- pickup: "gun_pickup_01",
- empty: "empty_fire_01",
- deploy: "mp220_deploy_01"
- }
- },
- saiga: {
- name: "Saiga-12",
- type: "gun",
- fireMode: "auto",
- reloadMode: "mag",
- caseTiming: "shoot",
- ammo: "12gauge",
- ammoSpawnCount: 20,
- maxClip: 5,
- maxReload: 5,
- reloadTime: 2.5,
- fireDelay: .4,
- switchDelay: .75,
- lengthMult: .9,
- rad: 1.25,
- moveSpread: 2,
- shotSpread: 10,
- bulletCount: 9,
- bulletType: "bullet_shotgun",
- headshotMult: 2,
- speed: {
- equip: 0,
- attack: 0
- },
- lootImg: {
- sprite: "img/loot/loot-weapon-autoshotgun.svg",
- scale: .3,
- rad: 25,
- border: !0,
- tint: 65280
- },
- worldImg: {
- sprite: "img/guns/gun-long.svg",
- scale: {
- x: .5,
- y: .45
- },
- tint: 2302755,
- hands: 2,
- leftHandOffset: 12
- },
- particle: {
- shellScale: 1
- },
- sound: {
- shoot: "saiga_01",
- reload: "saiga_reload_01",
- pickup: "gun_pickup_01",
- empty: "empty_fire_02",
- deploy: "saiga_switch_01"
- }
- },
- m9: {
- name: "M9",
- type: "gun",
- fireMode: "single",
- reloadMode: "mag",
- caseTiming: "shoot",
- ammo: "9mm",
- ammoSpawnCount: 45,
- maxClip: 15,
- maxReload: 15,
- reloadTime: 1.6,
- fireDelay: .1,
- switchDelay: .25,
- lengthMult: .5,
- rad: 1.25,
- moveSpread: 8,
- shotSpread: 8,
- bulletCount: 1,
- bulletType: "bullet_m9",
- headshotMult: 2,
- speed: {
- equip: 0,
- attack: 0
- },
- lootImg: {
- sprite: "img/loot/loot-weapon-m9.svg",
- scale: .3,
- rad: 25,
- border: !0,
- tint: 65280
- },
- worldImg: {
- sprite: "img/guns/gun-short.svg",
- scale: {
- x: .5,
- y: .51
- },
- tint: 1973790,
- hands: 1,
- leftHandOffset: 0
- },
- particle: {
- shellScale: 1
- },
- sound: {
- shoot: "m9_01",
- reload: "m9_reload_01",
- pickup: "gun_pickup_01",
- empty: "empty_fire_01",
- deploy: "m9_switch_01"
- }
- },
- glock: {
- name: "Glock 18C",
- type: "gun",
- fireMode: "auto",
- reloadMode: "mag",
- caseTiming: "shoot",
- ammo: "9mm",
- ammoSpawnCount: 51,
- maxClip: 17,
- maxReload: 17,
- reloadTime: 1.95,
- fireDelay: .06,
- switchDelay: .25,
- lengthMult: .5,
- rad: 1.25,
- moveSpread: 10,
- shotSpread: 12,
- bulletCount: 1,
- bulletType: "bullet_glock",
- headshotMult: 2,
- speed: {
- equip: 0,
- attack: 0
- },
- lootImg: {
- sprite: "img/loot/loot-weapon-glock.svg",
- scale: .3,
- rad: 25,
- border: !0,
- tint: 65280
- },
- worldImg: {
- sprite: "img/guns/gun-short.svg",
- scale: {
- x: .5,
- y: .51
- },
- tint: 1973790,
- hands: 1,
- leftHandOffset: 0
- },
- particle: {
- shellScale: 1
- },
- sound: {
- shoot: "glock_01",
- reload: "glock_reload_01",
- pickup: "gun_pickup_01",
- empty: "empty_fire_01",
- deploy: "glock_switch_01"
- }
- },
- ot38: {
- name: "OT-38",
- type: "gun",
- fireMode: "single",
- reloadMode: "mag",
- caseTiming: "shoot",
- ammo: "762mm",
- ammoSpawnCount: 20,
- maxClip: 5,
- maxReload: 5,
- reloadTime: 2.2,
- fireDelay: .4,
- switchDelay: .3,
- lengthMult: .45,
- rad: 1.25,
- moveSpread: 3,
- shotSpread: 1.25,
- bulletCount: 1,
- bulletType: "bullet_ot38",
- headshotMult: 2,
- speed: {
- equip: 0,
- attack: 0
- },
- lootImg: {
- sprite: "img/loot/loot-weapon-ot38.svg",
- scale: .3,
- rad: 25,
- border: !0,
- tint: 65280
- },
- worldImg: {
- sprite: "img/guns/gun-short.svg",
- scale: {
- x: .5,
- y: .48
- },
- tint: 7368816,
- hands: 1,
- leftHandOffset: 0
- },
- particle: {
- shellScale: 1
- },
- sound: {
- shoot: "ot38_01",
- reload: "ot38_reload_01",
- pickup: "gun_pickup_01",
- empty: "empty_fire_01",
- deploy: "ot38_switch_01"
- }
- },
- frag: {
- name: "Frag Grenade",
- hudName: "Frag",
- type: "throwable",
- explosion: "explosion_frag",
- order: 1,
- fuseTime: 4,
- fireDelay: .4,
- switchDelay: .3,
- rad: 1,
- projRad: .5,
- throwSpeed: 20,
- throwDistance: 18,
- speed: {
- equip: 0,
- attack: 0
- },
- lootImg: {
- sprite: "img/loot/loot-throwable-frag.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 65280
- },
- worldImg: {
- sprite: "img/proj/frag-proj-nopin-nolever.svg",
- scale: .12,
- tint: 16777215
- },
- handImg: {
- equip: {
- right: {
- sprite: "img/proj/frag-proj-pin.svg",
- pos: {
- x: -30,
- y: 30
- },
- scale: .4
- },
- left: {
- sprite: "none"
- }
- },
- cook: {
- right: {
- sprite: "img/proj/frag-proj-nopin.svg",
- pos: {
- x: -30,
- y: 30
- },
- scale: .4
- },
- left: {
- sprite: "img/proj/frag-pin.svg",
- pos: {
- x: -30,
- y: 30
- },
- scale: .4
- }
- },
- throwing: {
- right: {
- sprite: "none"
- },
- left: {
- sprite: "none"
- }
- }
- },
- sound: {
- pullPin: "frag_pin_01",
- throwing: "frag_throw_01",
- pickup: "frag_pickup_01",
- deploy: "frag_deploy_01"
- }
- },
- smoke: {
- name: "Smoke Grenade",
- hudName: "Smoke",
- type: "throwable",
- explosion: "explosion_frag",
- order: 2,
- fuseTime: 4,
- fireDelay: .4,
- switchDelay: .3,
- rad: 1,
- projRad: .5,
- throwSpeed: 12.5,
- throwDistance: 18,
- speed: {
- equip: 0,
- attack: 0
- },
- lootImg: {
- sprite: "img/loot/loot-throwable-frag.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 255
- },
- worldImg: {
- sprite: "img/proj/frag-proj-nopin-nolever.svg",
- scale: .12,
- tint: 255
- },
- handImg: {
- equip: {
- right: {
- sprite: "img/proj/frag-proj-pin.svg",
- pos: {
- x: -30,
- y: 30
- },
- scale: .4
- },
- left: {
- sprite: "none"
- }
- },
- cook: {
- right: {
- sprite: "img/proj/frag-proj-nopin.svg",
- pos: {
- x: -30,
- y: 30
- },
- scale: .4
- },
- left: {
- sprite: "img/proj/frag-pin.svg",
- pos: {
- x: -30,
- y: 30
- },
- scale: .4
- }
- },
- throwing: {
- right: {
- sprite: "none"
- },
- left: {
- sprite: "none"
- }
- }
- },
- sound: {
- pullPin: "frag_pin_01",
- throwing: "frag_throw_01",
- pickup: "frag_pickup_01",
- deploy: "frag_deploy_01"
- }
- },
- "9mm": {
- name: "9mm",
- type: "ammo",
- rad: 1.2,
- minStackSize: 15,
- lootImg: {
- sprite: "img/loot/loot-ammo-box.svg",
- scale: .2,
- rad: 12,
- border: !1,
- tint: 16756224
- },
- sound: {
- pickup: "ammo_pickup_01"
- }
- },
- "762mm": {
- name: "7.62mm",
- type: "ammo",
- rad: 1.2,
- minStackSize: 10,
- lootImg: {
- sprite: "img/loot/loot-ammo-box.svg",
- scale: .2,
- rad: 12,
- border: !1,
- tint: 26367
- },
- sound: {
- pickup: "ammo_pickup_01"
- }
- },
- "556mm": {
- name: "5.56mm",
- type: "ammo",
- rad: 1.2,
- minStackSize: 10,
- lootImg: {
- sprite: "img/loot/loot-ammo-box.svg",
- scale: .2,
- rad: 12,
- border: !1,
- tint: 237056
- },
- sound: {
- pickup: "ammo_pickup_01"
- }
- },
- "12gauge": {
- name: "12 gauge",
- type: "ammo",
- rad: 1.2,
- minStackSize: 5,
- lootImg: {
- sprite: "img/loot/loot-ammo-box.svg",
- scale: .2,
- rad: 12,
- border: !1,
- tint: 16711680
- },
- sound: {
- pickup: "ammo_pickup_01"
- }
- },
- bandage: {
- name: "Bandage",
- type: "heal",
- useTime: 3,
- heal: 15,
- maxHeal: 75,
- rad: 1,
- lootImg: {
- sprite: "img/loot/loot-medical-bandage.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "bandage_pickup_01"
- }
- },
- healthkit: {
- name: "Med Kit",
- type: "heal",
- useTime: 6,
- heal: 100,
- maxHeal: 100,
- rad: 1,
- lootImg: {
- sprite: "img/loot/loot-medical-healthkit.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "healthkit_pickup_01"
- }
- },
- soda: {
- name: "Soda",
- type: "boost",
- useTime: 3,
- boost: 25,
- rad: 1,
- lootImg: {
- sprite: "img/loot/loot-medical-soda.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "soda_pickup_01"
- }
- },
- painkiller: {
- name: "Pills",
- type: "boost",
- useTime: 5,
- boost: 50,
- rad: 1,
- lootImg: {
- sprite: "img/loot/loot-medical-pill.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "pills_pickup_01"
- }
- },
- fannypack: {
- name: "Pouch",
- type: "backpack",
- desc: "Holds a minimal amount of ammo and supplies.",
- level: 0,
- rad: 1,
- tint: 16777215,
- lootImg: {
- sprite: "img/loot/loot-pack-00.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "pack_pickup_01"
- }
- },
- smallpack: {
- name: "Small Pack",
- type: "backpack",
- desc: "Holds an adequate amount of ammo and supplies.",
- level: 1,
- rad: 1,
- tint: 6697728,
- lootImg: {
- sprite: "img/loot/loot-pack-01.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "pack_pickup_01"
- }
- },
- regularpack: {
- name: "Regular Pack",
- type: "backpack",
- desc: "Holds a generous amount of ammo and supplies.",
- level: 2,
- rad: 1,
- tint: 26112,
- lootImg: {
- sprite: "img/loot/loot-pack-02.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "pack_pickup_01"
- }
- },
- militarypack: {
- name: "Military Pack",
- type: "backpack",
- desc: "For when you need to hold all of the things.",
- level: 3,
- rad: 1,
- tint: 6710835,
- lootImg: {
- sprite: "img/loot/loot-pack-03.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "pack_pickup_01"
- }
- },
- helmet01: {
- name: "Level 1 Helmet",
- type: "helmet",
- level: 1,
- damageReduction: .25,
- rad: 1,
- tint: 3244031,
- lootImg: {
- sprite: "img/loot/loot-helmet-01.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "helmet_pickup_01"
- }
- },
- helmet02: {
- name: "Level 2 Helmet",
- type: "helmet",
- level: 2,
- damageReduction: .4,
- rad: 1,
- tint: 13027014,
- lootImg: {
- sprite: "img/loot/loot-helmet-02.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "helmet_pickup_01"
- }
- },
- helmet03: {
- name: "Level 3 Helmet",
- type: "helmet",
- level: 3,
- damageReduction: .55,
- rad: 1,
- tint: 2434341,
- lootImg: {
- sprite: "img/loot/loot-helmet-03.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "helmet_pickup_01"
- }
- },
- chest01: {
- name: "Level 1 Vest",
- type: "chest",
- level: 1,
- damageReduction: .25,
- rad: 1,
- tint: 11842740,
- lootImg: {
- sprite: "img/loot/loot-chest-01.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "chest_pickup_01"
- }
- },
- chest02: {
- name: "Level 2 Vest",
- type: "chest",
- level: 2,
- damageReduction: .4,
- rad: 1,
- tint: 5921370,
- lootImg: {
- sprite: "img/loot/loot-chest-02.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "chest_pickup_01"
- }
- },
- chest03: {
- name: "Level 3 Vest",
- type: "chest",
- level: 3,
- damageReduction: .5,
- rad: 1,
- tint: 0,
- lootImg: {
- sprite: "img/loot/loot-chest-03.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "chest_pickup_01"
- }
- },
- "1xscope": {
- name: "1x Scope",
- type: "scope",
- level: 1,
- rad: 1,
- lootImg: {
- sprite: "img/loot/loot-scope-00.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "scope_pickup_01"
- }
- },
- "2xscope": {
- name: "2x Scope",
- type: "scope",
- level: 2,
- rad: 1,
- lootImg: {
- sprite: "img/loot/loot-scope-01.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "scope_pickup_01"
- }
- },
- "4xscope": {
- name: "4x Scope",
- type: "scope",
- level: 4,
- rad: 1,
- lootImg: {
- sprite: "img/loot/loot-scope-02.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "scope_pickup_01"
- }
- },
- "8xscope": {
- name: "8x Scope",
- type: "scope",
- level: 8,
- rad: 1,
- lootImg: {
- sprite: "img/loot/loot-scope-03.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "scope_pickup_01"
- }
- },
- "15xscope": {
- name: "15x Scope",
- type: "scope",
- level: 15,
- rad: 1,
- lootImg: {
- sprite: "img/loot/loot-scope-04.svg",
- scale: .2,
- rad: 16,
- border: !0,
- tint: 16777215
- },
- sound: {
- pickup: "scope_pickup_01"
- }
- }
- },
- scopeZoomRadius: {
- "1xscope": 28,
- "2xscope": 36,
- "4xscope": 48,
- "8xscope": 68,
- "15xscope": 104
- },
- bagSizes: {
- "9mm": [120, 240, 330, 420],
- "762mm": [90, 180, 240, 300],
- "556mm": [90, 180, 240, 300],
- "12gauge": [15, 30, 60, 90],
- frag: [3, 6, 9, 12],
- smoke: [3, 6, 9, 12],
- bandage: [5, 10, 15, 30],
- healthkit: [1, 2, 3, 4],
- soda: [2, 5, 10, 15],
- painkiller: [1, 2, 3, 4],
- "1xscope": [1, 1, 1, 1],
- "2xscope": [1, 1, 1, 1],
- "4xscope": [1, 1, 1, 1],
- "8xscope": [1, 1, 1, 1],
- "15xscope": [1, 1, 1, 1]
- }
- }
- }, "+sac": function(e, t, i) {
- function a(e) {
- return i(n(e))
- }
- function n(e) {
- var t = r[e];
- if(!(t + 1)) throw new Error("Cannot find module '" + e + "'.");
- return t
- }
- var r = {
- "./da.js": "j5/T",
- "./de.js": "KdTN",
- "./en.js": "W+3y",
- "./es.js": "pb8F",
- "./fr.js": "FRcz",
- "./it.js": "O/82",
- "./ko.js": "BkwK",
- "./nl.js": "vdJX",
- "./pl.js": "DMc6",
- "./pt.js": "nlKB",
- "./ru.js": "8jco",
- "./sv.js": "RCak",
- "./th.js": "R4DZ",
- "./tr.js": "eqS/",
- "./zh-cn.js": "UWg4",
- "./zh-tw.js": "kIX4"
- };
- a.keys = function() {
- return Object.keys(r)
- }, a.resolve = n, e.exports = a, a.id = "+sac"
- }, "/2+T": function(e, t, i) {
- "use strict";
- var a = {
- create: function(e, t) {
- return {
- x: e,
- y: void 0 !== t ? t : e
- }
- },
- copy: function(e) {
- return {
- x: e.x,
- y: e.y
- }
- },
- add: function(e, t) {
- return {
- x: e.x + t.x,
- y: e.y + t.y
- }
- },
- sub: function(e, t) {
- return {
- x: e.x - t.x,
- y: e.y - t.y
- }
- },
- mul: function(e, t) {
- return {
- x: e.x * t,
- y: e.y * t
- }
- },
- div: function(e, t) {
- return {
- x: e.x / t,
- y: e.y / t
- }
- },
- neg: function(e) {
- return {
- x: -e.x,
- y: -e.y
- }
- },
- lengthSqr: function(e) {
- return e.x * e.x + e.y * e.y
- },
- length: function(e) {
- return Math.sqrt(a.lengthSqr(e))
- },
- normalize: function(e) {
- var t = a.length(e);
- return {
- x: t > 1e-6 ? e.x / t : e.x,
- y: t > 1e-6 ? e.y / t : e.y
- }
- },
- normalizeSafe: function(e, t) {
- t = t || a.create(1, 0);
- var i = a.length(e);
- return {
- x: i > 1e-6 ? e.x / i : t.x,
- y: i > 1e-6 ? e.y / i : t.y
- }
- },
- dot: function(e, t) {
- return e.x * t.x + e.y * t.y
- },
- perp: function(e) {
- return {
- x: -e.y,
- y: e.x
- }
- },
- proj: function(e, t) {
- return a.mul(t, a.dot(e, t) / a.dot(t, t))
- },
- rotate: function(e, t) {
- var i = Math.cos(t),
- a = Math.sin(t);
- return {
- x: e.x * i - e.y * a,
- y: e.x * a + e.y * i
- }
- },
- divElems: function(e, t) {
- return {
- x: e.x / t.x,
- y: e.y / t.y
- }
- },
- minElems: function(e, t) {
- return {
- x: Math.min(e.x, t.x),
- y: Math.min(e.y, t.y)
- }
- },
- maxElems: function(e, t) {
- return {
- x: Math.max(e.x, t.x),
- y: Math.max(e.y, t.y)
- }
- },
- randomUnit: function() {
- return a.normalizeSafe(a.create(Math.random() - .5, Math.random() - .5), a.create(1, 0))
- },
- lerp: function(e, t, i) {
- return a.add(a.mul(t, 1 - e), a.mul(i, e))
- },
- eq: function(e, t, i) {
- var a = i || 1e-4;
- return Math.abs(e.x - t.x) < a && Math.abs(e.y - t.y) < a
- }
- };
- e.exports = a
- }, "/rj8": function(e, t, i) {
- "use strict";
- function a() {
- this.active = !1, this.dirty = !1, this.container = new n.Graphics, this.container.alpha = 0, this.clientData = {
- label: "",
- duration: 0,
- keepAlive: !1,
- elapsed: 0,
- radius: 35,
- lineWidth: 8,
- fontWidth: 24
- }, this.timerBackground = n.Sprite.fromImage("img/gui/timer-background.svg"), this.timerBackground.anchor = new n.Point(.5, .5), this.timerBackground.scale = new n.Point(1, 1), this.container.addChild(this.timerBackground), this.innerCircle = new n.Graphics, this.outerCircle = new n.Graphics, this.container.addChild(this.innerCircle, this.outerCircle), this.counterText = new n.Text, this.counterText.anchor = new n.Point(.5, .5);
- var e = {
- fontFamily: "Arial, Helvetica, sans-serif",
- fontWeight: "bold",
- fontSize: this.clientData.fontWidth,
- align: "center",
- fill: 16777215,
- stroke: 0,
- strokeThickness: 3
- };
- this.counterText.style = e, this.counterText.text = this.clientData.duration.toFixed(1), this.container.addChild(this.counterText), this.labelText = new n.Text, this.labelText.anchor = new n.Point(.5, .5);
- var t = {
- fontFamily: "Arial, Helvetica, sans-serif",
- fontWeight: "100",
- fontSize: this.clientData.fontWidth,
- align: "center",
- fill: 16777215
- };
- this.labelText.style = t, this.container.addChild(this.labelText), this.screenScaleFactor = 1, this.callback = null
- }
- var n = i("gKxX");
- i("+0OL"), i("Tf6H"), i("/2+T");
- a.prototype = {
- init: function(e, t, i, a) {
- this.active = !0, this.clientData = {
- label: i,
- duration: t,
- keepAlive: a,
- elapsed: 0,
- radius: 35,
- lineWidth: 8,
- fontWidth: 24
- }, this.labelText.text = this.clientData.duration.toFixed(1), this.callback = e, this.container.visible = !0, this.container.alpha = 1
- },
- destroy: function() {
- this.container.destroy({
- children: !0,
- texture: !0
- })
- },
- resize: function(e) {
- this.screenScaleFactor = e
- },
- free: function(e) {
- this.active = !1, e && (this.container.visible = !1, this.container.clear())
- },
- update: function(e, t, i) {
- if(!this.active) return void(this.container.alpha = this.clientData.keepAlive ? 1 : 0);
- this.clientData.elapsed += e, this.clientData.elapsed = Math.min(this.clientData.elapsed, this.clientData.duration), (this.clientData.elapsed >= this.clientData.duration || t.dead) && (this.render(i), this.free(), this.callback && this.callback(t))
- },
- render: function(e) {
- if(this.active) {
- this.container.clear(), this.outerCircle.clear(), this.counterText.text = "", this.labelText.text = "";
- var t = Math.min(this.clientData.elapsed / this.clientData.duration, 1),
- i = {
- x: e.screenWidth / 2,
- y: e.screenHeight / 3 * this.screenScaleFactor
- },
- a = Math.min(t, 1) * Math.PI * 2 - Math.PI / 2;
- this.container.beginFill(0, .5), this.outerCircle.lineStyle(.75 * this.clientData.lineWidth, 16777215), this.outerCircle.arc(0, 0, this.clientData.radius, -Math.PI / 2, a, !1), this.counterText.text = Math.max(0, this.clientData.duration - this.clientData.elapsed).toFixed(1);
- var n = 2.5 * this.clientData.radius;
- this.labelText.position.y = n, this.labelText.text = this.clientData.label;
- var r = 56 + this.clientData.label.length * this.clientData.fontWidth * .45,
- o = 1.5 * this.clientData.fontWidth,
- s = 0 - r / 2,
- l = n - o / 2;
- this.container.drawRoundedRect(s, l, r, o, 5), this.container.position = {
- x: i.x,
- y: i.y
- }
- }
- }
- }, e.exports = {
- PieTimer: a
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement