Weapons.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. {
  2. "design":{
  3. "document":"",
  4. "id":"唯一ID",
  5. "name":"枪的名称",
  6. "icon":"枪 的2D icon 图片",
  7. "prefab":"预制体资源地址(相对于resources)",
  8. "fireType":"开火方式 0 单点 1 连发 2 三连发",
  9. "handFireAnimation":"手 开火动画名称",
  10. "handFireAnimationSpeed":"手 开火动画速度",
  11. "handReloadAnimation":"手 开火动画名称",
  12. "handReloadAnimationSpeed":"手 开火动画名称",
  13. "fireAnimationEvents":
  14. [
  15. {
  16. "frame":"动画开始多少秒时调用下面的func方法",
  17. "func":"回调方法名",
  18. "params":["参数数组"]
  19. }
  20. ],
  21. "fireSocketPath":"枪 的火花挂点路径",
  22. "gunFireAnimation":"枪口火花动画名",
  23. "skill":"怒气技能效果ID",
  24. "damage":"枪的伤害值",
  25. "clip":"弹夹子弹数量",
  26. "attackRange":"攻击范围 1 打1路 2 打2路 3 打3路",
  27. "attackCount":"攻击数量",
  28. "attackDistance":"攻击距离",
  29. "maxAnger":"怒气上限值"
  30. },
  31. "data":[
  32. {
  33. "id":1,
  34. "name":"手枪",
  35. "prefab":"d3d/weapons/Weapon001",
  36. "fireType":0,
  37. "handFireAnimation":"SingleShotFire",
  38. "handFireAnimationSpeed":1,
  39. "fireAnimationEvents":
  40. [
  41. {
  42. "frame":0.1,
  43. "func":"LaunchBullet",
  44. "params":[]
  45. }
  46. ],
  47. "fireSocketPath":"RootNode/Weapon001/FireSocket",
  48. "gunFireAnimation":"GunFire",
  49. "handReloadAnimation":"Reload",
  50. "handReloadAnimationSpeed":1,
  51. "skill":1,
  52. "damage":10,
  53. "clip":6,
  54. "attackRange":1,
  55. "attackCount":1,
  56. "attackDistance":20,
  57. "maxAnger":100
  58. },
  59. {
  60. "id":2,
  61. "name":"散弹枪",
  62. "prefab":"d3d/weapons/Weapon002",
  63. "fireType":0,
  64. "handFireAnimation":"ShotgunFire",
  65. "handFireAnimationSpeed":1,
  66. "fireAnimationEvents":
  67. [
  68. {
  69. "frame":0.1,
  70. "func":"LaunchBullet",
  71. "params":[]
  72. }
  73. ],
  74. "fireSocketPath":"RootNode/weapon002/FireSocket",
  75. "gunFireAnimation":"GunFire",
  76. "handReloadAnimation":"Reload",
  77. "handReloadAnimationSpeed":1,
  78. "skill":1,
  79. "damage":10,
  80. "clip":10,
  81. "attackRange":2,
  82. "attackCount":1,
  83. "attackDistance":10,
  84. "maxAnger":100
  85. },
  86. {
  87. "id":3,
  88. "name":"自动步枪",
  89. "prefab":"d3d/weapons/Weapon003",
  90. "fireType":1,
  91. "handFireAnimation":"AutomaticFire",
  92. "handFireAnimationSpeed":1,
  93. "fireAnimationEvents":
  94. [
  95. {
  96. "frame":0.1,
  97. "func":"LaunchBullet",
  98. "params":[]
  99. }
  100. ],
  101. "fireSocketPath":"RootNode/weapon003/FireSocket",
  102. "gunFireAnimation":"RifleFire",
  103. "handReloadAnimation":"Reload",
  104. "handReloadAnimationSpeed":1,
  105. "skill":1,
  106. "damage":10,
  107. "clip":50,
  108. "attackRange":1,
  109. "attackCount":2,
  110. "attackDistance":40,
  111. "maxAnger":100
  112. }
  113. ]
  114. }