23 lines
No EOL
592 B
Lua
Executable file
23 lines
No EOL
592 B
Lua
Executable file
--[[
|
|
Script Name : SpawnScripts/Peatbog_Classic/TheSunWolf.lua
|
|
Script Author : LordPazuzu
|
|
Script Date : 2023.09.25 09:09:27
|
|
Script Purpose :
|
|
:
|
|
--]]
|
|
|
|
function spawn(NPC)
|
|
dmgMod = GetStr(NPC)/10
|
|
SetInfoStructUInt(NPC, "override_primary_weapon", 1)
|
|
SetInfoStructUInt(NPC, "primary_weapon_damage_low", math.floor(14 + dmgMod))
|
|
SetInfoStructUInt(NPC, "primary_weapon_damage_high", math.floor(26 + dmgMod))
|
|
|
|
end
|
|
|
|
function hailed(NPC, Spawn)
|
|
FaceTarget(NPC, Spawn)
|
|
end
|
|
|
|
function respawn(NPC)
|
|
spawn(NPC)
|
|
end |