yolkbot 0.0.2 → 0.1.0-alpha.1

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 (45) hide show
  1. package/README.md +7 -5
  2. package/build/browser.js +3 -0
  3. package/package.json +27 -16
  4. package/src/api.js +50 -55
  5. package/src/bot/GamePlayer.js +7 -4
  6. package/src/bot.js +321 -140
  7. package/src/browser.js +13 -0
  8. package/src/comm/CommIn.js +2 -2
  9. package/src/comm/OutBuffer.js +4 -4
  10. package/src/comm/Pool.js +3 -3
  11. package/src/comm/index.js +6 -6
  12. package/src/constants/guns.js +352 -0
  13. package/src/constants/index.js +85 -0
  14. package/{data/items.json → src/constants/items.js} +3 -2
  15. package/{data/maps.json → src/constants/maps.js} +3 -2
  16. package/src/dispatches/BootPlayerDispatch.js +2 -2
  17. package/src/dispatches/ChatDispatch.js +8 -8
  18. package/src/dispatches/FireDispatch.js +3 -2
  19. package/src/dispatches/GameOptionsDispatch.js +17 -2
  20. package/src/dispatches/GoToPlayerDispatch.js +34 -0
  21. package/src/dispatches/GoToSpatulaDispatch.js +28 -0
  22. package/src/dispatches/LookAtDispatch.js +15 -15
  23. package/src/dispatches/LookAtPosDispatch.js +35 -0
  24. package/src/dispatches/MeleeDispatch.js +1 -1
  25. package/src/dispatches/MovementDispatch.js +2 -3
  26. package/src/dispatches/PauseDispatch.js +1 -1
  27. package/src/dispatches/ReloadDispatch.js +2 -2
  28. package/src/dispatches/ReportPlayerDispatch.js +18 -20
  29. package/src/dispatches/SaveLoadoutDispatch.js +25 -20
  30. package/src/dispatches/SpawnDispatch.js +2 -4
  31. package/src/dispatches/SwapWeaponDispatch.js +1 -1
  32. package/src/dispatches/SwitchTeamDispatch.js +10 -6
  33. package/src/dispatches/ThrowGrenadeDispatch.js +22 -0
  34. package/src/dispatches/index.js +9 -3
  35. package/src/matchmaker.js +81 -46
  36. package/src/packet.js +8 -1
  37. package/src/pathing/astar.js +89 -0
  38. package/src/pathing/binaryheap.js +117 -0
  39. package/src/pathing/mapnode.js +437 -0
  40. package/src/socket.js +26 -0
  41. package/data/guns.js +0 -322
  42. package/data/proxies.json +0 -102
  43. package/src/constants.js +0 -127
  44. package/src/dispatches/LookToDispatch.js +0 -17
  45. package/src/manager.js +0 -66
package/README.md CHANGED
@@ -3,8 +3,9 @@
3
3
  <h3>creating bots in 10 lines since 2025</h3>
4
4
  <p>
5
5
  <a href='https://github.com/enbyte/yolkbot'>github</a> |
6
- <a href='https://github.com/enbyte/yolkbot/wiki'>documentation</a>
7
- <a href='https://npmjs.com/yolkbot'>npm</a>
6
+ <a href='https://yolkbot.villainsrule.xyz'>documentation</a> |
7
+ <a href='https://npmjs.com/yolkbot'>npm</a> |
8
+ <a href='https://discord.gg/gYugVUCaMr'>discord</a>
8
9
  </p>
9
10
  </div>
10
11
 
@@ -12,8 +13,9 @@
12
13
 
13
14
  <h3 align='center'>why?</h3>
14
15
  <p align='center'>
15
- Several of StateFarm's projects relied on the same simple game-related tasks.<br>
16
- This codebase exists as a unified, elegant, single point we can build upon.
16
+ this library creates a unified way to create shell shockers bots for any purpose.<br>
17
+ you no longer have to figure out how to write hundreds of lines just to join a game.<br>
18
+ create a bot & put it in a game in 3 lines, down from 300.
17
19
  </p>
18
20
 
19
21
  <br>
@@ -21,6 +23,6 @@
21
23
  <h3 align='center'>credits</h3>
22
24
 
23
25
  <p align='center'>
24
- this repository was created & imagined by <a href='https://github.com/enbyte'>hijinks</a> with contributions from <a href='https://github.com/villainsrule'>1ust</a> :trollface:<br>
26
+ this repository was created & imagined by <a href='https://github.com/enbyte'>hijinks</a> & <a href='https://github.com/villainsrule'>1ust</a> :trollface:<br>
25
27
  special thanks to BWD for leaking the source, which made development 100x easier ❤️
26
28
  </p>