local function PopulateRagdollSBXToolMenu(pnl) pnl:CheckBox("Enabled", "zcnpci_enabled") pnl:ControlHelp("Enable or disable the addon.") pnl:Help(" ") pnl:NumSlider("Stumble time", "zcnpci_stumble_time", 0, 10, 3) pnl:ControlHelp("How long the ragdoll should stumble for.") pnl:NumSlider("Wound grab chance", "zcnpci_woundgrab_chance", 0, 1, 3) pnl:ControlHelp("The chance the ragdoll will grab it's wound when shot.") pnl:NumSlider("Wound grab time", "zcnpci_woundgrab_time", 0, 10, 3) pnl:ControlHelp("How long the ragdoll should hold its wound.") pnl:Help(" ") pnl:NumSlider("Activation range", "zcnpci_active_range", 0, 5000, 0) pnl:ControlHelp("How close the ragdoll has to be to a player to have euphoria physics") pnl:CheckBox("Always activate on player kill", "zcnpci_always_active_on_player_kill") pnl:ControlHelp("If on, all player-killed ragdolls will be activated regardless of other factors.") end if engine.ActiveGamemode() == "sandbox" then hook.Add("AddToolMenuCategories", "ZCNPCICategory", function() spawnmenu.AddToolCategory("Utilities", "zcnpci", "Z-City NPCi") end) hook.Add("PopulateToolMenu", "ZCNPCIMenuSettings", function() spawnmenu.AddToolMenuOption("Utilities", "zcnpci", "RagdollSettings", "Ragdoll", "", "", function(pnl) pnl:ClearControls() PopulateRagdollSBXToolMenu(pnl) end) end) end