{"action":"created","comment":{"url":"https://api.github.com/repos/acemod/ACE3/pulls/comments/31876985","id":31876985,"diff_hunk":"@@ -0,0 +1,90 @@\n+#include \"addon.hpp\"\n+#include \"main.hpp\"\n+\n+LOG(\"Starting\");\n+\n+//while {isNull (findDisplay 46)} do {sleep 1;};\n+\n+\n+GVAR(FP_keyComb) = FP_DEFAULT_KEYBIND;\n+\n+GVAR(lastFPTime) = -FP_ACTION_TIMEOUT;\n+\t\n+\t\n+[\"ACE3 Common\", \n+\t\"point_finger_at\", \n+\t[LOCALIZE(keyComb), LOCALIZE(keyComb)], \n+\t{\n+\t\n+\t\tPV(_rv) = false;\n+\t\tif (alive player) then\n+\t\t{\t\n+\t\t\tif (!(\n+\t\t\t\t\t(player == vehicle player ||\n+\t\t\t\t\t(vehicle player) isKindOf \"StaticWeapon\") &&\n+\t\t\t\t\tcameraView in [\"INTERNAL\", \"EXTERNAL\"]\n+\t\t\t\t)) exitWith {};\n+\t\t\t\t\n+\t\t\t_rv = true;\n+\t\t\t\t\n+\t\t\tif (diag_tickTime < GVAR(lastFPTime) + FP_ACTION_TIMEOUT) \n+\t\t\t\texitWith {};\n+\t\t\t\n+\t\t\t\n+\t\t\tPV(_pos_prec) = positionCameraToWorld [0, 0, FP_DISTANCE];\n+\t\t\tPV(_pos) = positionCameraToWorld [\n+\t\t\t\t\trandom (2*FP_RANDOMIZATION_X) - FP_RANDOMIZATION_X,\n+\t\t\t\t\trandom (2*FP_RANDOMIZATION_Y) - FP_RANDOMIZATION_Y,\n+\t\t\t\t\tFP_DISTANCE\n+\t\t\t\t];\n+\t\t\t\t\n+\t\t\t\t\n+\t\t\tPV(_dest_players) = [];\n+\t\t\t\n+\t\t\tPV(_pep) = eyePos player;\n+\t\t\t{\n+\t\t\t\tif (isPlayer _x && _x != player && alive _x &&\n+\t\t\t\t\t{(_x == vehicle _x || (vehicle _x) isKindOf \"StaticWeapon\") && {\n+\t\t\t\t\t\t((eyePos _x) vectorDistance _pep) < MAX_DIST_TO_OTHER_PLAYERS\n+\t\t\t\t\t}}) then\n+\t\t\t\t{\n+\t\t\t\t\t_dest_players pushBack _x;\n+\t\t\t\t};\n+\t\t\t} forEach playableUnits;\n+\t\t\t\n+\t\t\tGVAR(pv_fpToServer)\t= [player, _pos, _dest_players];\n+\t\t\t\n+\t\t\tLOGV(GVAR(pv_fpToServer));\n+\t\t\t\n+\t\t\tif (isServer) then\n+\t\t\t{\n+\t\t\t\t[0, GVAR(pv_fpToServer)] call GVAR(fnc_pv_fpToServer);\n+\t\t\t}\n+\t\t\telse\n+\t\t\t{\n+\t\t\t\tpublicVariableServer 'GVAR(pv_fpToServer)';","path":"addons/finger/code/fn__mainLoop.sqf","position":65,"original_position":65,"commit_id":"ac40e7cc59a8754db683c3a1a95f2ec01925ede3","original_commit_id":"ac40e7cc59a8754db683c3a1a95f2ec01925ede3","user":{"login":"esteldunedain","id":7674951,"avatar_url":"https://avatars.githubusercontent.com/u/7674951?v=3","gravatar_id":"","url":"https://api.github.com/users/esteldunedain","html_url":"https://github.com/esteldunedain","followers_url":"https://api.github.com/users/esteldunedain/followers","following_url":"https://api.github.com/users/esteldunedain/following{/other_user}","gists_url":"https://api.github.com/users/esteldunedain/gists{/gist_id}","starred_url":"https://api.github.com/users/esteldunedain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esteldunedain/subscriptions","organizations_url":"https://api.github.com/users/esteldunedain/orgs","repos_url":"https://api.github.com/users/esteldunedain/repos","events_url":"https://api.github.com/users/esteldunedain/events{/privacy}","received_events_url":"https://api.github.com/users/esteldunedain/received_events","type":"User","site_admin":false},"body":"This should be replaced by a ACE `globalEvent`","created_at":"2015-06-07T13:52:46Z","updated_at":"2015-06-07T13:52:46Z","html_url":"https://github.com/acemod/ACE3/pull/1529#discussion_r31876985","pull_request_url":"https://api.github.com/repos/acemod/ACE3/pulls/1529","_links":{"self":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/comments/31876985"},"html":{"href":"https://github.com/acemod/ACE3/pull/1529#discussion_r31876985"},"pull_request":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/1529"}}},"pull_request":{"url":"https://api.github.com/repos/acemod/ACE3/pulls/1529","id":37103902,"html_url":"https://github.com/acemod/ACE3/pull/1529","diff_url":"https://github.com/acemod/ACE3/pull/1529.diff","patch_url":"https://github.com/acemod/ACE3/pull/1529.patch","issue_url":"https://api.github.com/repos/acemod/ACE3/issues/1529","number":1529,"state":"open","locked":false,"title":"Request to add finger-pointing module to ACE 3 mod","user":{"login":"TheDrill","id":9486049,"avatar_url":"https://avatars.githubusercontent.com/u/9486049?v=3","gravatar_id":"","url":"https://api.github.com/users/TheDrill","html_url":"https://github.com/TheDrill","followers_url":"https://api.github.com/users/TheDrill/followers","following_url":"https://api.github.com/users/TheDrill/following{/other_user}","gists_url":"https://api.github.com/users/TheDrill/gists{/gist_id}","starred_url":"https://api.github.com/users/TheDrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheDrill/subscriptions","organizations_url":"https://api.github.com/users/TheDrill/orgs","repos_url":"https://api.github.com/users/TheDrill/repos","events_url":"https://api.github.com/users/TheDrill/events{/privacy}","received_events_url":"https://api.github.com/users/TheDrill/received_events","type":"User","site_admin":false},"body":"I suggest to add my finger-pointing addon to ACE 3 mod as a module as requested by some players. I tried to adopt the structure of the addon to the standards of ACE 3 as mush as possible. The operability of the resulting module was tested with ACE 3 mod version 1.0.0.3. Please do necessary modifications to the code to make fully compatible with the newest ACE 3 version if needed.\r\n\r\nThe URL to the thread of original addon:\r\nhttp://forums.bistudio.com/showthread.php?188895-d_finger-quot-Point-a-finger-at-quot-addon","created_at":"2015-06-07T09:24:34Z","updated_at":"2015-06-07T13:52:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4e47d82d98817ed6a18a800824dcac82e76b4de","assignee":null,"milestone":{"url":"https://api.github.com/repos/acemod/ACE3/milestones/2","html_url":"https://github.com/acemod/ACE3/milestones/Backlog","labels_url":"https://api.github.com/repos/acemod/ACE3/milestones/2/labels","id":941455,"number":2,"title":"Backlog","description":"","creator":{"login":"bux578","id":1235520,"avatar_url":"https://avatars.githubusercontent.com/u/1235520?v=3","gravatar_id":"","url":"https://api.github.com/users/bux578","html_url":"https://github.com/bux578","followers_url":"https://api.github.com/users/bux578/followers","following_url":"https://api.github.com/users/bux578/following{/other_user}","gists_url":"https://api.github.com/users/bux578/gists{/gist_id}","starred_url":"https://api.github.com/users/bux578/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bux578/subscriptions","organizations_url":"https://api.github.com/users/bux578/orgs","repos_url":"https://api.github.com/users/bux578/repos","events_url":"https://api.github.com/users/bux578/events{/privacy}","received_events_url":"https://api.github.com/users/bux578/received_events","type":"User","site_admin":false},"open_issues":53,"closed_issues":21,"state":"open","created_at":"2015-01-19T08:37:47Z","updated_at":"2015-06-07T10:21:27Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/acemod/ACE3/pulls/1529/commits","review_comments_url":"https://api.github.com/repos/acemod/ACE3/pulls/1529/comments","review_comment_url":"https://api.github.com/repos/acemod/ACE3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/acemod/ACE3/issues/1529/comments","statuses_url":"https://api.github.com/repos/acemod/ACE3/statuses/ac40e7cc59a8754db683c3a1a95f2ec01925ede3","head":{"label":"TheDrill:master","ref":"master","sha":"ac40e7cc59a8754db683c3a1a95f2ec01925ede3","user":{"login":"TheDrill","id":9486049,"avatar_url":"https://avatars.githubusercontent.com/u/9486049?v=3","gravatar_id":"","url":"https://api.github.com/users/TheDrill","html_url":"https://github.com/TheDrill","followers_url":"https://api.github.com/users/TheDrill/followers","following_url":"https://api.github.com/users/TheDrill/following{/other_user}","gists_url":"https://api.github.com/users/TheDrill/gists{/gist_id}","starred_url":"https://api.github.com/users/TheDrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheDrill/subscriptions","organizations_url":"https://api.github.com/users/TheDrill/orgs","repos_url":"https://api.github.com/users/TheDrill/repos","events_url":"https://api.github.com/users/TheDrill/events{/privacy}","received_events_url":"https://api.github.com/users/TheDrill/received_events","type":"User","site_admin":false},"repo":{"id":37010014,"name":"ACE3","full_name":"TheDrill/ACE3","owner":{"login":"TheDrill","id":9486049,"avatar_url":"https://avatars.githubusercontent.com/u/9486049?v=3","gravatar_id":"","url":"https://api.github.com/users/TheDrill","html_url":"https://github.com/TheDrill","followers_url":"https://api.github.com/users/TheDrill/followers","following_url":"https://api.github.com/users/TheDrill/following{/other_user}","gists_url":"https://api.github.com/users/TheDrill/gists{/gist_id}","starred_url":"https://api.github.com/users/TheDrill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheDrill/subscriptions","organizations_url":"https://api.github.com/users/TheDrill/orgs","repos_url":"https://api.github.com/users/TheDrill/repos","events_url":"https://api.github.com/users/TheDrill/events{/privacy}","received_events_url":"https://api.github.com/users/TheDrill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TheDrill/ACE3","description":"Open-source realism mod for Arma 3","fork":true,"url":"https://api.github.com/repos/TheDrill/ACE3","forks_url":"https://api.github.com/repos/TheDrill/ACE3/forks","keys_url":"https://api.github.com/repos/TheDrill/ACE3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheDrill/ACE3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheDrill/ACE3/teams","hooks_url":"https://api.github.com/repos/TheDrill/ACE3/hooks","issue_events_url":"https://api.github.com/repos/TheDrill/ACE3/issues/events{/number}","events_url":"https://api.github.com/repos/TheDrill/ACE3/events","assignees_url":"https://api.github.com/repos/TheDrill/ACE3/assignees{/user}","branches_url":"https://api.github.com/repos/TheDrill/ACE3/branches{/branch}","tags_url":"https://api.github.com/repos/TheDrill/ACE3/tags","blobs_url":"https://api.github.com/repos/TheDrill/ACE3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheDrill/ACE3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheDrill/ACE3/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheDrill/ACE3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheDrill/ACE3/statuses/{sha}","languages_url":"https://api.github.com/repos/TheDrill/ACE3/languages","stargazers_url":"https://api.github.com/repos/TheDrill/ACE3/stargazers","contributors_url":"https://api.github.com/repos/TheDrill/ACE3/contributors","subscribers_url":"https://api.github.com/repos/TheDrill/ACE3/subscribers","subscription_url":"https://api.github.com/repos/TheDrill/ACE3/subscription","commits_url":"https://api.github.com/repos/TheDrill/ACE3/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheDrill/ACE3/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheDrill/ACE3/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheDrill/ACE3/issues/comments{/number}","contents_url":"https://api.github.com/repos/TheDrill/ACE3/contents/{+path}","compare_url":"https://api.github.com/repos/TheDrill/ACE3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheDrill/ACE3/merges","archive_url":"https://api.github.com/repos/TheDrill/ACE3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheDrill/ACE3/downloads","issues_url":"https://api.github.com/repos/TheDrill/ACE3/issues{/number}","pulls_url":"https://api.github.com/repos/TheDrill/ACE3/pulls{/number}","milestones_url":"https://api.github.com/repos/TheDrill/ACE3/milestones{/number}","notifications_url":"https://api.github.com/repos/TheDrill/ACE3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheDrill/ACE3/labels{/name}","releases_url":"https://api.github.com/repos/TheDrill/ACE3/releases{/id}","created_at":"2015-06-07T08:46:24Z","updated_at":"2015-06-07T08:46:28Z","pushed_at":"2015-06-07T09:16:16Z","git_url":"git://github.com/TheDrill/ACE3.git","ssh_url":"git@github.com:TheDrill/ACE3.git","clone_url":"https://github.com/TheDrill/ACE3.git","svn_url":"https://github.com/TheDrill/ACE3","homepage":"http://ace3mod.com/","size":298051,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"acemod:master","ref":"master","sha":"c40a2a9a2f492214dd3a39d0f859ae666eb87107","user":{"login":"acemod","id":11369030,"avatar_url":"https://avatars.githubusercontent.com/u/11369030?v=3","gravatar_id":"","url":"https://api.github.com/users/acemod","html_url":"https://github.com/acemod","followers_url":"https://api.github.com/users/acemod/followers","following_url":"https://api.github.com/users/acemod/following{/other_user}","gists_url":"https://api.github.com/users/acemod/gists{/gist_id}","starred_url":"https://api.github.com/users/acemod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acemod/subscriptions","organizations_url":"https://api.github.com/users/acemod/orgs","repos_url":"https://api.github.com/users/acemod/repos","events_url":"https://api.github.com/users/acemod/events{/privacy}","received_events_url":"https://api.github.com/users/acemod/received_events","type":"Organization","site_admin":false},"repo":{"id":29069174,"name":"ACE3","full_name":"acemod/ACE3","owner":{"login":"acemod","id":11369030,"avatar_url":"https://avatars.githubusercontent.com/u/11369030?v=3","gravatar_id":"","url":"https://api.github.com/users/acemod","html_url":"https://github.com/acemod","followers_url":"https://api.github.com/users/acemod/followers","following_url":"https://api.github.com/users/acemod/following{/other_user}","gists_url":"https://api.github.com/users/acemod/gists{/gist_id}","starred_url":"https://api.github.com/users/acemod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acemod/subscriptions","organizations_url":"https://api.github.com/users/acemod/orgs","repos_url":"https://api.github.com/users/acemod/repos","events_url":"https://api.github.com/users/acemod/events{/privacy}","received_events_url":"https://api.github.com/users/acemod/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/acemod/ACE3","description":"Open-source realism mod for Arma 3","fork":false,"url":"https://api.github.com/repos/acemod/ACE3","forks_url":"https://api.github.com/repos/acemod/ACE3/forks","keys_url":"https://api.github.com/repos/acemod/ACE3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acemod/ACE3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acemod/ACE3/teams","hooks_url":"https://api.github.com/repos/acemod/ACE3/hooks","issue_events_url":"https://api.github.com/repos/acemod/ACE3/issues/events{/number}","events_url":"https://api.github.com/repos/acemod/ACE3/events","assignees_url":"https://api.github.com/repos/acemod/ACE3/assignees{/user}","branches_url":"https://api.github.com/repos/acemod/ACE3/branches{/branch}","tags_url":"https://api.github.com/repos/acemod/ACE3/tags","blobs_url":"https://api.github.com/repos/acemod/ACE3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acemod/ACE3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acemod/ACE3/git/refs{/sha}","trees_url":"https://api.github.com/repos/acemod/ACE3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acemod/ACE3/statuses/{sha}","languages_url":"https://api.github.com/repos/acemod/ACE3/languages","stargazers_url":"https://api.github.com/repos/acemod/ACE3/stargazers","contributors_url":"https://api.github.com/repos/acemod/ACE3/contributors","subscribers_url":"https://api.github.com/repos/acemod/ACE3/subscribers","subscription_url":"https://api.github.com/repos/acemod/ACE3/subscription","commits_url":"https://api.github.com/repos/acemod/ACE3/commits{/sha}","git_commits_url":"https://api.github.com/repos/acemod/ACE3/git/commits{/sha}","comments_url":"https://api.github.com/repos/acemod/ACE3/comments{/number}","issue_comment_url":"https://api.github.com/repos/acemod/ACE3/issues/comments{/number}","contents_url":"https://api.github.com/repos/acemod/ACE3/contents/{+path}","compare_url":"https://api.github.com/repos/acemod/ACE3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acemod/ACE3/merges","archive_url":"https://api.github.com/repos/acemod/ACE3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acemod/ACE3/downloads","issues_url":"https://api.github.com/repos/acemod/ACE3/issues{/number}","pulls_url":"https://api.github.com/repos/acemod/ACE3/pulls{/number}","milestones_url":"https://api.github.com/repos/acemod/ACE3/milestones{/number}","notifications_url":"https://api.github.com/repos/acemod/ACE3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acemod/ACE3/labels{/name}","releases_url":"https://api.github.com/repos/acemod/ACE3/releases{/id}","created_at":"2015-01-10T19:59:12Z","updated_at":"2015-06-06T14:40:39Z","pushed_at":"2015-06-07T12:48:51Z","git_url":"git://github.com/acemod/ACE3.git","ssh_url":"git@github.com:acemod/ACE3.git","clone_url":"https://github.com/acemod/ACE3.git","svn_url":"https://github.com/acemod/ACE3","homepage":"http://ace3mod.com/","size":298051,"stargazers_count":248,"watchers_count":248,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":175,"mirror_url":null,"open_issues_count":171,"forks":175,"open_issues":171,"watchers":248,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/1529"},"html":{"href":"https://github.com/acemod/ACE3/pull/1529"},"issue":{"href":"https://api.github.com/repos/acemod/ACE3/issues/1529"},"comments":{"href":"https://api.github.com/repos/acemod/ACE3/issues/1529/comments"},"review_comments":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/1529/comments"},"review_comment":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/1529/commits"},"statuses":{"href":"https://api.github.com/repos/acemod/ACE3/statuses/ac40e7cc59a8754db683c3a1a95f2ec01925ede3"}}}}