9
3

TheCreeper.lua 704 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : SpawnScripts/DownBelow_Classic/TheCreeper.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.01.09 09:01:25
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. dmgMod = GetStr(NPC)/10
  11. Named(NPC)
  12. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  13. SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(15 + dmgMod))
  14. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(26 + dmgMod))
  15. SetSeeHide(NPC,1)
  16. SetSeeInvis(NPC,1)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. end
  21. function respawn(NPC)
  22. spawn(NPC)
  23. end