yolkbot 0.1.3 → 0.1.4-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/browser/build/global.js +1 -1
  2. package/browser/build/module.js +1 -1
  3. package/dist/api.js +3 -0
  4. package/dist/bot/GamePlayer.js +3 -0
  5. package/dist/bot.js +3 -0
  6. package/dist/comm/Codes.js +3 -0
  7. package/dist/comm/CommIn.js +3 -0
  8. package/dist/comm/CommOut.js +3 -0
  9. package/dist/comm/OutBuffer.js +3 -0
  10. package/dist/comm/Pool.js +3 -0
  11. package/dist/comm/index.js +3 -0
  12. package/dist/constants/challenges.js +3 -0
  13. package/dist/constants/changelog.js +3 -0
  14. package/dist/constants/codes.js +3 -0
  15. package/dist/constants/guns.js +3 -0
  16. package/dist/constants/housePromo.js +3 -0
  17. package/dist/constants/index.js +3 -0
  18. package/dist/constants/items.js +3 -0
  19. package/dist/constants/language.js +3 -0
  20. package/dist/constants/maps.js +3 -0
  21. package/dist/constants/shellNews.js +3 -0
  22. package/dist/constants/shellYoutube.js +3 -0
  23. package/dist/constants/shopItems.js +3 -0
  24. package/dist/constants/sounds.js +3 -0
  25. package/dist/dispatches/BootPlayerDispatch.js +3 -0
  26. package/dist/dispatches/ChatDispatch.js +3 -0
  27. package/dist/dispatches/FireDispatch.js +3 -0
  28. package/dist/dispatches/GameOptionsDispatch.js +3 -0
  29. package/dist/dispatches/GoToAmmoDispatch.js +3 -0
  30. package/dist/dispatches/GoToCoopDispatch.js +3 -0
  31. package/dist/dispatches/GoToGrenadeDispatch.js +3 -0
  32. package/dist/dispatches/GoToPlayerDispatch.js +3 -0
  33. package/dist/dispatches/GoToSpatulaDispatch.js +3 -0
  34. package/dist/dispatches/LookAtDispatch.js +3 -0
  35. package/dist/dispatches/LookAtPosDispatch.js +3 -0
  36. package/dist/dispatches/MeleeDispatch.js +3 -0
  37. package/dist/dispatches/MovementDispatch.js +3 -0
  38. package/dist/dispatches/PauseDispatch.js +3 -0
  39. package/dist/dispatches/ReloadDispatch.js +3 -0
  40. package/dist/dispatches/ReportPlayerDispatch.js +3 -0
  41. package/dist/dispatches/SaveLoadoutDispatch.js +3 -0
  42. package/dist/dispatches/SpawnDispatch.js +3 -0
  43. package/dist/dispatches/SwapWeaponDispatch.js +3 -0
  44. package/dist/dispatches/SwitchTeamDispatch.js +3 -0
  45. package/dist/dispatches/ThrowGrenadeDispatch.js +3 -0
  46. package/dist/dispatches/index.js +3 -0
  47. package/dist/globals.js +3 -0
  48. package/dist/index.js +10 -0
  49. package/dist/matchmaker.js +3 -0
  50. package/dist/pathing/astar.js +3 -0
  51. package/dist/pathing/binaryheap.js +3 -0
  52. package/dist/pathing/mapnode.js +3 -0
  53. package/dist/socket.js +3 -0
  54. package/package.json +28 -28
  55. package/src/.DS_Store +0 -0
  56. package/src/api.js +0 -235
  57. package/src/bot/GamePlayer.js +0 -88
  58. package/src/bot.js +0 -1998
  59. package/src/comm/Codes.js +0 -99
  60. package/src/comm/CommIn.js +0 -84
  61. package/src/comm/CommOut.js +0 -16
  62. package/src/comm/OutBuffer.js +0 -60
  63. package/src/comm/Pool.js +0 -55
  64. package/src/comm/index.js +0 -16
  65. package/src/constants/challenges.js +0 -1822
  66. package/src/constants/changelog.js +0 -19
  67. package/src/constants/codes.js +0 -45
  68. package/src/constants/guns.js +0 -368
  69. package/src/constants/housePromo.js +0 -727
  70. package/src/constants/index.js +0 -121
  71. package/src/constants/items.js +0 -42533
  72. package/src/constants/language.js +0 -1669
  73. package/src/constants/maps.js +0 -1095
  74. package/src/constants/shellNews.js +0 -59
  75. package/src/constants/shellYoutube.js +0 -93
  76. package/src/constants/shopItems.js +0 -2032
  77. package/src/constants/sounds.js +0 -1160
  78. package/src/dispatches/BootPlayerDispatch.js +0 -21
  79. package/src/dispatches/ChatDispatch.js +0 -30
  80. package/src/dispatches/FireDispatch.js +0 -20
  81. package/src/dispatches/GameOptionsDispatch.js +0 -46
  82. package/src/dispatches/GoToAmmoDispatch.js +0 -44
  83. package/src/dispatches/GoToCoopDispatch.js +0 -44
  84. package/src/dispatches/GoToGrenadeDispatch.js +0 -44
  85. package/src/dispatches/GoToPlayerDispatch.js +0 -38
  86. package/src/dispatches/GoToSpatulaDispatch.js +0 -32
  87. package/src/dispatches/LookAtDispatch.js +0 -48
  88. package/src/dispatches/LookAtPosDispatch.js +0 -33
  89. package/src/dispatches/MeleeDispatch.js +0 -28
  90. package/src/dispatches/MovementDispatch.js +0 -19
  91. package/src/dispatches/PauseDispatch.js +0 -18
  92. package/src/dispatches/ReloadDispatch.js +0 -36
  93. package/src/dispatches/ReportPlayerDispatch.js +0 -51
  94. package/src/dispatches/SaveLoadoutDispatch.js +0 -119
  95. package/src/dispatches/SpawnDispatch.js +0 -21
  96. package/src/dispatches/SwapWeaponDispatch.js +0 -19
  97. package/src/dispatches/SwitchTeamDispatch.js +0 -34
  98. package/src/dispatches/ThrowGrenadeDispatch.js +0 -26
  99. package/src/dispatches/index.js +0 -69
  100. package/src/globals.js +0 -15
  101. package/src/index.js +0 -14
  102. package/src/matchmaker.js +0 -206
  103. package/src/pathing/astar.js +0 -71
  104. package/src/pathing/binaryheap.js +0 -117
  105. package/src/pathing/mapnode.js +0 -236
  106. package/src/socket.js +0 -19
  107. /package/{src → dist}/types/api.d.ts +0 -0
  108. /package/{src → dist}/types/bot/GamePlayer.d.ts +0 -0
  109. /package/{src → dist}/types/bot.d.ts +0 -0
  110. /package/{src → dist}/types/constants/challenges.d.ts +0 -0
  111. /package/{src → dist}/types/constants/guns.d.ts +0 -0
  112. /package/{src → dist}/types/constants/index.d.ts +0 -0
  113. /package/{src → dist}/types/constants/items.d.ts +0 -0
  114. /package/{src → dist}/types/constants/maps.d.ts +0 -0
  115. /package/{src → dist}/types/dispatches/BootPlayerDispatch.d.ts +0 -0
  116. /package/{src → dist}/types/dispatches/ChatDispatch.d.ts +0 -0
  117. /package/{src → dist}/types/dispatches/FireDispatch.d.ts +0 -0
  118. /package/{src → dist}/types/dispatches/GameOptionsDispatch.d.ts +0 -0
  119. /package/{src → dist}/types/dispatches/GoToAmmoDispatch.d.ts +0 -0
  120. /package/{src → dist}/types/dispatches/GoToCoopDispatch.d.ts +0 -0
  121. /package/{src → dist}/types/dispatches/GoToGrenadeDispatch.d.ts +0 -0
  122. /package/{src → dist}/types/dispatches/GoToPlayerDispatch.d.ts +0 -0
  123. /package/{src → dist}/types/dispatches/GoToSpatulaDispatch.d.ts +0 -0
  124. /package/{src → dist}/types/dispatches/LookAtDispatch.d.ts +0 -0
  125. /package/{src → dist}/types/dispatches/LookAtPosDispatch.d.ts +0 -0
  126. /package/{src → dist}/types/dispatches/MeleeDispatch.d.ts +0 -0
  127. /package/{src → dist}/types/dispatches/MovementDispatch.d.ts +0 -0
  128. /package/{src → dist}/types/dispatches/PauseDispatch.d.ts +0 -0
  129. /package/{src → dist}/types/dispatches/ReloadDispatch.d.ts +0 -0
  130. /package/{src → dist}/types/dispatches/ReportPlayerDispatch.d.ts +0 -0
  131. /package/{src → dist}/types/dispatches/SaveLoadoutDispatch.d.ts +0 -0
  132. /package/{src → dist}/types/dispatches/SpawnDispatch.d.ts +0 -0
  133. /package/{src → dist}/types/dispatches/SwapWeaponDispatch.d.ts +0 -0
  134. /package/{src → dist}/types/dispatches/SwitchTeamDispatch.d.ts +0 -0
  135. /package/{src → dist}/types/dispatches/ThrowGrenadeDispatch.d.ts +0 -0
  136. /package/{src → dist}/types/dispatches/index.d.ts +0 -0
  137. /package/{src → dist}/types/matchmaker.d.ts +0 -0
  138. /package/{src → dist}/types/socket.d.ts +0 -0
