Skip to content

Commit

Permalink
Added NPCData.SnapToNormal
Browse files Browse the repository at this point in the history
  • Loading branch information
robotboy655 committed Mar 8, 2024
1 parent 4f726d3 commit 0876b58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions garrysmod/gamemodes/sandbox/gamemode/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,10 @@ local function InternalSpawnNPC( NPCData, ply, Position, Normal, Class, Equipmen

NPC:SetAngles( Angles )

if ( NPCData.SnapToNormal ) then
NPC:SetAngles( Normal:Angle() )
end

--
-- Does this NPC have a specified model? If so, use it.
--
Expand Down

0 comments on commit 0876b58

Please sign in to comment.