{"action":"created","comment":{"url":"https://api.github.com/repos/garrynewman/garrysmod/pulls/comments/85640855","pull_request_review_id":6347903,"id":85640855,"diff_hunk":"@@ -189,6 +206,11 @@ function CORPSE.ShowSearch(ply, rag, covert, long_range)\n    local words = rag.last_words or \"\"\r\n    local hshot = rag.was_headshot or false\r\n    local dtime = rag.time or 0\r\n+   \r\n+   -- opportunity for addons to introduce ways for traitors(ideally) to interrupt corpse searching.\r\n+   if hook.Run(\"TTTInterruptCorpseSearch\", ply, rag, traitor) then\r\n+      return\r\n+   end\r","path":"garrysmod/gamemodes/terrortown/gamemode/corpse.lua","position":46,"original_position":46,"commit_id":"16745c2cfc871c1ae46b75e8443dd248babb88a9","original_commit_id":"16745c2cfc871c1ae46b75e8443dd248babb88a9","user":{"login":"Faerachnidendro","id":8769326,"avatar_url":"https://avatars.githubusercontent.com/u/8769326?v=3","gravatar_id":"","url":"https://api.github.com/users/Faerachnidendro","html_url":"https://github.com/Faerachnidendro","followers_url":"https://api.github.com/users/Faerachnidendro/followers","following_url":"https://api.github.com/users/Faerachnidendro/following{/other_user}","gists_url":"https://api.github.com/users/Faerachnidendro/gists{/gist_id}","starred_url":"https://api.github.com/users/Faerachnidendro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Faerachnidendro/subscriptions","organizations_url":"https://api.github.com/users/Faerachnidendro/orgs","repos_url":"https://api.github.com/users/Faerachnidendro/repos","events_url":"https://api.github.com/users/Faerachnidendro/events{/privacy}","received_events_url":"https://api.github.com/users/Faerachnidendro/received_events","type":"User","site_admin":false},"body":"I was going to leave this as is, so that modders are less inclined to override this default behavior of preventing id/search for burning corpses - are you sure you'd prefer this to be in the GM hook func?","created_at":"2016-10-29T14:21:07Z","updated_at":"2016-10-29T14:21:07Z","html_url":"https://github.com/garrynewman/garrysmod/pull/1268#discussion_r85640855","pull_request_url":"https://api.github.com/repos/garrynewman/garrysmod/pulls/1268","_links":{"self":{"href":"https://api.github.com/repos/garrynewman/garrysmod/pulls/comments/85640855"},"html":{"href":"https://github.com/garrynewman/garrysmod/pull/1268#discussion_r85640855"},"pull_request":{"href":"https://api.github.com/repos/garrynewman/garrysmod/pulls/1268"}}},"pull_request":{"url":"https://api.github.com/repos/garrynewman/garrysmod/pulls/1268","id":91390713,"html_url":"https://github.com/garrynewman/garrysmod/pull/1268","diff_url":"https://github.com/garrynewman/garrysmod/pull/1268.diff","patch_url":"https://github.com/garrynewman/garrysmod/pull/1268.patch","issue_url":"https://api.github.com/repos/garrynewman/garrysmod/issues/1268","number":1268,"state":"open","locked":false,"title":"TTT: Add hooks to allow easier modification of corpse id/search behavior.","user":{"login":"Faerachnidendro","id":8769326,"avatar_url":"https://avatars.githubusercontent.com/u/8769326?v=3","gravatar_id":"","url":"https://api.github.com/users/Faerachnidendro","html_url":"https://github.com/Faerachnidendro","followers_url":"https://api.github.com/users/Faerachnidendro/followers","following_url":"https://api.github.com/users/Faerachnidendro/following{/other_user}","gists_url":"https://api.github.com/users/Faerachnidendro/gists{/gist_id}","starred_url":"https://api.github.com/users/Faerachnidendro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Faerachnidendro/subscriptions","organizations_url":"https://api.github.com/users/Faerachnidendro/orgs","repos_url":"https://api.github.com/users/Faerachnidendro/repos","events_url":"https://api.github.com/users/Faerachnidendro/events{/privacy}","received_events_url":"https://api.github.com/users/Faerachnidendro/received_events","type":"User","site_admin":false},"body":"I would like to propose these hook additions which would allow modders (if not just myself, others also) to easily create weapons and entities and other conditions which interrupt the ability for players to identify/search a corpse - without making changes to the corpse.lua files ourselves.\r\nI am happy to privately share examples where this is sorely needed, for at least my own purposes - but let your imagination run wild a bit yourself ;)\r\n\r\nIdeally, this would be something for traitors to benefit from only( and in fair ways pertaining to the use of equipment items ), though it could be abused in ways that really ruin the gameplay - that said, if someone were determined enough to do that, they would almost certainly have done so already with or without such hooks.","created_at":"2016-10-28T14:23:47Z","updated_at":"2016-10-29T14:21:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af8e9201a395f08cfa50b2a3627f125c9c04855a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/garrynewman/garrysmod/pulls/1268/commits","review_comments_url":"https://api.github.com/repos/garrynewman/garrysmod/pulls/1268/comments","review_comment_url":"https://api.github.com/repos/garrynewman/garrysmod/pulls/comments{/number}","comments_url":"https://api.github.com/repos/garrynewman/garrysmod/issues/1268/comments","statuses_url":"https://api.github.com/repos/garrynewman/garrysmod/statuses/16745c2cfc871c1ae46b75e8443dd248babb88a9","head":{"label":"Faerachnidendro:patch-3","ref":"patch-3","sha":"16745c2cfc871c1ae46b75e8443dd248babb88a9","user":{"login":"Faerachnidendro","id":8769326,"avatar_url":"https://avatars.githubusercontent.com/u/8769326?v=3","gravatar_id":"","url":"https://api.github.com/users/Faerachnidendro","html_url":"https://github.com/Faerachnidendro","followers_url":"https://api.github.com/users/Faerachnidendro/followers","following_url":"https://api.github.com/users/Faerachnidendro/following{/other_user}","gists_url":"https://api.github.com/users/Faerachnidendro/gists{/gist_id}","starred_url":"https://api.github.com/users/Faerachnidendro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Faerachnidendro/subscriptions","organizations_url":"https://api.github.com/users/Faerachnidendro/orgs","repos_url":"https://api.github.com/users/Faerachnidendro/repos","events_url":"https://api.github.com/users/Faerachnidendro/events{/privacy}","received_events_url":"https://api.github.com/users/Faerachnidendro/received_events","type":"User","site_admin":false},"repo":{"id":72203991,"name":"garrysmod","full_name":"Faerachnidendro/garrysmod","owner":{"login":"Faerachnidendro","id":8769326,"avatar_url":"https://avatars.githubusercontent.com/u/8769326?v=3","gravatar_id":"","url":"https://api.github.com/users/Faerachnidendro","html_url":"https://github.com/Faerachnidendro","followers_url":"https://api.github.com/users/Faerachnidendro/followers","following_url":"https://api.github.com/users/Faerachnidendro/following{/other_user}","gists_url":"https://api.github.com/users/Faerachnidendro/gists{/gist_id}","starred_url":"https://api.github.com/users/Faerachnidendro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Faerachnidendro/subscriptions","organizations_url":"https://api.github.com/users/Faerachnidendro/orgs","repos_url":"https://api.github.com/users/Faerachnidendro/repos","events_url":"https://api.github.com/users/Faerachnidendro/events{/privacy}","received_events_url":"https://api.github.com/users/Faerachnidendro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Faerachnidendro/garrysmod","description":"Sandbox mod for the Source Engine","fork":true,"url":"https://api.github.com/repos/Faerachnidendro/garrysmod","forks_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/forks","keys_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/teams","hooks_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/hooks","issue_events_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/issues/events{/number}","events_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/events","assignees_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/assignees{/user}","branches_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/branches{/branch}","tags_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/tags","blobs_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/git/refs{/sha}","trees_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/statuses/{sha}","languages_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/languages","stargazers_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/stargazers","contributors_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/contributors","subscribers_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/subscribers","subscription_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/subscription","commits_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/commits{/sha}","git_commits_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/git/commits{/sha}","comments_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/comments{/number}","issue_comment_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/issues/comments{/number}","contents_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/contents/{+path}","compare_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/merges","archive_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/downloads","issues_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/issues{/number}","pulls_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/pulls{/number}","milestones_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/milestones{/number}","notifications_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/labels{/name}","releases_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/releases{/id}","deployments_url":"https://api.github.com/repos/Faerachnidendro/garrysmod/deployments","created_at":"2016-10-28T12:04:55Z","updated_at":"2016-10-28T20:50:25Z","pushed_at":"2016-10-28T18:58:54Z","git_url":"git://github.com/Faerachnidendro/garrysmod.git","ssh_url":"git@github.com:Faerachnidendro/garrysmod.git","clone_url":"https://github.com/Faerachnidendro/garrysmod.git","svn_url":"https://github.com/Faerachnidendro/garrysmod","homepage":"http://www.garrysmod.com","size":10918,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"garrynewman:master","ref":"master","sha":"4cf019a7714cd2f1ca8a83713c6e5ca3fcb4336a","user":{"login":"garrynewman","id":928843,"avatar_url":"https://avatars.githubusercontent.com/u/928843?v=3","gravatar_id":"","url":"https://api.github.com/users/garrynewman","html_url":"https://github.com/garrynewman","followers_url":"https://api.github.com/users/garrynewman/followers","following_url":"https://api.github.com/users/garrynewman/following{/other_user}","gists_url":"https://api.github.com/users/garrynewman/gists{/gist_id}","starred_url":"https://api.github.com/users/garrynewman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrynewman/subscriptions","organizations_url":"https://api.github.com/users/garrynewman/orgs","repos_url":"https://api.github.com/users/garrynewman/repos","events_url":"https://api.github.com/users/garrynewman/events{/privacy}","received_events_url":"https://api.github.com/users/garrynewman/received_events","type":"User","site_admin":false},"repo":{"id":7543898,"name":"garrysmod","full_name":"garrynewman/garrysmod","owner":{"login":"garrynewman","id":928843,"avatar_url":"https://avatars.githubusercontent.com/u/928843?v=3","gravatar_id":"","url":"https://api.github.com/users/garrynewman","html_url":"https://github.com/garrynewman","followers_url":"https://api.github.com/users/garrynewman/followers","following_url":"https://api.github.com/users/garrynewman/following{/other_user}","gists_url":"https://api.github.com/users/garrynewman/gists{/gist_id}","starred_url":"https://api.github.com/users/garrynewman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrynewman/subscriptions","organizations_url":"https://api.github.com/users/garrynewman/orgs","repos_url":"https://api.github.com/users/garrynewman/repos","events_url":"https://api.github.com/users/garrynewman/events{/privacy}","received_events_url":"https://api.github.com/users/garrynewman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/garrynewman/garrysmod","description":"Sandbox mod for the Source Engine","fork":false,"url":"https://api.github.com/repos/garrynewman/garrysmod","forks_url":"https://api.github.com/repos/garrynewman/garrysmod/forks","keys_url":"https://api.github.com/repos/garrynewman/garrysmod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/garrynewman/garrysmod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/garrynewman/garrysmod/teams","hooks_url":"https://api.github.com/repos/garrynewman/garrysmod/hooks","issue_events_url":"https://api.github.com/repos/garrynewman/garrysmod/issues/events{/number}","events_url":"https://api.github.com/repos/garrynewman/garrysmod/events","assignees_url":"https://api.github.com/repos/garrynewman/garrysmod/assignees{/user}","branches_url":"https://api.github.com/repos/garrynewman/garrysmod/branches{/branch}","tags_url":"https://api.github.com/repos/garrynewman/garrysmod/tags","blobs_url":"https://api.github.com/repos/garrynewman/garrysmod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/garrynewman/garrysmod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/garrynewman/garrysmod/git/refs{/sha}","trees_url":"https://api.github.com/repos/garrynewman/garrysmod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/garrynewman/garrysmod/statuses/{sha}","languages_url":"https://api.github.com/repos/garrynewman/garrysmod/languages","stargazers_url":"https://api.github.com/repos/garrynewman/garrysmod/stargazers","contributors_url":"https://api.github.com/repos/garrynewman/garrysmod/contributors","subscribers_url":"https://api.github.com/repos/garrynewman/garrysmod/subscribers","subscription_url":"https://api.github.com/repos/garrynewman/garrysmod/subscription","commits_url":"https://api.github.com/repos/garrynewman/garrysmod/commits{/sha}","git_commits_url":"https://api.github.com/repos/garrynewman/garrysmod/git/commits{/sha}","comments_url":"https://api.github.com/repos/garrynewman/garrysmod/comments{/number}","issue_comment_url":"https://api.github.com/repos/garrynewman/garrysmod/issues/comments{/number}","contents_url":"https://api.github.com/repos/garrynewman/garrysmod/contents/{+path}","compare_url":"https://api.github.com/repos/garrynewman/garrysmod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/garrynewman/garrysmod/merges","archive_url":"https://api.github.com/repos/garrynewman/garrysmod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/garrynewman/garrysmod/downloads","issues_url":"https://api.github.com/repos/garrynewman/garrysmod/issues{/number}","pulls_url":"https://api.github.com/repos/garrynewman/garrysmod/pulls{/number}","milestones_url":"https://api.github.com/repos/garrynewman/garrysmod/milestones{/number}","notifications_url":"https://api.github.com/repos/garrynewman/garrysmod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/garrynewman/garrysmod/labels{/name}","releases_url":"https://api.github.com/repos/garrynewman/garrysmod/releases{/id}","deployments_url":"https://api.github.com/repos/garrynewman/garrysmod/deployments","created_at":"2013-01-10T15:59:08Z","updated_at":"2016-10-26T20:06:17Z","pushed_at":"2016-10-29T13:23:29Z","git_url":"git://github.com/garrynewman/garrysmod.git","ssh_url":"git@github.com:garrynewman/garrysmod.git","clone_url":"https://github.com/garrynewman/garrysmod.git","svn_url":"https://github.com/garrynewman/garrysmod","homepage":"http://www.garrysmod.com","size":13308,"stargazers_count":371,"watchers_count":371,"language":"Lua","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":455,"mirror_url":null,"open_issues_count":175,"forks":455,"open_issues":175,"watchers":371,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/garrynewman/garrysmod/pulls/1268"},"html":{"href":"https://github.com/garrynewman/garrysmod/pull/1268"},"issue":{"href":"https://api.github.com/repos/garrynewman/garrysmod/issues/1268"},"comments":{"href":"https://api.github.com/repos/garrynewman/garrysmod/issues/1268/comments"},"review_comments":{"href":"https://api.github.com/repos/garrynewman/garrysmod/pulls/1268/comments"},"review_comment":{"href":"https://api.github.com/repos/garrynewman/garrysmod/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/garrynewman/garrysmod/pulls/1268/commits"},"statuses":{"href":"https://api.github.com/repos/garrynewman/garrysmod/statuses/16745c2cfc871c1ae46b75e8443dd248babb88a9"}}}}
{"actor":{"display_login":"Faerachnidendro"}}