9
3

TheDarkpawFanglord1.lua 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. --[[
  2. Script Name : SpawnScripts/Antonica/TheDarkpawFanglord1.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.01 06:09:24
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. dmgMod = GetStr(NPC)/10
  10. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  11. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(65 + dmgMod))
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(105 + dmgMod))
  13. ChooseMovement(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function ChooseMovement(NPC)
  22. path = MakeRandomInt(1,3)
  23. if path == 1 then
  24. waypoints1(NPC)
  25. elseif path == 2 then
  26. waypoints2(NPC)
  27. elseif path == 3 then
  28. waypoints3(NPC)
  29. end
  30. end
  31. function waypoints1(NPC)
  32. MovementLoopAddLocation(NPC, -1641.96, -5.33, 713.14, 2, MakeRandomInt(8,15))
  33. MovementLoopAddLocation(NPC, -1636.26, -0.85, 664.55, 2, 0)
  34. MovementLoopAddLocation(NPC, -1642.39, -0.99, 656.61, 2, 0)
  35. MovementLoopAddLocation(NPC, -1641.38, -1.05, 646.37, 2, 0)
  36. MovementLoopAddLocation(NPC, -1634.81, -0.69, 644.21, 2, 5)
  37. MovementLoopAddLocation(NPC, -1646.16, -1.23, 651.95, 2, 0)
  38. MovementLoopAddLocation(NPC, -1641.33, -0.89, 660.46, 2, 0)
  39. MovementLoopAddLocation(NPC, -1632.71, -0.62, 666.84, 2, 0)
  40. MovementLoopAddLocation(NPC, -1626.08, -0.03, 664.88, 2, 0)
  41. MovementLoopAddLocation(NPC, -1622.23, 0.27, 665.69, 2, 0)
  42. MovementLoopAddLocation(NPC, -1622.04, 0.28, 665.84, 2, MakeRandomInt(8,15))
  43. MovementLoopAddLocation(NPC, -1602.05, -1.81, 697.47, 2, MakeRandomInt(8,15))
  44. MovementLoopAddLocation(NPC, -1608.43, 1.56, 665.95, 2, MakeRandomInt(8,15))
  45. MovementLoopAddLocation(NPC, -1601.17, 0.88, 677.22, 2, MakeRandomInt(8,15))
  46. MovementLoopAddLocation(NPC, -1614.18, -3.65, 710.63, 2, MakeRandomInt(8,15))
  47. MovementLoopAddLocation(NPC, -1627.84, -7.39, 731.78, 2, MakeRandomInt(8,15))
  48. MovementLoopAddLocation(NPC, -1643.32, -7.34, 723.83, 2, MakeRandomInt(8,15))
  49. MovementLoopAddLocation(NPC, -1627.86, -8.96, 738.42, 2, MakeRandomInt(8,15))
  50. end
  51. function waypoints2(NPC)
  52. MovementLoopAddLocation(NPC, -1662.09, -13.61, 750.33, 2, MakeRandomInt(8,15))
  53. MovementLoopAddLocation(NPC, -1656.4, -11.61, 737.98, 2, MakeRandomInt(8,15))
  54. MovementLoopAddLocation(NPC, -1641.06, -2.8, 691.4, 2, MakeRandomInt(8,15))
  55. MovementLoopAddLocation(NPC, -1669.29, -5.06, 677.39, 2, MakeRandomInt(8,15))
  56. MovementLoopAddLocation(NPC, -1674.66, -9.62, 701.8, 2, 0)
  57. MovementLoopAddLocation(NPC, -1679.65, -10.44, 705.44, 2, 0)
  58. MovementLoopAddLocation(NPC, -1676.37, -9.93, 712.28, 2, MakeRandomInt(8,15))
  59. MovementLoopAddLocation(NPC, -1670.61, -8.93, 711.8, 2, 0)
  60. MovementLoopAddLocation(NPC, -1669.79, -9.63, 716.74, 2, 0)
  61. MovementLoopAddLocation(NPC, -1656.51, -12.86, 744.62, 2, MakeRandomInt(8,15))
  62. MovementLoopAddLocation(NPC, -1640.19, -10.44, 740.87, 2, 0)
  63. MovementLoopAddLocation(NPC, -1632.37, -8.36, 736.17, 2, 0)
  64. MovementLoopAddLocation(NPC, -1626.6, -9.01, 738.49, 2, MakeRandomInt(8,15))
  65. MovementLoopAddLocation(NPC, -1632.64, -8.39, 736.25, 2, 0)
  66. MovementLoopAddLocation(NPC, -1655.8, -14.29, 752.17, 2, MakeRandomInt(8,15))
  67. MovementLoopAddLocation(NPC, -1663.54, -11.35, 735.18, 2, 0)
  68. MovementLoopAddLocation(NPC, -1665.95, -11.16, 732.54, 2, 0)
  69. MovementLoopAddLocation(NPC, -1667.63, -10.74, 726.46, 2, 0)
  70. MovementLoopAddLocation(NPC, -1669.06, -10.49, 723.57, 2, MakeRandomInt(8,15))
  71. end
  72. function waypoints3(NPC)
  73. MovementLoopAddLocation(NPC, -1458.51, -11.56, 646.21, 2, MakeRandomInt(8,15))
  74. MovementLoopAddLocation(NPC, -1451.04, -15.08, 619.52, 2, MakeRandomInt(8,15))
  75. MovementLoopAddLocation(NPC, -1473.11, -7.14, 607.99, 2, 0)
  76. MovementLoopAddLocation(NPC, -1485.34, -3.1, 606.55, 2, MakeRandomInt(8,15))
  77. MovementLoopAddLocation(NPC, -1511.16, -0.25, 603.9, 2, 0)
  78. MovementLoopAddLocation(NPC, -1513.43, -0.09, 601.52, 2, 5)
  79. MovementLoopAddLocation(NPC, -1514.71, -0.01, 599.67, 2, 0)
  80. MovementLoopAddLocation(NPC, -1547.11, 2.92, 611.51, 2, MakeRandomInt(8,15))
  81. MovementLoopAddLocation(NPC, -1540.58, 1.01, 646.31, 2, MakeRandomInt(8,15))
  82. MovementLoopAddLocation(NPC, -1518.7, -0.66, 645.47, 2, MakeRandomInt(8,15))
  83. MovementLoopAddLocation(NPC, -1461.14, -11.38, 644.81, 2, MakeRandomInt(8,15))
  84. end