aTitanbeetle.lua 819 B

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