AFallenPrince.lua 644 B

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