{"action":"created","comment":{"url":"https://api.github.com/repos/acemod/ACE3/pulls/comments/48093631","id":48093631,"diff_hunk":"@@ -34,6 +35,59 @@ class CfgVehicles {\n                 discreteDistanceInitIndex = 0;\n             };\n         };\n+        class ACE_Actions: ACE_Actions {\n+            class GVAR(unloadMagazine) {\n+                displayName = CSTRING(unloadMortar);\n+                distance = 2;\n+                condition = QUOTE(_this call FUNC(canUnloadMagazine));\n+                statement = QUOTE([ARR_3(_target,_player,5)] call FUNC(unloadMagazineTimer));\n+                icon = \"\";\n+                selection = \"usti hlavne\";\n+            };\n+            class GVAR(LoadActions) {\n+                displayName = CSTRING(loadMortar);\n+                distance = 2;","path":"addons/mk6mortar/CfgVehicles.hpp","position":23,"original_position":23,"commit_id":"a3367076238b6bf8142c08370a5918363da0aa62","original_commit_id":"901f55802c4ea45203a83928a0d3eccf637a14f5","user":{"login":"VKing6","id":6129446,"avatar_url":"https://avatars.githubusercontent.com/u/6129446?v=3","gravatar_id":"","url":"https://api.github.com/users/VKing6","html_url":"https://github.com/VKing6","followers_url":"https://api.github.com/users/VKing6/followers","following_url":"https://api.github.com/users/VKing6/following{/other_user}","gists_url":"https://api.github.com/users/VKing6/gists{/gist_id}","starred_url":"https://api.github.com/users/VKing6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VKing6/subscriptions","organizations_url":"https://api.github.com/users/VKing6/orgs","repos_url":"https://api.github.com/users/VKing6/repos","events_url":"https://api.github.com/users/VKing6/events{/privacy}","received_events_url":"https://api.github.com/users/VKing6/received_events","type":"User","site_admin":false},"body":"Removed from subclasses.","created_at":"2015-12-19T15:32:10Z","updated_at":"2015-12-19T15:32:10Z","html_url":"https://github.com/acemod/ACE3/pull/3043#discussion_r48093631","pull_request_url":"https://api.github.com/repos/acemod/ACE3/pulls/3043","_links":{"self":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/comments/48093631"},"html":{"href":"https://github.com/acemod/ACE3/pull/3043#discussion_r48093631"},"pull_request":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/3043"}}},"pull_request":{"url":"https://api.github.com/repos/acemod/ACE3/pulls/3043","id":53911974,"html_url":"https://github.com/acemod/ACE3/pull/3043","diff_url":"https://github.com/acemod/ACE3/pull/3043.diff","patch_url":"https://github.com/acemod/ACE3/pull/3043.patch","issue_url":"https://api.github.com/repos/acemod/ACE3/issues/3043","number":3043,"state":"open","locked":false,"title":"Mortar interaction and ammunition handling","user":{"login":"VKing6","id":6129446,"avatar_url":"https://avatars.githubusercontent.com/u/6129446?v=3","gravatar_id":"","url":"https://api.github.com/users/VKing6","html_url":"https://github.com/VKing6","followers_url":"https://api.github.com/users/VKing6/followers","following_url":"https://api.github.com/users/VKing6/following{/other_user}","gists_url":"https://api.github.com/users/VKing6/gists{/gist_id}","starred_url":"https://api.github.com/users/VKing6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VKing6/subscriptions","organizations_url":"https://api.github.com/users/VKing6/orgs","repos_url":"https://api.github.com/users/VKing6/repos","events_url":"https://api.github.com/users/VKing6/events{/privacy}","received_events_url":"https://api.github.com/users/VKing6/received_events","type":"User","site_admin":false},"body":"This is a port of code originally written by Grey and Glowbal at [16AA](https://github.com/16AAModTeam/LSR/tree/master/addons/staticweapons).\r\n\r\nGoals of this branch is to remove the multiple-round magazines for the mortars and restricting them to loading 1 round at a time and to give assistant gunners and ammo carriers something to do. The plan is to make this module-controlled.\r\n\r\nCurrent status:\r\n- [x] Port major script components to ACE\r\n- [x] Add interaction menu support for loading rounds\r\n- [x] Add new mortar magazines and make them carriable by infantry\r\n- [x] Port proper inventory images and ground models for new magazines\r\n- [ ] Implement options in module to avoid changing existing missions \r\n - [x] Add module settings\r\n - [x] Don't show loading/unloading actions if ammunition handling is not set\r\n - [ ] Init mortar to replace weapon and remove vanilla magazines if ammunition handling is set\r\n- [ ] MP testing\r\n- [ ] Zeus testing\r\n- [x] Unload rounds to player inventory\r\n- [ ] Update module documentation and class list\r\n- [ ] Translations?\r\n- ~~Make the mortar reloadable by the gunner with a time penalty~~ Eh too complicated for now; the time penalty will be having to get out and back in between shots.","created_at":"2015-12-16T23:03:12Z","updated_at":"2015-12-19T15:32:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"92f17224d2de49108b21d78b5a39446775a35ea0","assignee":{"login":"VKing6","id":6129446,"avatar_url":"https://avatars.githubusercontent.com/u/6129446?v=3","gravatar_id":"","url":"https://api.github.com/users/VKing6","html_url":"https://github.com/VKing6","followers_url":"https://api.github.com/users/VKing6/followers","following_url":"https://api.github.com/users/VKing6/following{/other_user}","gists_url":"https://api.github.com/users/VKing6/gists{/gist_id}","starred_url":"https://api.github.com/users/VKing6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VKing6/subscriptions","organizations_url":"https://api.github.com/users/VKing6/orgs","repos_url":"https://api.github.com/users/VKing6/repos","events_url":"https://api.github.com/users/VKing6/events{/privacy}","received_events_url":"https://api.github.com/users/VKing6/received_events","type":"User","site_admin":false},"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":1,"closed_issues":0,"state":"open","created_at":"2015-12-17T10:06:07Z","updated_at":"2015-12-19T01:28:59Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/acemod/ACE3/pulls/3043/commits","review_comments_url":"https://api.github.com/repos/acemod/ACE3/pulls/3043/comments","review_comment_url":"https://api.github.com/repos/acemod/ACE3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/acemod/ACE3/issues/3043/comments","statuses_url":"https://api.github.com/repos/acemod/ACE3/statuses/a3367076238b6bf8142c08370a5918363da0aa62","head":{"label":"acemod:Mortar_interact","ref":"Mortar_interact","sha":"a3367076238b6bf8142c08370a5918363da0aa62","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-12-19T14:25:05Z","pushed_at":"2015-12-19T15:30:12Z","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":383487,"stargazers_count":336,"watchers_count":336,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":265,"mirror_url":null,"open_issues_count":287,"forks":265,"open_issues":287,"watchers":336,"default_branch":"master"}},"base":{"label":"acemod:master","ref":"master","sha":"90387eaf5b878684581badbf961b4ac2083a3242","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-12-19T14:25:05Z","pushed_at":"2015-12-19T15:30:12Z","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":383487,"stargazers_count":336,"watchers_count":336,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":265,"mirror_url":null,"open_issues_count":287,"forks":265,"open_issues":287,"watchers":336,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/3043"},"html":{"href":"https://github.com/acemod/ACE3/pull/3043"},"issue":{"href":"https://api.github.com/repos/acemod/ACE3/issues/3043"},"comments":{"href":"https://api.github.com/repos/acemod/ACE3/issues/3043/comments"},"review_comments":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/3043/comments"},"review_comment":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/3043/commits"},"statuses":{"href":"https://api.github.com/repos/acemod/ACE3/statuses/a3367076238b6bf8142c08370a5918363da0aa62"}}}}