aMalevolentViper.lua 582 B

12345678910111213141516171819202122
  1. --[[
  2. Script Name : SpawnScripts/Antonica/aMalevolentViper.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.09.24 04:09:12
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC, Spawn)
  9. DmgBonus = math.floor(GetStr(NPC) /10)
  10. SetInfoStructUInt(NPC, "override_primary_weapon", 1)
  11. SetInfoStructUInt(NPC, "primary_weapon_damage_low", 8 + DmgBonus)
  12. SetInfoStructUInt(NPC, "primary_weapon_damage_high", 15 + DmgBonus)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end