atidewalkergoliath.lua 705 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : SpawnScripts/Antonica/atidewalkergoliath.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.07.22 08:07:44
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. dmgMod = GetStr(NPC)/10
  11. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(65 + dmgMod))
  13. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(105 + dmgMod))
  14. RandomMovement(NPC, Spawn, 12, -12, 2, 8, 15)
  15. end
  16. function respawn(NPC, Spawn)
  17. spawn(NPC)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. end