9
3

aRabidBadger.lua 718 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/aRabidBadger.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.11 12:10:52
  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(10 + dmgMod))
  14. SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(22 + dmgMod))
  15. RandomMovement(NPC, Spawn, 6, -6, 2, 8, 15)
  16. end
  17. function respawn(NPC, Spawn)
  18. spawn(NPC)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. end