{"action":"created","issue":{"url":"https://api.github.com/repos/D4edalus/CoD4x1.8_Server_Pub/issues/3","repository_url":"https://api.github.com/repos/D4edalus/CoD4x1.8_Server_Pub","labels_url":"https://api.github.com/repos/D4edalus/CoD4x1.8_Server_Pub/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/D4edalus/CoD4x1.8_Server_Pub/issues/3/comments","events_url":"https://api.github.com/repos/D4edalus/CoD4x1.8_Server_Pub/issues/3/events","html_url":"https://github.com/D4edalus/CoD4x1.8_Server_Pub/issues/3","id":147279018,"number":3,"title":"GSC funs for pressed player buttons","user":{"login":"D4edalus","id":18084940,"avatar_url":"https://avatars.githubusercontent.com/u/18084940?v=3","gravatar_id":"","url":"https://api.github.com/users/D4edalus","html_url":"https://github.com/D4edalus","followers_url":"https://api.github.com/users/D4edalus/followers","following_url":"https://api.github.com/users/D4edalus/following{/other_user}","gists_url":"https://api.github.com/users/D4edalus/gists{/gist_id}","starred_url":"https://api.github.com/users/D4edalus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D4edalus/subscriptions","organizations_url":"https://api.github.com/users/D4edalus/orgs","repos_url":"https://api.github.com/users/D4edalus/repos","events_url":"https://api.github.com/users/D4edalus/events{/privacy}","received_events_url":"https://api.github.com/users/D4edalus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/D4edalus/CoD4x1.8_Server_Pub/labels/help%20wanted","name":"help wanted","color":"128A0C"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-10T23:37:17Z","updated_at":"2016-06-17T20:11:46Z","closed_at":null,"body":"Similar to `if ( self FragButtonPressed() ) ...` a function to query all possible player buttons as a GSC function would be nice.\r\n\r\nThe needed info can be read bitwise from the buttons variable in gclient_t\r\nhttps://github.com/D4edalus/CoD4x1.8_Server_Pub/blob/0446cdad5bd19dd9d08cb7733965a5cf6c433fb2/src/player.h#L395-L399\r\ndecode what bits correspond to what key.\r\n\r\nqboolean PlayerButtonPressed(gclient_t* player, uint btnIndex) ... or something similar\r\nmaybe also methods for specific keys like PlayerForwardButtonPressed \r\n\r\nwhen finished register the new function as a script command, so it is callable from gsc\r\nhttps://github.com/D4edalus/CoD4x1.8_Server_Pub/blob/0446cdad5bd19dd9d08cb7733965a5cf6c433fb2/src/scr_vm_main.c#L47-L51"},"comment":{"url":"https://api.github.com/repos/D4edalus/CoD4x1.8_Server_Pub/issues/comments/226869977","html_url":"https://github.com/D4edalus/CoD4x1.8_Server_Pub/issues/3#issuecomment-226869977","issue_url":"https://api.github.com/repos/D4edalus/CoD4x1.8_Server_Pub/issues/3","id":226869977,"user":{"login":"T-Maxxx","id":7836454,"avatar_url":"https://avatars.githubusercontent.com/u/7836454?v=3","gravatar_id":"","url":"https://api.github.com/users/T-Maxxx","html_url":"https://github.com/T-Maxxx","followers_url":"https://api.github.com/users/T-Maxxx/followers","following_url":"https://api.github.com/users/T-Maxxx/following{/other_user}","gists_url":"https://api.github.com/users/T-Maxxx/gists{/gist_id}","starred_url":"https://api.github.com/users/T-Maxxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/T-Maxxx/subscriptions","organizations_url":"https://api.github.com/users/T-Maxxx/orgs","repos_url":"https://api.github.com/users/T-Maxxx/repos","events_url":"https://api.github.com/users/T-Maxxx/events{/privacy}","received_events_url":"https://api.github.com/users/T-Maxxx/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T20:11:46Z","updated_at":"2016-06-17T20:11:46Z","body":"Made it almost year ago as plugin to 1.7a. Do you want pull request?\r\nhttps://www.youtube.com/watch?v=XPdf4L6p_Cc\r\n"}}
{"actor":{"display_login":"T-Maxxx"}}