Direspike.lua 873 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/Direspike.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.06 06:09:11
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC)
  10. local dmgMod = GetStr(NPC)/10
  11. Named(NPC)
  12. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  13. SetInfoStructUInt(NPC, "primary_weapon_damage_low", 3 + dmgMod)
  14. SetInfoStructUInt(NPC, "primary_weapon_damage_high", 7 + dmgMod)
  15. SetInfoStructUInt(NPC, "hp_regen_override", 1)
  16. SetInfoStructSInt(NPC, "hp_regen", 0)
  17. SetInfoStructUInt(NPC, "pw_regen_override", 1)
  18. SetInfoStructSInt(NPC, "pw_regen", 0)
  19. RandomMovement(NPC, Spawn, 9, -9, 2, 8, 15)
  20. end
  21. function respawn(NPC, Spawn)
  22. spawn(NPC)
  23. end
  24. function hailed(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. end