anAlphaWolf.lua 754 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : SpawnScripts/IsleRefuge1/anAlphaWolf.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.03.09 09:03:20
  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", 5 + dmgMod)
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_high", 11 + 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. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. end
  21. function respawn(NPC)
  22. spawn(NPC)
  23. end