{"action":"created","comment":{"url":"https://api.github.com/repos/acemod/ACE3/pulls/comments/65944201","id":65944201,"diff_hunk":"@@ -0,0 +1,29 @@\n+/*\n+ * Author: GitHawk\n+ * Checks if unit can read supply counter.\n+ *\n+ * Arguments:\n+ * 0: Ammo Truck <OBJECT>\n+ * 1: Unit <OBJECT>\n+ *\n+ * Return Value:\n+ * Can read supply counter <BOOL>\n+ *\n+ * Example:\n+ * [ammo_truck, player] call ace_rearm_fnc_canReadSupplyCounter\n+ *\n+ * Public: No\n+ */\n+#include \"script_component.hpp\"\n+\n+params [\n+    [\"_truck\", objNull, [objNull]],\n+    [\"_unit\", objNull, [objNull]]\n+];\n+\n+!(isNull _unit ||\n+    {!(_unit isKindOf \"CAManBase\")} ||\n+    {!local _unit} ||\n+    {!alive _truck} ||\n+    {(_truck distance _unit) > REARM_ACTION_DISTANCE} ||\n+    {GVAR(supply) == 0})","path":"addons/rearm/functions/fnc_canReadSupplyCounter.sqf","position":29,"original_position":29,"commit_id":"ef4e232664c643ec4c89d54452e87e8b31647d74","original_commit_id":"a2b9678b15056af2148e97f7e3b3e98023e8777c","user":{"login":"GitHawk","id":1816059,"avatar_url":"https://avatars.githubusercontent.com/u/1816059?v=3","gravatar_id":"","url":"https://api.github.com/users/GitHawk","html_url":"https://github.com/GitHawk","followers_url":"https://api.github.com/users/GitHawk/followers","following_url":"https://api.github.com/users/GitHawk/following{/other_user}","gists_url":"https://api.github.com/users/GitHawk/gists{/gist_id}","starred_url":"https://api.github.com/users/GitHawk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitHawk/subscriptions","organizations_url":"https://api.github.com/users/GitHawk/orgs","repos_url":"https://api.github.com/users/GitHawk/repos","events_url":"https://api.github.com/users/GitHawk/events{/privacy}","received_events_url":"https://api.github.com/users/GitHawk/received_events","type":"User","site_admin":false},"body":"I think it does, since we haven't left the `(`","created_at":"2016-06-06T18:37:08Z","updated_at":"2016-06-06T18:37:08Z","html_url":"https://github.com/acemod/ACE3/pull/3431#discussion_r65944201","pull_request_url":"https://api.github.com/repos/acemod/ACE3/pulls/3431","_links":{"self":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/comments/65944201"},"html":{"href":"https://github.com/acemod/ACE3/pull/3431#discussion_r65944201"},"pull_request":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/3431"}}},"pull_request":{"url":"https://api.github.com/repos/acemod/ACE3/pulls/3431","id":60832242,"html_url":"https://github.com/acemod/ACE3/pull/3431","diff_url":"https://github.com/acemod/ACE3/pull/3431.diff","patch_url":"https://github.com/acemod/ACE3/pull/3431.patch","issue_url":"https://api.github.com/repos/acemod/ACE3/issues/3431","number":3431,"state":"open","locked":false,"title":"Rearm limited ammo truck munition","user":{"login":"GitHawk","id":1816059,"avatar_url":"https://avatars.githubusercontent.com/u/1816059?v=3","gravatar_id":"","url":"https://api.github.com/users/GitHawk","html_url":"https://github.com/GitHawk","followers_url":"https://api.github.com/users/GitHawk/followers","following_url":"https://api.github.com/users/GitHawk/following{/other_user}","gists_url":"https://api.github.com/users/GitHawk/gists{/gist_id}","starred_url":"https://api.github.com/users/GitHawk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitHawk/subscriptions","organizations_url":"https://api.github.com/users/GitHawk/orgs","repos_url":"https://api.github.com/users/GitHawk/repos","events_url":"https://api.github.com/users/GitHawk/events{/privacy}","received_events_url":"https://api.github.com/users/GitHawk/received_events","type":"User","site_admin":false},"body":"The rearm module will be expanded by a new option to select the ammunition amount in an ammo truck.\r\nThe two new availability levels are:\r\n- Amount based on caliber\r\n- Certain magazines and specific amounts\r\nThe current \"unlimited\" level will remain as default value.\r\n\r\nSupply amount based on caliber means you can for example take either two .50cal magazines or a single 120mm magazine, but not a 155mm magazine when the amount is on the level of 154. So everything can be rearmed but with a limited supply, while bigger calibers take more supply.\r\n\r\nSupply amount with certain magazines means you are required to add certain magazines to an ammo truck. No other weapons/magazines will be able to be resupplied.\r\n\r\n- [x] Implement the two levels\r\n- [x] Add API\r\n- [x] Testing\r\n\r\nDocumentation for other modders/creators on how to enable refuel will be in a different PR","created_at":"2016-02-26T12:02:19Z","updated_at":"2016-06-06T18:37:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a391c30ae7136c997c65d595d8f60c57de4e9c7","assignee":null,"milestone":{"url":"https://api.github.com/repos/acemod/ACE3/milestones/16","html_url":"https://github.com/acemod/ACE3/milestones/3.6.0","labels_url":"https://api.github.com/repos/acemod/ACE3/milestones/16/labels","id":1464664,"number":16,"title":"3.6.0","description":"","creator":{"login":"Glowbal","id":5007509,"avatar_url":"https://avatars.githubusercontent.com/u/5007509?v=3","gravatar_id":"","url":"https://api.github.com/users/Glowbal","html_url":"https://github.com/Glowbal","followers_url":"https://api.github.com/users/Glowbal/followers","following_url":"https://api.github.com/users/Glowbal/following{/other_user}","gists_url":"https://api.github.com/users/Glowbal/gists{/gist_id}","starred_url":"https://api.github.com/users/Glowbal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Glowbal/subscriptions","organizations_url":"https://api.github.com/users/Glowbal/orgs","repos_url":"https://api.github.com/users/Glowbal/repos","events_url":"https://api.github.com/users/Glowbal/events{/privacy}","received_events_url":"https://api.github.com/users/Glowbal/received_events","type":"User","site_admin":false},"open_issues":74,"closed_issues":177,"state":"open","created_at":"2015-12-17T10:06:07Z","updated_at":"2016-06-06T10:23:42Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/acemod/ACE3/pulls/3431/commits","review_comments_url":"https://api.github.com/repos/acemod/ACE3/pulls/3431/comments","review_comment_url":"https://api.github.com/repos/acemod/ACE3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/acemod/ACE3/issues/3431/comments","statuses_url":"https://api.github.com/repos/acemod/ACE3/statuses/ef4e232664c643ec4c89d54452e87e8b31647d74","head":{"label":"GitHawk:rearm_supply","ref":"rearm_supply","sha":"ef4e232664c643ec4c89d54452e87e8b31647d74","user":{"login":"GitHawk","id":1816059,"avatar_url":"https://avatars.githubusercontent.com/u/1816059?v=3","gravatar_id":"","url":"https://api.github.com/users/GitHawk","html_url":"https://github.com/GitHawk","followers_url":"https://api.github.com/users/GitHawk/followers","following_url":"https://api.github.com/users/GitHawk/following{/other_user}","gists_url":"https://api.github.com/users/GitHawk/gists{/gist_id}","starred_url":"https://api.github.com/users/GitHawk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitHawk/subscriptions","organizations_url":"https://api.github.com/users/GitHawk/orgs","repos_url":"https://api.github.com/users/GitHawk/repos","events_url":"https://api.github.com/users/GitHawk/events{/privacy}","received_events_url":"https://api.github.com/users/GitHawk/received_events","type":"User","site_admin":false},"repo":{"id":40626689,"name":"ACE3","full_name":"GitHawk/ACE3","owner":{"login":"GitHawk","id":1816059,"avatar_url":"https://avatars.githubusercontent.com/u/1816059?v=3","gravatar_id":"","url":"https://api.github.com/users/GitHawk","html_url":"https://github.com/GitHawk","followers_url":"https://api.github.com/users/GitHawk/followers","following_url":"https://api.github.com/users/GitHawk/following{/other_user}","gists_url":"https://api.github.com/users/GitHawk/gists{/gist_id}","starred_url":"https://api.github.com/users/GitHawk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitHawk/subscriptions","organizations_url":"https://api.github.com/users/GitHawk/orgs","repos_url":"https://api.github.com/users/GitHawk/repos","events_url":"https://api.github.com/users/GitHawk/events{/privacy}","received_events_url":"https://api.github.com/users/GitHawk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GitHawk/ACE3","description":"Open-source realism mod for Arma 3","fork":true,"url":"https://api.github.com/repos/GitHawk/ACE3","forks_url":"https://api.github.com/repos/GitHawk/ACE3/forks","keys_url":"https://api.github.com/repos/GitHawk/ACE3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GitHawk/ACE3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GitHawk/ACE3/teams","hooks_url":"https://api.github.com/repos/GitHawk/ACE3/hooks","issue_events_url":"https://api.github.com/repos/GitHawk/ACE3/issues/events{/number}","events_url":"https://api.github.com/repos/GitHawk/ACE3/events","assignees_url":"https://api.github.com/repos/GitHawk/ACE3/assignees{/user}","branches_url":"https://api.github.com/repos/GitHawk/ACE3/branches{/branch}","tags_url":"https://api.github.com/repos/GitHawk/ACE3/tags","blobs_url":"https://api.github.com/repos/GitHawk/ACE3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GitHawk/ACE3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GitHawk/ACE3/git/refs{/sha}","trees_url":"https://api.github.com/repos/GitHawk/ACE3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GitHawk/ACE3/statuses/{sha}","languages_url":"https://api.github.com/repos/GitHawk/ACE3/languages","stargazers_url":"https://api.github.com/repos/GitHawk/ACE3/stargazers","contributors_url":"https://api.github.com/repos/GitHawk/ACE3/contributors","subscribers_url":"https://api.github.com/repos/GitHawk/ACE3/subscribers","subscription_url":"https://api.github.com/repos/GitHawk/ACE3/subscription","commits_url":"https://api.github.com/repos/GitHawk/ACE3/commits{/sha}","git_commits_url":"https://api.github.com/repos/GitHawk/ACE3/git/commits{/sha}","comments_url":"https://api.github.com/repos/GitHawk/ACE3/comments{/number}","issue_comment_url":"https://api.github.com/repos/GitHawk/ACE3/issues/comments{/number}","contents_url":"https://api.github.com/repos/GitHawk/ACE3/contents/{+path}","compare_url":"https://api.github.com/repos/GitHawk/ACE3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GitHawk/ACE3/merges","archive_url":"https://api.github.com/repos/GitHawk/ACE3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GitHawk/ACE3/downloads","issues_url":"https://api.github.com/repos/GitHawk/ACE3/issues{/number}","pulls_url":"https://api.github.com/repos/GitHawk/ACE3/pulls{/number}","milestones_url":"https://api.github.com/repos/GitHawk/ACE3/milestones{/number}","notifications_url":"https://api.github.com/repos/GitHawk/ACE3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GitHawk/ACE3/labels{/name}","releases_url":"https://api.github.com/repos/GitHawk/ACE3/releases{/id}","deployments_url":"https://api.github.com/repos/GitHawk/ACE3/deployments","created_at":"2015-08-12T22:08:44Z","updated_at":"2016-02-02T11:16:57Z","pushed_at":"2016-06-06T18:29:21Z","git_url":"git://github.com/GitHawk/ACE3.git","ssh_url":"git@github.com:GitHawk/ACE3.git","clone_url":"https://github.com/GitHawk/ACE3.git","svn_url":"https://github.com/GitHawk/ACE3","homepage":"http://ace3mod.com/","size":235717,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"acemod:master","ref":"master","sha":"fe03272dc6c1328a6b63b49f4a4428bd51baa487","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}","deployments_url":"https://api.github.com/repos/acemod/ACE3/deployments","created_at":"2015-01-10T19:59:12Z","updated_at":"2016-05-31T20:51:42Z","pushed_at":"2016-06-06T18:29:22Z","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":476941,"stargazers_count":399,"watchers_count":399,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":327,"mirror_url":null,"open_issues_count":226,"forks":327,"open_issues":226,"watchers":399,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/3431"},"html":{"href":"https://github.com/acemod/ACE3/pull/3431"},"issue":{"href":"https://api.github.com/repos/acemod/ACE3/issues/3431"},"comments":{"href":"https://api.github.com/repos/acemod/ACE3/issues/3431/comments"},"review_comments":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/3431/comments"},"review_comment":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/3431/commits"},"statuses":{"href":"https://api.github.com/repos/acemod/ACE3/statuses/ef4e232664c643ec4c89d54452e87e8b31647d74"}}}}
{"actor":{"display_login":"GitHawk"}}