Garry's Mod

Garry's Mod

[SCP] Enhanced SCP-106
 This topic has been pinned, so it's probably important
Guthen  [developer] 17 Jul, 2021 @ 12:10pm
How to fix collision issue with CPTBase
The issue with CPTBase seams to be recurrent so I took some time to make a code to fix CPTBase's collision issue.

Put this code at lua/autorun/server/cptbase_collision_fix.lua (you will have to create the file) :
-- fix CPTBase's hook who conflict with my SCP-106 addon timer.Simple( 0, function() for k, v in pairs( hook.GetTable()["ShouldCollide"] ) do if k:find( "CPTBase" ) then hook.Add( "ShouldCollide", k, function( ent1, ent2 ) if ent1:GetClass() == "cpt_ai_pathfinding" && ent2 == ent1:GetOwner() then return false end end ) break end end end )
Last edited by Guthen; 17 Jul, 2021 @ 3:40pm
< >
Showing 1-3 of 3 comments
๖ۣۜFläme 17 Jul, 2021 @ 3:10pm 
Thanks, where does this go? Gmod, the addon or CPTBase addon?
๖ۣۜFläme 17 Jul, 2021 @ 3:32pm 
Great Thanks! It fixed it :)
Guthen  [developer] 17 Jul, 2021 @ 3:38pm 
Originally posted by ๖ۣۜFläme:
Thanks, where does this go? Gmod, the addon or CPTBase addon?
I presume you figured out but for other people who wonder also, put it either from garrysmod folder or from an addon folder

Originally posted by ๖ۣۜFläme:
Great Thanks! It fixed it :)
No problem, thankx to you for confirming the fix :)
Last edited by Guthen; 17 Jul, 2021 @ 3:39pm
< >
Showing 1-3 of 3 comments
Per page: 1530 50