dds a proper canUseTopic check to gp (#18072)
dds a proper canUseTopic check to gp (#18072)

also merges range check with canUseTopic via be_close flag
AsV9/yogstation,Buggy123/-tg-station,tgstation/-tg-station,JJRcop/-tg-station,Cheridan/-tg-station,erwgd/-tg-station,Aloraydrel/-tg-station,Jalleo/-tg-station,utahclock/yogstation,MrStonedOne/tgstation,XDTM/tgstation,Y0SH1M4S73R/-tg-station,paprka/-tg-station,tigercat2000/-tg-station,ike709/FTL13,balohmatevz/-tg-station,TheRealGLH/-tg-station,Niknakflak/-tg-station,anconfuzedrock/tgstation,posttk421/tgstation,Incoming5643/-tg-station,ShadowDeath6/-tg-station-yog-rebase,ChayseRamsay/Soteria-v3,JStheguy/tgstation,TehZombehz/-tg-station,InsaneHyena/tgstation,OliBomby/yogstation-1,nullbear/-tg-station,GunHog/-tg-station,Maks750rus/-tg-station,JStheguy/tgstation,loqoman/tgstation,Cruix/-tg-station,ITBlackwood/FTL13,OliBomby/yogstation-1,XDTM/tgstation,Profakos/tgstation,TheRealGLH/-tg-station,McBawbaggings/HippieStation,TalkingCactus/tgstation,Fox-McCloud/-tg-station,vcordie/tgstation,LegendaryPoro/FTL13,xxalpha/-tg-station,NicholasM10/-tg-station,Buggy123/-tg-station,QualityVan/tgstation,Cheridan/-tg-station,kevinz000/-tg-station,ZioZan/tgstation,CrAzYPiLoT-SS13/FTL13-1,Aranclanos/-tg-station,Cruix/-tg-station,4dplanner/tgstation,Xhuis/tgfork,blockheads/-tg-station,McBawbaggings/HippieStation,AnturK/-tg-station,Time-Green/-tg-station-yog-rebase,A-t48/-tg-station,Xhuis/-tg-station,ITBlackwood/FTL13,Niknakflak/-tg-station,HippieStation/HippieStation,loqoman/tgstation,Y0SH1M4S73R/-tg-station,Yoshmaster/-tg-station,CosmicScientist/-tg-station,PKPenguin321/-tg-station,Time-Green/-tg-station-yog-rebase,4dplanner/tgstation,dannyy3566/FTL13,nicbn/tgstation,MrStonedOne/tgstation,tgstation/tgstation,Super3222/yogstation,OBA-code/tgstation,JJRcop/tgstation,Thunder12345/-tg-station,kingofkosmos/-tg-station,Mervill/tgstation,McBawbaggings/HippieStation,xxalpha/-tg-station,anconfuzedrock/tgstation,Memendia/HippieStation,Jordie0608/tgstation,HippieStation/HippieStation,duncathan/-tg-station,Jordie0608/-tg-station,coiax/-tg-station,Xhuis/tgfork,greytide/greytide,Super3222/yogstation,kyrahabattoir/-tg-station,Kraseo/-tg-station,F-OS/tgstation,ohnopigeons/tgstation,Razharas/-tg-station,PKPenguin321/-tg-station,ToGWtF/yogstation,Yoshmaster/-tg-station,Arianya/tgstation,TehZombehz/-tg-station,Cheridan/tgstation,ToGWtF/yogstation,Cruix/-tg-station-yog-rebase,ChangelingRain/-tg-station,ToGWtF/yogstation,Robustin/tgstation,posttk421/tgstation,AdamElTablawy/yogstation-1,Razharas/-tg-station,TheVekter/-tg-station,Cruix/-tg-station,CosmicScientist/-tg-station,Xhuis/tgfork,TheDreamweaver/-tg-station,xxalpha/-tg-station,Cruix/-tg-station,TehZombehz/-tg-station,McBawbaggings/HippieStation,F-OS/tgstation,Fox-McCloud/-tg-station,ChangelingRain/-tg-station,Memendia/HippieStation,tgstation/tgstation,WJohn/-tg-station,nicbn/tgstation,Incoming5643/-tg-station,kingofkosmos/-tg-station,Aranclanos/-tg-station,Penguaro/tgstation,Y0SH1M4S73R/-tg-station,ike709/FTL13,CosmicScientist/-tg-station,Cruix/-tg-station-yog-rebase,Core0verload/-tg-station,Expletive/tgstation,Groxic/tgstation,TheOneForgotten/white,Penguaro/tgstation,Incoming5643/-tg-station,MrStonedOne/tgstation,LegendaryPoro/FTL13,NicholasM10/-tg-station,SamuelRowe/-tg-station,nicbn/tgstation,Bawhoppen/-tg-station,MicroWorldwide/SS13-TG-station,Razharas/-tg-station,OBA-code/tgstation,MicroWorldwide/SS13-TG-station,LegendaryPoro/FTL13,Tacolizard/tgstation,anconfuzedrock/tgstation,Iamgoofball/-tg-station,Thunder12345/-tg-station,CPTANT/-tg-station,phil235/-tg-station,Xhuis/-tg-station,PKPenguin321/-tg-station,CrAzYPiLoT-SS13/FTL13,JJRcop/tgstation,TalkingCactus/tgstation,Y0SH1M4S73R/-tg-station,Tokiko1/tgstation,Shadowlight213/-tg-station,riftstation/riftstation,bear1ake/-tg-station,Nickvr628/FTL13,Thunder12345/-tg-station,Arianya/tgstation,coiax/-tg-station,Aranclanos/-tg-station,kingofkosmos/-tg-station,paprka/-tg-station,checkraisefold/fulpstation,Cruix/-tg-station-yog-rebase,Tacolizard/tgstation,Buggy123/-tg-station,ohnopigeons/tgstation,Tacolizard/tgstation,LegendaryPoro/FTL13,riftstation/riftstation,LLA-Gaming/LS13,NicholasM10/-tg-station,kevinz000/-tg-station,Bawhoppen/-tg-station,Buggy123/-tg-station,Razharas/-tg-station,ChangelingRain/-tg-station,Zostroll/yogstation,Shadowlight213/-tg-station,yogstation13/-tg-station-yog-rebase,Aranclanos/-tg-station,OliBomby/yogstation-1,lordpidey/-tg-station,Cruix/-tg-station,JJRcop/tgstation,Groxic/tgstation,paprka/-tg-station,Bawhoppen/-tg-station,Profakos/tgstation,paprka/-tg-station,GunHog/-tg-station,optimumtact/-tg-station,infinitystation/-tg-station,Profakos/tgstation,feemjmeem/-tg-station,Bawhoppen/-tg-station,octareenroon91/-tg-station,MicroWorldwide/SS13-TG-station,Xhuis/AquaStation,TheSarkazmus/Faster-Than-Lizard-13,F-OS/tgstation,Haevacht/tgstation,lzimann/-tg-station,TehZombehz/-tg-station,nullbear/-tg-station,blockheads/-tg-station,PKPenguin321/-tg-station,Anonus/-tg-station,kingofkosmos/-tg-station,TehZombehz/-tg-station,securitycopper/-tg-station,riftstation/riftstation,kyrahabattoir/-tg-station,HippieStation/HippieStation,securitycopper/-tg-station,Memendia/HippieStation,Bawhoppen/-tg-station,utahclock/yogstation,infinitystation/-tg-station,anconfuzedrock/tgstation,Qwertyon666/Necro,balohmatevz/-tg-station,ike709/FTL13,Arianya/tgstation,lordpidey/-tg-station,Groxic/yogstation,Mark9013100/tgstation-m9,Aloraydrel/-tg-station,athompson11/Soteria-v3,AuroranAI/FTL13,loqoman/tgstation,optimumtact/-tg-station,Penguaro/tgstation,CosmicScientist/-tg-station,Groxic/yogstation,TheVekter/-tg-station,chickenboy10/tgstation,ShadowDeath6/-tg-station-yog-rebase,NicholasM10/-tg-station,MicroWorldwide/SS13-TG-station,PKPenguin321/-tg-station,Poojawa/tgstation-fork,MrStonedOne/-tg-station,greytide/greytide,JStheguy/tgstation,MrStonedOne/tgstation,infinitystation/-tg-station,Jordie0608/tgstation,loqoman/tgstation,TheDreamweaver/-tg-station,Memendia/HippieStation,paprka/-tg-station,kevinz000/-tg-station,AuroranAI/FTL13,Qwertyon666/Necro,Memendia/HippieStation,tgstation/tgstation,nullbear/-tg-station,anconfuzedrock/tgstation,CPTANT/-tg-station,LLA-Gaming/LS13,checkraisefold/fulpstation,JStheguy/tgstation,feemjmeem/-tg-station,tgstation/-tg-station,HippieStation/HippieStation,Bawhoppen/-tg-station,OBA-code/tgstation,coiax/-tg-station,Jalleo/-tg-station,kevinz000/-tg-station,utahclock/yogstation,ShizCalev/tgstation,Mervill/tgstation,GuyonBroadway/HippieStation,Y0SH1M4S73R/-tg-station,feemjmeem/-tg-station,Tacolizard/tgstation,xxalpha/-tg-station,WJohn/-tg-station,tigercat2000/-tg-station,OBA-code/tgstation,Y0SH1M4S73R/-tg-station,Xhuis/tgfork,Crexfu/tgstation,WJohn/-tg-station,Core0verload/-tg-station,utahclock/yogstation,X-TheDark/yogstation,McBawbaggings/HippieStation,OliBomby/yogstation-1,ChangelingRain/-tg-station,JJRcop/tgstation,Zostroll/yogstation,Anonus/-tg-station,Shadowlight213/-tg-station,Buggy123/-tg-station,Tokiko1/tgstation,Aloraydrel/-tg-station,NicholasM10/-tg-station,utahclock/yogstation,MicroWorldwide/SS13-TG-station,HippieStationCode/HippieStation13,ohnopigeons/tgstation,Cheridan/-tg-station,PJB3005/tgstation,Groxic/tgstation,Memendia/HippieStation13,lordpidey/-tg-station,LLA-Gaming/LS13,ShadowDeath6/-tg-station-yog-rebase,GuyonBroadway/HippieStation,Shadowlight213/-tg-station,MicroWorldwide/SS13-TG-station,QualityVan/tgstation,Core0verload/-tg-station,Shadowlight213/-tg-station,Memendia/HippieStation,LanCartwright/-tg-station,Aranclanos/-tg-station,duncathan/-tg-station,securitycopper/-tg-station,tgstation/tgstation,MrStonedOne/-tg-station,Jordie0608/tgstation,erwgd/-tg-station,matskuman5/yogstation,dannyy3566/FTL13,QualityVan/tgstation,checkraisefold/fulpstation,Shadowlight213/-tg-station,Tacolizard/tgstation,Qwertyon666/Necro,neersighted/tgstation,Bawhoppen/-tg-station,XDTM/tgstation,Anonus/-tg-station,kevinz000/-tg-station,Xhuis/AquaStation,Memendia/HippieStation13,nicbn/tgstation,matskuman5/yogstation,Qwertyon666/Necro,Razharas/-tg-station,Bawhoppen/-tg-station,Cyberboss/tgstation,Niknakflak/-tg-station,Fox-McCloud/-tg-station,Cheridan/tgstation,Jalleo/-tg-station,Arianya/tgstation,TheDreamweaver/-tg-station,Zostroll/yogstation,chickenboy10/tgstation,Xhuis/-tg-station,PKPenguin321/-tg-station,McBawbaggings/HippieStation,CosmicScientist/-tg-station,Osokorn/tgstation,kyrahabattoir/-tg-station,Xhuis/-tg-station,Tokiko1/tgstation,Mark9013100/tgstation-m9,F-OS/tgstation,Cruix/-tg-station-yog-rebase,tgstation/tgstation,Kraseo/-tg-station,AnturK/-tg-station,neersighted/tgstation,Xhuis/tgfork,Cheridan/tgstation,TheOneForgotten/white,HippieStationCode/HippieStation13,Hollexian/FTL13,Mark9013100/tgstation-m9,Incoming5643/-tg-station,Memendia/HippieStation,tgstation/-tg-station,AdamElTablawy/yogstation-1,Xhuis/tgfork,Crexfu/tgstation,Jordie0608/-tg-station,ShadowDeath6/-tg-station-yog-rebase,Groxic/yogstation,kingofkosmos/-tg-station,LLA-Gaming/LS13,Kirill1243/-tg-station,JJRcop/-tg-station,Cheridan/tgstation,xxalpha/-tg-station,XDTM/tgstation,ChangelingRain/-tg-station,CrAzYPiLoT-SS13/FTL13-1,blockheads/-tg-station,Groxic/yogstation,GuyonBroadway/HippieStation,Buggy123/-tg-station,A-t48/-tg-station,nullbear/-tg-station,paprka/-tg-station,HippieStationCode/HippieStation13,PKPenguin321/-tg-station,dannyy3566/FTL13,Cruix/-tg-station-yog-rebase,CrAzYPiLoT-SS13/FTL13,Cyberboss/tgstation,Thunder12345/-tg-station,TheDreamweaver/-tg-station,Profakos/tgstation,AdamElTablawy/yogstation-1,Jordie0608/tgstation,Cruix/-tg-station,Expletive/tgstation,ITBlackwood/FTL13,Ultimate-Chimera/tgstation,WJohn/-tg-station,lordpidey/-tg-station,Fox-McCloud/-tg-station,duncathan/-tg-station,optimumtact/-tg-station,Penguaro/tgstation,Jalleo/-tg-station,lordpidey/-tg-station,Cyberboss/tgstation,Robustin/tgstation,ChayseRamsay/Soteria-v3,anconfuzedrock/tgstation,Fox-McCloud/-tg-station,kingofkosmos/-tg-station,Iamgoofball/-tg-station,Robustin/tgstation,neersighted/tgstation,Poojawa/tgstation-fork,Robustin/tgstation,yogstation13/-tg-station-yog-rebase,AsV9/yogstation,SamuelRowe/-tg-station,Hollexian/FTL13,yogstation13/-tg-station-yog-rebase,Time-Green/-tg-station-yog-rebase,SamuelRowe/-tg-station,MrStonedOne/tgstation,MrStonedOne/tgstation,F-OS/tgstation,AnturK/-tg-station,Xhuis/AquaStation,TehZombehz/-tg-station,ike709/FTL13,TheSarkazmus/Faster-Than-Lizard-13,X-TheDark/yogstation,ShizCalev/tgstation,HippieStation/HippieStation,Buggy123/-tg-station,ShizCalev/tgstation,GuyonBroadway/HippieStation,ZioZan/tgstation,feemjmeem/-tg-station,InsaneHyena/tgstation,Stealthkibbler/FTL13,MrStonedOne/-tg-station,feemjmeem/-tg-station,posttk421/tgstation,TheSarkazmus/Faster-Than-Lizard-13,Tacolizard/tgstation,infinitystation/-tg-station,TheSarkazmus/Faster-Than-Lizard-13,riftstation/riftstation,bear1ake/-tg-station,GuyonBroadway/HippieStation,CPTANT/-tg-station,Incoming5643/-tg-station,greytide/greytide,GuyonBroadway/HippieStation,infinitystation/-tg-station,vcordie/tgstation,utahclock/yogstation,loqoman/tgstation,dannyy3566/FTL13,loqoman/tgstation,Cruix/-tg-station,utahclock/yogstation,loqoman/tgstation,F-OS/tgstation,PJB3005/tgstation,Nickvr628/FTL13,Stealthkibbler/FTL13,4dplanner/tgstation,paprka/-tg-station,securitycopper/-tg-station,TehZombehz/-tg-station,ShizCalev/tgstation,ShizCalev/tgstation,balohmatevz/-tg-station,QualityVan/tgstation,Aloraydrel/-tg-station,riftstation/riftstation,riftstation/riftstation,neersighted/tgstation,lzimann/-tg-station,Haevacht/tgstation,Fox-McCloud/-tg-station,AnturK/-tg-station,HippieStation/HippieStation,Anonus/-tg-station,Arianya/tgstation,XDTM/tgstation,A-t48/-tg-station,MrStonedOne/tgstation,QualityVan/tgstation,Jordie0608/-tg-station,utahclock/yogstation,matskuman5/yogstation,octareenroon91/-tg-station,Hollexian/FTL13,InsaneHyena/tgstation,CPTANT/-tg-station,balohmatevz/-tg-station,Jordie0608/tgstation,CosmicScientist/-tg-station,Cruix/-tg-station-yog-rebase,Cruix/-tg-station-yog-rebase,AnturK/-tg-station,ChayseRamsay/Soteria-v3,securitycopper/-tg-station,checkraisefold/fulpstation,Memendia/HippieStation13,Maks750rus/-tg-station,chickenboy10/tgstation,coiax/-tg-station,Niknakflak/-tg-station,octareenroon91/-tg-station,optimumtact/-tg-station,yogstation13/-tg-station-yog-rebase,dannno/-tg-station,CPTANT/-tg-station,JStheguy/tgstation,X-TheDark/yogstation,kevinz000/-tg-station,NicholasM10/-tg-station,ShizCalev/tgstation,Maks750rus/-tg-station,Tacolizard/tgstation,Haevacht/tgstation,tgstation/tgstation,feemjmeem/-tg-station,securitycopper/-tg-station,PJB3005/tgstation,McBawbaggings/HippieStation,Jalleo/-tg-station,Mark9013100/tgstation-m9,Hollexian/FTL13,blockheads/-tg-station,neersighted/tgstation,kevinz000/-tg-station,Jordie0608/tgstation,Super3222/yogstation,tgstation/tgstation,Profakos/tgstation,CrAzYPiLoT-SS13/FTL13,GunHog/-tg-station,Tacolizard/tgstation,Profakos/tgstation,Niknakflak/-tg-station,Kraseo/-tg-station,Cyberboss/tgstation,Kraseo/-tg-station,Xhuis/tgfork,HippieStationCode/HippieStation13,McBawbaggings/HippieStation,tgstation/-tg-station,GuyonBroadway/HippieStation,PKPenguin321/-tg-station,JJRcop/tgstation,Poojawa/tgstation-fork,neersighted/tgstation,TheOneForgotten/white,optimumtact/-tg-station,HippieStation/HippieStation,Memendia/HippieStation,Mervill/tgstation,CrAzYPiLoT-SS13/FTL13,lzimann/-tg-station,A-t48/-tg-station,TheVekter/-tg-station,phil235/-tg-station,JJRcop/-tg-station,nicbn/tgstation,Osokorn/tgstation,securitycopper/-tg-station,xxalpha/-tg-station,phil235/-tg-station,xxalpha/-tg-station,athompson11/Soteria-v3,lzimann/tgstation,kevinz000/-tg-station,4dplanner/tgstation,Poojawa/tgstation-fork,Cheridan/-tg-station,AuroranAI/FTL13,Jordie0608/-tg-station,Groxic/tgstation,Thunder12345/-tg-station,tgstation/tgstation,Iamgoofball/-tg-station,X-TheDark/yogstation,Ultimate-Chimera/tgstation,LanCartwright/-tg-station,4dplanner/tgstation,riftstation/riftstation,Razharas/-tg-station,4dplanner/tgstation,QualityVan/tgstation,TheRealGLH/-tg-station,LanCartwright/-tg-station,Niknakflak/-tg-station,JStheguy/tgstation,MrStonedOne/-tg-station,posttk421/tgstation,Iamgoofball/-tg-station,CPTANT/-tg-station,lzimann/-tg-station,Y0SH1M4S73R/-tg-station,lzimann/tgstation,securitycopper/-tg-station,JJRcop/-tg-station,Crexfu/tgstation,bear1ake/-tg-station,Yoshmaster/-tg-station,Razharas/-tg-station,Jordie0608/tgstation,MicroWorldwide/SS13-TG-station,Robustin/tgstation,GuyonBroadway/HippieStation,LanCartwright/-tg-station,TheVekter/-tg-station,PJB3005/tgstation,Aranclanos/-tg-station,Time-Green/-tg-station-yog-rebase,AdamElTablawy/yogstation-1,Osokorn/tgstation,Buggy123/-tg-station,feemjmeem/-tg-station,Zostroll/yogstation,Aranclanos/-tg-station,Incoming5643/-tg-station,dannno/-tg-station,Robustin/tgstation,Cruix/-tg-station,greytide/greytide,Jalleo/-tg-station,TheOneForgotten/white,NicholasM10/-tg-station,Shadowlight213/-tg-station,xxalpha/-tg-station,octareenroon91/-tg-station,Valanthe500/Soteria-v3,kingofkosmos/-tg-station,Maks750rus/-tg-station,Valanthe500/Soteria-v3,Incoming5643/-tg-station,TalkingCactus/tgstation,dannno/-tg-station,Memendia/HippieStation13,Aranclanos/-tg-station,dannno/-tg-station,Cyberboss/tgstation,AsV9/yogstation,ChangelingRain/-tg-station,chickenboy10/tgstation,Ultimate-Chimera/tgstation,ChangelingRain/-tg-station,InsaneHyena/tgstation,CrAzYPiLoT-SS13/FTL13-1,Cruix/-tg-station-yog-rebase,Xhuis/tgfork,TalkingCactus/tgstation,Valanthe500/Soteria-v3,bear1ake/-tg-station,ChayseRamsay/Soteria-v3,coiax/-tg-station,XDTM/tgstation,Expletive/tgstation,lordpidey/-tg-station,TheRealGLH/-tg-station,Tokiko1/tgstation,Kirill1243/-tg-station,Shadowlight213/-tg-station,Thunder12345/-tg-station,ohnopigeons/tgstation,GunHog/-tg-station,WJohn/-tg-station,ITBlackwood/FTL13,Valanthe500/Soteria-v3,Incoming5643/-tg-station,F-OS/tgstation,CPTANT/-tg-station,Jordie0608/tgstation,optimumtact/-tg-station,TheVekter/-tg-station,octareenroon91/-tg-station,CosmicScientist/-tg-station,loqoman/tgstation,ZioZan/tgstation,feemjmeem/-tg-station,Robustin/tgstation,Robustin/tgstation,Mark9013100/tgstation-m9,ShizCalev/tgstation,Super3222/yogstation,GunHog/-tg-station,TehZombehz/-tg-station,QualityVan/tgstation,ToGWtF/yogstation,kyrahabattoir/-tg-station,Ultimate-Chimera/tgstation,AsV9/yogstation,Expletive/tgstation,vcordie/tgstation,Arianya/tgstation,Fox-McCloud/-tg-station,Razharas/-tg-station,Yoshmaster/-tg-station,F-OS/tgstation,ShizCalev/tgstation,vcordie/tgstation,lordpidey/-tg-station,Niknakflak/-tg-station,Kirill1243/-tg-station,Thunder12345/-tg-station,optimumtact/-tg-station,MicroWorldwide/SS13-TG-station,Core0verload/-tg-station,Jalleo/-tg-station,Cyberboss/tgstation,AuroranAI/FTL13,Xhuis/AquaStation,athompson11/Soteria-v3,Profakos/tgstation,XDTM/tgstation,lzimann/tgstation,AnturK/-tg-station,Mervill/tgstation,coiax/-tg-station,paprka/-tg-station,Nickvr628/FTL13,JJRcop/tgstation,Crexfu/tgstation,WJohn/-tg-station,GunHog/-tg-station,matskuman5/yogstation,Mark9013100/tgstation-m9,lordpidey/-tg-station,CosmicScientist/-tg-station,Haevacht/tgstation,Nickvr628/FTL13,Stealthkibbler/FTL13,JJRcop/tgstation,4dplanner/tgstation,ChangelingRain/-tg-station,duncathan/-tg-station,TheVekter/-tg-station,infinitystation/-tg-station,AnturK/-tg-station,neersighted/tgstation,neersighted/tgstation,WJohn/-tg-station,CPTANT/-tg-station,CrAzYPiLoT-SS13/FTL13-1,Poojawa/tgstation-fork,coiax/-tg-station,infinitystation/-tg-station,NicholasM10/-tg-station,anconfuzedrock/tgstation,TheVekter/-tg-station,Poojawa/tgstation-fork,Stealthkibbler/FTL13,tigercat2000/-tg-station,tigercat2000/-tg-station,Y0SH1M4S73R/-tg-station,infinitystation/-tg-station,Kirill1243/-tg-station,SamuelRowe/-tg-station,Mark9013100/tgstation-m9,nicbn/tgstation,JStheguy/tgstation,GunHog/-tg-station,athompson11/Soteria-v3,Cyberboss/tgstation,MrStonedOne/tgstation,Arianya/tgstation,Poojawa/tgstation-fork,riftstation/riftstation,erwgd/-tg-station,Jalleo/-tg-station,nicbn/tgstation,phil235/-tg-station,4dplanner/tgstation