@@ -1,19 +0,0 @@
1
- /* eslint-disable */
2
- export const Changelog = [
3
- {
4
- "version": "1.0.0",
5
- "date": "Apr 1 2025",
6
- "content": [
7
- "EGG ORG have returned from the shadows! Sides have been drawn & only one will win!",
8
- "The winning side will unlock a special skin for all eggs!",
9
- "Get more info, check the score & change sides by clicking the banner on the homescreen",
10
- "Changing teams is possible but costly!",
11
- "EGG ORG are messing with eggtopia, all killstreak bonuses are now RANDOM!",
12
- "Be the biggest egg in the Dojo with the latest Premium Sumo Hat - in-store & free for VIPs ",
13
- "Upgraded database to the latest SQL version - let us know if something is unusual... more than normal.",
14
- "Enjoy the latest map, Yolkido, in public and private lobbies",
15
- "Moved Outer Reach, Facility, Timetwist, Jailbreak, Wreckage & Exposure to the Public map pool",
16
- "Moved Uncovered, Foundation, Metamorph, Shipyard, Road, Shellville & Cash to the Private map pool"
17
- ]
18
- }
19
- ];
@@ -1,45 +0,0 @@
1
- /* eslint-disable */
2
- export const CommCode = {
3
- "swapWeapon": 0,
4
- "joinGame": 1,
5
- "spawnItem": 3,
6
- "ping": 5,
7
- "bootPlayer": 6,
8
- "reportPlayer": 10,
9
- "switchTeam": 13,
10
- "changeCharacter": 14,
11
- "pause": 15,
12
- "gameOptions": 16,
13
- "gameAction": 17,
14
- "requestGameOptions": 18,
15
- "gameJoined": 19,
16
- "socketReady": 20,
17
- "addPlayer": 21,
18
- "removePlayer": 22,
19
- "fire": 23,
20
- "melee": 24,
21
- "throwGrenade": 25,
22
- "eventModifier": 27,
23
- "hitThem": 28,
24
- "hitMe": 29,
25
- "collectItem": 30,
26
- "chat": 34,
27
- "syncThem": 35,
28
- "die": 37,
29
- "beginShellStreak": 38,
30
- "endShellStreak": 39,
31
- "updateBalance": 42,
32
- "reload": 43,
33
- "respawn": 44,
34
- "respawnDenied": 45,
35
- "clientReady": 47,
36
- "requestRespawn": 48,
37
- "metaGameState": 53,
38
- "syncMe": 54,
39
- "explode": 55,
40
- "keepAlive": 56,
41
- "musicInfo": 57,
42
- "hitMeHardBoiled": 58,
43
- "challengeCompleted": 60,
44
- "eggOrgUpdate": 61
45
- };
@@ -1,368 +0,0 @@
1
- const Gun = class {
2
- constructor() {
3
- this.dmgTypeId = 0;
4
- this.highPrecision = false;
5
- this.equipTime = 13;
6
- this.stowWeaponTime = 13;
7
- this.accuracy = this.constructor.accuracyMax;
8
- this.shootingAccuracy = this.constructor.accuracyMax;
9
- this.movementAccuracy = this.constructor.accuracyMax;
10
- this.accuracyMax = this.constructor.accuracyMax;
11
- this.accuracyMin = this.constructor.accuracyMin;
12
- this.accuracyLoss = this.constructor.accuracyLoss;
13
- this.accuracyRecover = this.constructor.accuracyRecover;
14
- this.tracer = 0;
15
- this.burstQueue = 0;
16
- this.adsMod = this.constructor.adsMod || 0.5;
17
- this.movementAccuracyMod = this.constructor.movementAccuracyMod || 1;
18
- this.reloadBloom = true;
19
- this.reloadTimeMod = this.constructor.reloadTimeMod || 1;
20
- }
21
- };
22
-
23
- // eggk47
24
- const Eggk47 = class _Eggk47 extends Gun {
25
- constructor() {
26
- super();
27
-
28
- this.ammo = {
29
- rounds: 30,
30
- capacity: 30,
31
- reload: 30,
32
- store: 240,
33
- storeMax: 240,
34
- pickup: 30
35
- };
36
-
37
- this.longReloadTime = 205;
38
- this.shortReloadTime = 160;
39
-
40
- this.weaponName = 'EggK-47';
41
- this.internalName = 'Eggk47';
42
- this.standardMeshName = 'eggk47';
43
-
44
- this.rof = 3;
45
- this.recoil = 7;
46
- this.automatic = true;
47
- this.damage = 20;
48
- this.totalDamage = 20;
49
- this.range = 20;
50
- this.velocity = 1.5;
51
- this.tracer = 1;
52
- }
53
- };
54
-
55
- // p90 / scrambler
56
- const DozenGauge = class _DozenGauge extends Gun {
57
- constructor() {
58
- super();
59
-
60
- this.ammo = {
61
- rounds: 2,
62
- capacity: 2,
63
- reload: 2,
64
- store: 24,
65
- storeMax: 24,
66
- pickup: 8
67
- };
68
-
69
- this.longReloadTime = 155;
70
- this.shortReloadTime = 155;
71
-
72
- this.weaponName = 'Scrambler';
73
- this.internalName = 'Dozen Gauge';
74
- this.standardMeshName = 'dozenGauge';
75
-
76
- this.rof = 8;
77
- this.recoil = 10;
78
- this.automatic = false;
79
- this.damage = 8;
80
- this.totalDamage = 8 * 20;
81
- this.range = 8;
82
- this.velocity = 1;
83
- this.tracer = 0;
84
-
85
- this.damage = 30;
86
- this.accuracyMax = 0.03;
87
- this.accuracyMin = 0.15;
88
- this.accuracyLoss = 0.05;
89
- this.accuracyRecover = 0.025;
90
- this.totalDamage = 30;
91
-
92
- this.damage = 8.5;
93
- this.accuracyMax = 0.14;
94
- this.accuracyMin = 0.17;
95
- this.accuracyLoss = 0.17;
96
- this.accuracyRecover = 0.02;
97
- this.totalDamage = 170;
98
- this.adsMod = 0.6;
99
- this.movementAccuracyMod = 0.2;
100
- }
101
- };
102
-
103
- // free ranger
104
- const CSG1 = class _CSG1 extends Gun {
105
- constructor() {
106
- super();
107
-
108
- this.ammo = {
109
- rounds: 15,
110
- // Number of rounds currently loaded
111
- capacity: 15,
112
- // Magazine capacity
113
- reload: 15,
114
- // Number of rounds added per reload
115
- store: 60,
116
- // Number of rounds player is carrying for this weapon
117
- storeMax: 60,
118
- // Maximum number of rounds player can carry
119
- pickup: 15
120
- // Number of rounds added for each ammo drop collected
121
- };
122
-
123
- this.hasScope = true;
124
- this.longReloadTime = 225;
125
- this.shortReloadTime = 165;
126
- this.highPrecision = true;
127
-
128
- this.weaponName = 'Free Ranger';
129
- this.internalName = 'CSG-1';
130
- this.standardMeshName = 'csg1';
131
-
132
- this.rof = 13;
133
- this.recoil = 13;
134
- this.automatic = false;
135
- this.damage = 110;
136
- this.totalDamage = 110;
137
- this.range = 50;
138
- this.velocity = 1.75;
139
- this.tracer = 0;
140
-
141
- this.damage = 105;
142
- this.accuracyMax = 4e-3;
143
- this.accuracyMin = 0.3;
144
- this.accuracyLoss = 0.3;
145
- this.accuracyRecover = 0.025;
146
- this.totalDamage = 105;
147
- }
148
- };
149
-
150
- // secondary / 9mm
151
- const Cluck9mm = class _Cluck9mm extends Gun {
152
- constructor() {
153
- super();
154
-
155
- this.ammo = {
156
- rounds: 15,
157
- capacity: 15,
158
- reload: 15,
159
- store: 60,
160
- storeMax: 60,
161
- pickup: 15
162
- };
163
-
164
- this.longReloadTime = 195;
165
- this.shortReloadTime = 160;
166
-
167
- this.weaponName = 'Cluck 9mm';
168
- this.internalName = 'Cluck 9mm';
169
- this.standardMeshName = 'cluck9mm';
170
-
171
- this.rof = 4;
172
- this.recoil = 6;
173
- this.automatic = false;
174
- this.damage = 25;
175
- this.totalDamage = 25;
176
- this.range = 15;
177
- this.velocity = 1;
178
- this.tracer = 0;
179
-
180
- this.damage = 26;
181
- this.accuracyMax = 0.035;
182
- this.accuracyMin = 0.15;
183
- this.accuracyLoss = 0.09;
184
- this.accuracyRecover = 0.08;
185
- this.totalDamage = 26;
186
- this.adsMod = 0.8;
187
- this.movementAccuracyMod = 0.6;
188
- }
189
- };
190
-
191
- // rpegg / rpg
192
- const RPEGG = class _RPEGG extends Gun {
193
- constructor() {
194
- super();
195
-
196
- this.ammo = {
197
- rounds: 1,
198
- capacity: 1,
199
- reload: 1,
200
- store: 3,
201
- storeMax: 3,
202
- pickup: 1
203
- };
204
-
205
- this.hasScope = true;
206
- this.longReloadTime = 170;
207
- this.shortReloadTime = 170;
208
-
209
- this.weaponName = 'RPEGG';
210
- this.internalName = 'Eggsploder';
211
- this.standardMeshName = 'rpegg';
212
-
213
- this.rof = 40;
214
- this.recoil = 60;
215
- this.automatic = false;
216
- this.damage = 140;
217
- this.radius = 2.75;
218
- this.totalDamage = 140 * 2.75 * 0.5;
219
- this.range = 45;
220
- this.minRange = 3;
221
- this.velocity = 0.4;
222
-
223
- this.accuracyMax = 0.015;
224
- this.accuracyMin = 0.3;
225
- this.accuracyLoss = 0.3;
226
- this.accuracyRecover = 0.02;
227
- this.absoluteMinAccuracy = 0.3;
228
- }
229
- };
230
-
231
- // whipper
232
- const SMG = class _SMG extends Gun {
233
- constructor() {
234
- super();
235
-
236
- this.ammo = {
237
- rounds: 40,
238
- capacity: 40,
239
- reload: 40,
240
- store: 200,
241
- storeMax: 200,
242
- pickup: 40
243
- };
244
-
245
- this.longReloadTime = 225;
246
- this.shortReloadTime = 190;
247
-
248
- this.weaponName = 'Whipper';
249
- this.internalName = 'SMEGG';
250
- this.standardMeshName = 'smg';
251
-
252
- this.rof = 10;
253
- this.recoil = 7;
254
- this.automatic = true;
255
- this.damage = 15;
256
- this.totalDamage = 15;
257
- this.range = 20;
258
- this.velocity = 1.25;
259
- this.tracer = 2;
260
-
261
- this.damage = 23;
262
- this.accuracyMax = 0.06;
263
- this.accuracyMin = 0.19;
264
- this.accuracyLoss = 0.045;
265
- this.accuracyRecover = 0.05;
266
- this.totalDamage = 23;
267
- this.adsMod = 0.6;
268
- this.movementAccuracyMod = 0.7;
269
- }
270
- };
271
-
272
- // crackshot
273
- const M24 = class _M24 extends Gun {
274
- constructor() {
275
- super();
276
-
277
- this.ammo = {
278
- rounds: 1,
279
- capacity: 1,
280
- reload: 1,
281
- store: 12,
282
- storeMax: 12,
283
- pickup: 4
284
- };
285
-
286
- this.hasScope = true;
287
- this.longReloadTime = 144;
288
- this.shortReloadTime = 144;
289
-
290
- this.weaponName = 'Crackshot';
291
- this.internalName = 'M2DZ';
292
- this.standardMeshName = 'm24';
293
-
294
- this.rof = 60;
295
- this.recoil = 40;
296
- this.automatic = false;
297
- this.damage = 170;
298
- this.totalDamage = 170;
299
- this.range = 60;
300
- this.velocity = 2;
301
- this.tracer = 0;
302
-
303
- this.damage = 170;
304
- this.accuracyMax = 0;
305
- this.accuracyMin = 0.35;
306
- this.accuracyLoss = 0.1;
307
- this.accuracyRecover = 0.023;
308
- this.totalDamage = 170;
309
- this.movementAccuracyMod = 0.85;
310
- this.reloadBloom = false;
311
- this.reloadTimeMod = 0.8;
312
- }
313
- };
314
-
315
- // trihard / tri-hard
316
- const AUG = class _AUG extends Gun {
317
- constructor() {
318
- super();
319
-
320
- this.ammo = {
321
- rounds: 24,
322
- capacity: 24,
323
- reload: 24,
324
- store: 150,
325
- storeMax: 150,
326
- pickup: 24
327
- };
328
-
329
- this.longReloadTime = 205;
330
- this.shortReloadTime = 160;
331
-
332
- this.weaponName = 'Tri-Hard';
333
- this.internalName = 'AUG';
334
- this.standardMeshName = 'aug';
335
-
336
- this.rof = 15;
337
- this.recoil = 18;
338
- this.automatic = false;
339
- this.movementInstability = 2;
340
- this.damage = 20;
341
- this.totalDamage = 20;
342
- this.range = 20;
343
- this.velocity = 1.5;
344
- this.tracer = 0;
345
- this.burst = 3;
346
- this.burstRof = 1800 / 600;
347
-
348
- this.damage = 35;
349
- this.accuracyMax = 0.03;
350
- this.accuracyMin = 0.15;
351
- this.accuracyLoss = 0.04;
352
- this.accuracyRecover = 0.03;
353
- this.totalDamage = 34;
354
- this.adsMod = 0.6;
355
- this.movementAccuracyMod = 0.8;
356
- }
357
- };
358
-
359
- export {
360
- Eggk47,
361
- DozenGauge,
362
- CSG1,
363
- Cluck9mm,
364
- RPEGG,
365
- SMG,
366
- M24,
367
- AUG
368
- }