diff --git a/source b/source index f0de5090..31b8f6e6 100644 --- a/source +++ b/source @@ -4638,6 +4638,7 @@ CMDs[#CMDs + 1] = {NAME = 'tweengotocam / tgotocam', DESC = 'Tweens you to the l CMDs[#CMDs + 1] = {NAME = 'firstp', DESC = 'Forces camera to go into first person'} CMDs[#CMDs + 1] = {NAME = 'thirdp', DESC = 'Allows camera to go into third person'} CMDs[#CMDs + 1] = {NAME = 'noclipcam / nccam', DESC = 'Allows camera to go through objects like walls'} +CMDs[#CMDs + 1] = {NAME = 'unnoclipcam / unnccam / ccam', DESC = 'Restores normal camera collision'} CMDs[#CMDs + 1] = {NAME = 'maxzoom [num]', DESC = 'Maximum camera zoom'} CMDs[#CMDs + 1] = {NAME = 'minzoom [num]', DESC = 'Minimum camera zoom'} CMDs[#CMDs + 1] = {NAME = 'camdistance [num]', DESC = 'Changes camera distance from your player'} @@ -8642,6 +8643,28 @@ addcmd('noclipcam', {'nccam'}, function(args, speaker) end end) +addcmd('unnoclipcam', {'unnccam', 'ccam'}, function(args, speaker) + local sc = (debug and debug.setconstant) or setconstant + local gc = (debug and debug.getconstants) or getconstants + if not sc or not getgc or not gc then + return notify('Incompatible Exploit', 'Your exploit does not support this command (missing setconstant or getconstants or getgc)') + end + + local pop = speaker.PlayerScripts.PlayerModule.CameraModule.ZoomController.Popper + + for _, v in pairs(getgc()) do + if type(v) == 'function' and getfenv(v).script == pop then + for i, v1 in pairs(gc(v)) do + if tonumber(v1) == 0 then + sc(v, i, 0.25) + elseif tonumber(v1) == 0.25 then + sc(v, i, 0) + end + end + end + end +end) + addcmd('maxzoom',{},function(args, speaker) speaker.CameraMaxZoomDistance = args[1] end)