Permalink
Browse files

Sandbox: Override Spawnlist NPC Health Option

And make the npc_helicopter take 6 or so rockets to die, instead of 45 (
episodic behaviour )
  • Loading branch information...
robotboy655 committed Nov 25, 2016
1 parent de1a686 commit 8c1202ba5a8fb5e0514916ff9ec1959e0c708d48
Showing with 5 additions and 0 deletions.
  1. +4 −0 garrysmod/gamemodes/sandbox/gamemode/commands.lua
  2. +1 −0 garrysmod/lua/autorun/base_npcs.lua
@@ -412,6 +412,10 @@ local function InternalSpawnNPC( Player, Position, Normal, Class, Equipment, Spa
NPC:DropToFloor()
end
if ( NPCData.Health ) then
NPC:SetHealth( NPCData.Health )
end
return NPC
end
@@ -389,6 +389,7 @@ AddNPC( {
Class = "npc_helicopter",
Category = Category,
Offset = 300,
Health = 600,
KeyValues = { SquadName = "overwatch" }
} )

0 comments on commit 8c1202b

Please sign in to comment.