{"action":"created","comment":{"url":"https://api.github.com/repos/acemod/ACE3/pulls/comments/32024711","id":32024711,"diff_hunk":"@@ -0,0 +1,40 @@\n+/*\n+ * Author: Jonpas\n+ * Sits down the player.\n+ *\n+ * Arguments:\n+ * 0: Seat <OBJECT>\n+ * 1: Player <OBJECT>\n+ *\n+ * Return Value:\n+ * None\n+ *\n+ * Example:\n+ * [seat, player] call ace_sitting_fnc_sit;\n+ *\n+ * Public: No\n+ */\n+#include \"script_component.hpp\"\n+\n+PARAMS_2(_seat,_player);\n+\n+// Set global variable for standing up\n+GVAR(seat) = _seat;\n+\n+// Overwrite weird position, because Arma decides to set it differently based on current animation/stance...\n+_player switchMove \"amovpknlmstpsraswrfldnon\";\n+\n+// Read config\n+_sitDirection = getNumber (configFile >> \"CfgVehicles\" >> typeOf _seat >> QGVAR(sitDirection));\n+_sitPosition = getArray (configFile >> \"CfgVehicles\" >> typeOf _seat >> QGVAR(sitPosition));\n+\n+// Set direction and position\n+_player setDir ((getDir _seat) + _sitDirection);\n+_player setPos (_seat modelToWorld _sitPosition);","path":"addons/sitting/functions/fnc_sit.sqf","position":null,"original_position":33,"commit_id":"36d4d01a30871b4a6ca00e42c4b607e4d0837aa7","original_commit_id":"95ec2ea1f99efcfeeec439684dee17b5397f6819","user":{"login":"jonpas","id":7935003,"avatar_url":"https://avatars.githubusercontent.com/u/7935003?v=3","gravatar_id":"","url":"https://api.github.com/users/jonpas","html_url":"https://github.com/jonpas","followers_url":"https://api.github.com/users/jonpas/followers","following_url":"https://api.github.com/users/jonpas/following{/other_user}","gists_url":"https://api.github.com/users/jonpas/gists{/gist_id}","starred_url":"https://api.github.com/users/jonpas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonpas/subscriptions","organizations_url":"https://api.github.com/users/jonpas/orgs","repos_url":"https://api.github.com/users/jonpas/repos","events_url":"https://api.github.com/users/jonpas/events{/privacy}","received_events_url":"https://api.github.com/users/jonpas/received_events","type":"User","site_admin":false},"body":"I will change then.","created_at":"2015-06-09T15:20:24Z","updated_at":"2015-06-09T15:20:24Z","html_url":"https://github.com/acemod/ACE3/pull/1541#discussion_r32024711","pull_request_url":"https://api.github.com/repos/acemod/ACE3/pulls/1541","_links":{"self":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/comments/32024711"},"html":{"href":"https://github.com/acemod/ACE3/pull/1541#discussion_r32024711"},"pull_request":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/1541"}}},"pull_request":{"url":"https://api.github.com/repos/acemod/ACE3/pulls/1541","id":37112391,"html_url":"https://github.com/acemod/ACE3/pull/1541","diff_url":"https://github.com/acemod/ACE3/pull/1541.diff","patch_url":"https://github.com/acemod/ACE3/pull/1541.patch","issue_url":"https://api.github.com/repos/acemod/ACE3/issues/1541","number":1541,"state":"open","locked":false,"title":"Sitting","user":{"login":"jonpas","id":7935003,"avatar_url":"https://avatars.githubusercontent.com/u/7935003?v=3","gravatar_id":"","url":"https://api.github.com/users/jonpas","html_url":"https://github.com/jonpas","followers_url":"https://api.github.com/users/jonpas/followers","following_url":"https://api.github.com/users/jonpas/following{/other_user}","gists_url":"https://api.github.com/users/jonpas/gists{/gist_id}","starred_url":"https://api.github.com/users/jonpas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonpas/subscriptions","organizations_url":"https://api.github.com/users/jonpas/orgs","repos_url":"https://api.github.com/users/jonpas/repos","events_url":"https://api.github.com/users/jonpas/events{/privacy}","received_events_url":"https://api.github.com/users/jonpas/received_events","type":"User","site_admin":false},"body":"**WIP**\r\n\r\nThis allows players to sit on chairs/seats/toilets.\r\n\r\n- [x] Fix Rattan Chair\r\n- [x] Interaction Menu icons\r\n- [x] Exception `isNotSitting`\r\n- [x] ^ Allow actions (eg. medical)\r\n- [x] ACE_Settings and Module option to disable\r\n- [ ] ^ Module icon","created_at":"2015-06-07T20:03:01Z","updated_at":"2015-06-09T15:20:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62e3ce1ce7bcf56b7e44d5fe841bdde496118534","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":56,"closed_issues":21,"state":"open","created_at":"2015-01-19T08:37:47Z","updated_at":"2015-06-09T09:24:17Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/acemod/ACE3/pulls/1541/commits","review_comments_url":"https://api.github.com/repos/acemod/ACE3/pulls/1541/comments","review_comment_url":"https://api.github.com/repos/acemod/ACE3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/acemod/ACE3/issues/1541/comments","statuses_url":"https://api.github.com/repos/acemod/ACE3/statuses/36d4d01a30871b4a6ca00e42c4b607e4d0837aa7","head":{"label":"jonpas:sitting","ref":"sitting","sha":"36d4d01a30871b4a6ca00e42c4b607e4d0837aa7","user":{"login":"jonpas","id":7935003,"avatar_url":"https://avatars.githubusercontent.com/u/7935003?v=3","gravatar_id":"","url":"https://api.github.com/users/jonpas","html_url":"https://github.com/jonpas","followers_url":"https://api.github.com/users/jonpas/followers","following_url":"https://api.github.com/users/jonpas/following{/other_user}","gists_url":"https://api.github.com/users/jonpas/gists{/gist_id}","starred_url":"https://api.github.com/users/jonpas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonpas/subscriptions","organizations_url":"https://api.github.com/users/jonpas/orgs","repos_url":"https://api.github.com/users/jonpas/repos","events_url":"https://api.github.com/users/jonpas/events{/privacy}","received_events_url":"https://api.github.com/users/jonpas/received_events","type":"User","site_admin":false},"repo":{"id":35702319,"name":"ACE3","full_name":"jonpas/ACE3","owner":{"login":"jonpas","id":7935003,"avatar_url":"https://avatars.githubusercontent.com/u/7935003?v=3","gravatar_id":"","url":"https://api.github.com/users/jonpas","html_url":"https://github.com/jonpas","followers_url":"https://api.github.com/users/jonpas/followers","following_url":"https://api.github.com/users/jonpas/following{/other_user}","gists_url":"https://api.github.com/users/jonpas/gists{/gist_id}","starred_url":"https://api.github.com/users/jonpas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonpas/subscriptions","organizations_url":"https://api.github.com/users/jonpas/orgs","repos_url":"https://api.github.com/users/jonpas/repos","events_url":"https://api.github.com/users/jonpas/events{/privacy}","received_events_url":"https://api.github.com/users/jonpas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonpas/ACE3","description":"Open-source realism mod for Arma 3","fork":true,"url":"https://api.github.com/repos/jonpas/ACE3","forks_url":"https://api.github.com/repos/jonpas/ACE3/forks","keys_url":"https://api.github.com/repos/jonpas/ACE3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonpas/ACE3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonpas/ACE3/teams","hooks_url":"https://api.github.com/repos/jonpas/ACE3/hooks","issue_events_url":"https://api.github.com/repos/jonpas/ACE3/issues/events{/number}","events_url":"https://api.github.com/repos/jonpas/ACE3/events","assignees_url":"https://api.github.com/repos/jonpas/ACE3/assignees{/user}","branches_url":"https://api.github.com/repos/jonpas/ACE3/branches{/branch}","tags_url":"https://api.github.com/repos/jonpas/ACE3/tags","blobs_url":"https://api.github.com/repos/jonpas/ACE3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonpas/ACE3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonpas/ACE3/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonpas/ACE3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonpas/ACE3/statuses/{sha}","languages_url":"https://api.github.com/repos/jonpas/ACE3/languages","stargazers_url":"https://api.github.com/repos/jonpas/ACE3/stargazers","contributors_url":"https://api.github.com/repos/jonpas/ACE3/contributors","subscribers_url":"https://api.github.com/repos/jonpas/ACE3/subscribers","subscription_url":"https://api.github.com/repos/jonpas/ACE3/subscription","commits_url":"https://api.github.com/repos/jonpas/ACE3/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonpas/ACE3/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonpas/ACE3/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonpas/ACE3/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonpas/ACE3/contents/{+path}","compare_url":"https://api.github.com/repos/jonpas/ACE3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonpas/ACE3/merges","archive_url":"https://api.github.com/repos/jonpas/ACE3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonpas/ACE3/downloads","issues_url":"https://api.github.com/repos/jonpas/ACE3/issues{/number}","pulls_url":"https://api.github.com/repos/jonpas/ACE3/pulls{/number}","milestones_url":"https://api.github.com/repos/jonpas/ACE3/milestones{/number}","notifications_url":"https://api.github.com/repos/jonpas/ACE3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonpas/ACE3/labels{/name}","releases_url":"https://api.github.com/repos/jonpas/ACE3/releases{/id}","created_at":"2015-05-15T23:52:18Z","updated_at":"2015-05-15T23:52:23Z","pushed_at":"2015-06-09T14:55:04Z","git_url":"git://github.com/jonpas/ACE3.git","ssh_url":"git@github.com:jonpas/ACE3.git","clone_url":"https://github.com/jonpas/ACE3.git","svn_url":"https://github.com/jonpas/ACE3","homepage":"http://ace3mod.com/","size":224696,"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":"64d529ed3cbd04bee9e4c2cadf060f30cd4bddea","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-09T11:22:33Z","pushed_at":"2015-06-09T14:55:04Z","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":300906,"stargazers_count":251,"watchers_count":251,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":177,"mirror_url":null,"open_issues_count":172,"forks":177,"open_issues":172,"watchers":251,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/1541"},"html":{"href":"https://github.com/acemod/ACE3/pull/1541"},"issue":{"href":"https://api.github.com/repos/acemod/ACE3/issues/1541"},"comments":{"href":"https://api.github.com/repos/acemod/ACE3/issues/1541/comments"},"review_comments":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/1541/comments"},"review_comment":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/acemod/ACE3/pulls/1541/commits"},"statuses":{"href":"https://api.github.com/repos/acemod/ACE3/statuses/36d4d01a30871b4a6ca00e42c4b607e4d0837aa7"}}}}