{"action":"created","comment":{"url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/pulls/comments/29867295","id":29867295,"diff_hunk":"@@ -0,0 +1,71 @@\n+﻿using System;\n+using System.Collections;\n+using System.Collections.Generic;\n+using System.Linq;\n+using System.Reactive;\n+using System.Reactive.Linq;\n+using System.Text;\n+using System.Threading.Tasks;\n+using System.Windows.Forms;\n+using GTA;\n+using GTA.Native;\n+ \n+namespace Inferno\n+{\n+    /// <summary>\n+    /// プレイヤーの強制ラグドール状態化\n+    /// </summary>\n+    public class PlayerRagdoll : InfernoScript\n+    {\n+        bool RagdollFlag = false;\n+\n+        protected override int TickInterval\n+        {\n+            get { return 50; }\n+        }\n+\n+        protected override void Setup()\n+        {\n+\n+            OnTickAsObservable\n+                .Where(\n+                    _ =>\n+                        this.IsGamePadPressed(GameKey.Stealth) && this.IsGamePadPressed(GameKey.Jump))\n+                .Subscribe(_ => SetPlayerRagdoll());\n+            OnTickAsObservable\n+                .Where(\n+                    _ =>\n+                        !this.IsGamePadPressed(GameKey.Stealth) || !this.IsGamePadPressed(GameKey.Jump))\n+                .Subscribe(_ => UnSetPlayerRagdoll());","path":"Inferno/InfernoScripts/Player/PlayerRagdoll.cs","position":39,"original_position":39,"commit_id":"e305c04ab76b4ec6a61bfb8a0a5bcdde85024996","original_commit_id":"e305c04ab76b4ec6a61bfb8a0a5bcdde85024996","user":{"login":"TORISOUP","id":861868,"avatar_url":"https://avatars.githubusercontent.com/u/861868?v=3","gravatar_id":"","url":"https://api.github.com/users/TORISOUP","html_url":"https://github.com/TORISOUP","followers_url":"https://api.github.com/users/TORISOUP/followers","following_url":"https://api.github.com/users/TORISOUP/following{/other_user}","gists_url":"https://api.github.com/users/TORISOUP/gists{/gist_id}","starred_url":"https://api.github.com/users/TORISOUP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TORISOUP/subscriptions","organizations_url":"https://api.github.com/users/TORISOUP/orgs","repos_url":"https://api.github.com/users/TORISOUP/repos","events_url":"https://api.github.com/users/TORISOUP/events{/privacy}","received_events_url":"https://api.github.com/users/TORISOUP/received_events","type":"User","site_admin":false},"body":"2回Subscribeせずに、素直にSubscribe内でif文判定で良いかと","created_at":"2015-05-07T16:08:21Z","updated_at":"2015-05-07T16:08:21Z","html_url":"https://github.com/TORISOUP/GTAV_InfernoScripts/pull/3#discussion_r29867295","pull_request_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/pulls/comments/29867295"},"html":{"href":"https://github.com/TORISOUP/GTAV_InfernoScripts/pull/3#discussion_r29867295"},"pull_request":{"href":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/pulls/3","id":34827660,"html_url":"https://github.com/TORISOUP/GTAV_InfernoScripts/pull/3","diff_url":"https://github.com/TORISOUP/GTAV_InfernoScripts/pull/3.diff","patch_url":"https://github.com/TORISOUP/GTAV_InfernoScripts/pull/3.patch","issue_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/issues/3","number":3,"state":"open","locked":false,"title":"市民の運転スピード上限の増加","user":{"login":"kagikn","id":9353978,"avatar_url":"https://avatars.githubusercontent.com/u/9353978?v=3","gravatar_id":"","url":"https://api.github.com/users/kagikn","html_url":"https://github.com/kagikn","followers_url":"https://api.github.com/users/kagikn/followers","following_url":"https://api.github.com/users/kagikn/following{/other_user}","gists_url":"https://api.github.com/users/kagikn/gists{/gist_id}","starred_url":"https://api.github.com/users/kagikn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kagikn/subscriptions","organizations_url":"https://api.github.com/users/kagikn/orgs","repos_url":"https://api.github.com/users/kagikn/repos","events_url":"https://api.github.com/users/kagikn/events{/privacy}","received_events_url":"https://api.github.com/users/kagikn/received_events","type":"User","site_admin":false},"body":"運転スタイルはまだ変わってませんが、市民の運転スピードをIVのインフェルノMODのと同じスピードに出来ました","created_at":"2015-05-06T15:19:59Z","updated_at":"2015-05-07T16:08:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a96b4f2d6944e323d4cc329e906990da581b5af","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/pulls/3/commits","review_comments_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/pulls/3/comments","review_comment_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/issues/3/comments","statuses_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/statuses/e305c04ab76b4ec6a61bfb8a0a5bcdde85024996","head":{"label":"kagikn:master","ref":"master","sha":"e305c04ab76b4ec6a61bfb8a0a5bcdde85024996","user":{"login":"kagikn","id":9353978,"avatar_url":"https://avatars.githubusercontent.com/u/9353978?v=3","gravatar_id":"","url":"https://api.github.com/users/kagikn","html_url":"https://github.com/kagikn","followers_url":"https://api.github.com/users/kagikn/followers","following_url":"https://api.github.com/users/kagikn/following{/other_user}","gists_url":"https://api.github.com/users/kagikn/gists{/gist_id}","starred_url":"https://api.github.com/users/kagikn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kagikn/subscriptions","organizations_url":"https://api.github.com/users/kagikn/orgs","repos_url":"https://api.github.com/users/kagikn/repos","events_url":"https://api.github.com/users/kagikn/events{/privacy}","received_events_url":"https://api.github.com/users/kagikn/received_events","type":"User","site_admin":false},"repo":{"id":35099001,"name":"GTAV_InfernoScripts","full_name":"kagikn/GTAV_InfernoScripts","owner":{"login":"kagikn","id":9353978,"avatar_url":"https://avatars.githubusercontent.com/u/9353978?v=3","gravatar_id":"","url":"https://api.github.com/users/kagikn","html_url":"https://github.com/kagikn","followers_url":"https://api.github.com/users/kagikn/followers","following_url":"https://api.github.com/users/kagikn/following{/other_user}","gists_url":"https://api.github.com/users/kagikn/gists{/gist_id}","starred_url":"https://api.github.com/users/kagikn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kagikn/subscriptions","organizations_url":"https://api.github.com/users/kagikn/orgs","repos_url":"https://api.github.com/users/kagikn/repos","events_url":"https://api.github.com/users/kagikn/events{/privacy}","received_events_url":"https://api.github.com/users/kagikn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kagikn/GTAV_InfernoScripts","description":"GTAV用のカオスモードとインフェルノモードのソースコード","fork":true,"url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts","forks_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/forks","keys_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/teams","hooks_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/hooks","issue_events_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/issues/events{/number}","events_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/events","assignees_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/assignees{/user}","branches_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/branches{/branch}","tags_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/tags","blobs_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/statuses/{sha}","languages_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/languages","stargazers_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/stargazers","contributors_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/contributors","subscribers_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/subscribers","subscription_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/subscription","commits_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/contents/{+path}","compare_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/merges","archive_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/downloads","issues_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/issues{/number}","pulls_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/pulls{/number}","milestones_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/milestones{/number}","notifications_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/labels{/name}","releases_url":"https://api.github.com/repos/kagikn/GTAV_InfernoScripts/releases{/id}","created_at":"2015-05-05T12:49:58Z","updated_at":"2015-05-07T16:02:55Z","pushed_at":"2015-05-07T16:02:54Z","git_url":"git://github.com/kagikn/GTAV_InfernoScripts.git","ssh_url":"git@github.com:kagikn/GTAV_InfernoScripts.git","clone_url":"https://github.com/kagikn/GTAV_InfernoScripts.git","svn_url":"https://github.com/kagikn/GTAV_InfernoScripts","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"TORISOUP:master","ref":"master","sha":"91ff55b8f347495f92f4bd99431f358aa5a1d987","user":{"login":"TORISOUP","id":861868,"avatar_url":"https://avatars.githubusercontent.com/u/861868?v=3","gravatar_id":"","url":"https://api.github.com/users/TORISOUP","html_url":"https://github.com/TORISOUP","followers_url":"https://api.github.com/users/TORISOUP/followers","following_url":"https://api.github.com/users/TORISOUP/following{/other_user}","gists_url":"https://api.github.com/users/TORISOUP/gists{/gist_id}","starred_url":"https://api.github.com/users/TORISOUP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TORISOUP/subscriptions","organizations_url":"https://api.github.com/users/TORISOUP/orgs","repos_url":"https://api.github.com/users/TORISOUP/repos","events_url":"https://api.github.com/users/TORISOUP/events{/privacy}","received_events_url":"https://api.github.com/users/TORISOUP/received_events","type":"User","site_admin":false},"repo":{"id":34913171,"name":"GTAV_InfernoScripts","full_name":"TORISOUP/GTAV_InfernoScripts","owner":{"login":"TORISOUP","id":861868,"avatar_url":"https://avatars.githubusercontent.com/u/861868?v=3","gravatar_id":"","url":"https://api.github.com/users/TORISOUP","html_url":"https://github.com/TORISOUP","followers_url":"https://api.github.com/users/TORISOUP/followers","following_url":"https://api.github.com/users/TORISOUP/following{/other_user}","gists_url":"https://api.github.com/users/TORISOUP/gists{/gist_id}","starred_url":"https://api.github.com/users/TORISOUP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TORISOUP/subscriptions","organizations_url":"https://api.github.com/users/TORISOUP/orgs","repos_url":"https://api.github.com/users/TORISOUP/repos","events_url":"https://api.github.com/users/TORISOUP/events{/privacy}","received_events_url":"https://api.github.com/users/TORISOUP/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TORISOUP/GTAV_InfernoScripts","description":"GTAV用のカオスモードとインフェルノモードのソースコード","fork":false,"url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts","forks_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/forks","keys_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/teams","hooks_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/hooks","issue_events_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/issues/events{/number}","events_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/events","assignees_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/assignees{/user}","branches_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/branches{/branch}","tags_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/tags","blobs_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/git/refs{/sha}","trees_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/statuses/{sha}","languages_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/languages","stargazers_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/stargazers","contributors_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/contributors","subscribers_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/subscribers","subscription_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/subscription","commits_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/commits{/sha}","git_commits_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/git/commits{/sha}","comments_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/comments{/number}","issue_comment_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/issues/comments{/number}","contents_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/contents/{+path}","compare_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/merges","archive_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/downloads","issues_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/issues{/number}","pulls_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/pulls{/number}","milestones_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/milestones{/number}","notifications_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/labels{/name}","releases_url":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/releases{/id}","created_at":"2015-05-01T16:56:39Z","updated_at":"2015-05-07T13:50:35Z","pushed_at":"2015-05-07T16:02:54Z","git_url":"git://github.com/TORISOUP/GTAV_InfernoScripts.git","ssh_url":"git@github.com:TORISOUP/GTAV_InfernoScripts.git","clone_url":"https://github.com/TORISOUP/GTAV_InfernoScripts.git","svn_url":"https://github.com/TORISOUP/GTAV_InfernoScripts","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/pulls/3"},"html":{"href":"https://github.com/TORISOUP/GTAV_InfernoScripts/pull/3"},"issue":{"href":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/issues/3"},"comments":{"href":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/TORISOUP/GTAV_InfernoScripts/statuses/e305c04ab76b4ec6a61bfb8a0a5bcdde85024996"}}}}