bloodsaber_adjunct3015.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : SpawnScripts/DownBelow/bloodsaber_adjunct3015.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.04.03 09:04:48
  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(12 + dmgMod))
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(24 + dmgMod))
  13. waypoints(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 waypoints(NPC)
  22. MovementLoopAddLocation(NPC, 8.16, -4, -154.98, 2, 9)
  23. MovementLoopAddLocation(NPC, 8.77, -4, -160.27, 2, 5)
  24. MovementLoopAddLocation(NPC, 5.83, 0.11, -143.26, 2, 5)
  25. MovementLoopAddLocation(NPC, 7.59, -4, -155.2, 2, 5)
  26. MovementLoopAddLocation(NPC, 7.23, -0.42, -147.19, 2, 5)
  27. MovementLoopAddLocation(NPC, 9.12, -4, -156.19, 2, 5)
  28. MovementLoopAddLocation(NPC, 6.91, -0.85, -147.98, 2, 5)
  29. MovementLoopAddLocation(NPC, 5.86, -0.02, -146.18, 2, 5)
  30. MovementLoopAddLocation(NPC, 9.57, -4, -157.38, 2, 5)
  31. end