{"action":"opened","issue":{"url":"https://api.github.com/repos/OpenAngelArena/oaa/issues/1270","repository_url":"https://api.github.com/repos/OpenAngelArena/oaa","labels_url":"https://api.github.com/repos/OpenAngelArena/oaa/issues/1270/labels{/name}","comments_url":"https://api.github.com/repos/OpenAngelArena/oaa/issues/1270/comments","events_url":"https://api.github.com/repos/OpenAngelArena/oaa/issues/1270/events","html_url":"https://github.com/OpenAngelArena/oaa/issues/1270","id":242181987,"number":1270,"title":"Make DK Skin White, use LUA to retint","user":{"login":"warpdragon","id":13878439,"avatar_url":"https://avatars1.githubusercontent.com/u/13878439?v=3","gravatar_id":"","url":"https://api.github.com/users/warpdragon","html_url":"https://github.com/warpdragon","followers_url":"https://api.github.com/users/warpdragon/followers","following_url":"https://api.github.com/users/warpdragon/following{/other_user}","gists_url":"https://api.github.com/users/warpdragon/gists{/gist_id}","starred_url":"https://api.github.com/users/warpdragon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warpdragon/subscriptions","organizations_url":"https://api.github.com/users/warpdragon/orgs","repos_url":"https://api.github.com/users/warpdragon/repos","events_url":"https://api.github.com/users/warpdragon/events{/privacy}","received_events_url":"https://api.github.com/users/warpdragon/received_events","type":"User","site_admin":false},"labels":[{"id":510592261,"url":"https://api.github.com/repos/OpenAngelArena/oaa/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":510592262,"url":"https://api.github.com/repos/OpenAngelArena/oaa/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true},{"id":563149537,"url":"https://api.github.com/repos/OpenAngelArena/oaa/labels/lua","name":"lua","color":"1d76db","default":false},{"id":616043708,"url":"https://api.github.com/repos/OpenAngelArena/oaa/labels/particle/model","name":"particle/model","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-11T21:00:07Z","updated_at":"2017-07-11T21:00:07Z","closed_at":null,"body":"I had an interesting conversation with Yahnich today. It was about fixing it so DK can have a Black lvl 4 skin and a White lvl 5 skin.  It essentially involves writing the spell so that it \"Gets\" the skin(s) for whatever player is playing DK, then applies the appropriate model then tints it whatever color it needs to be. We could simply apply this method for levels 4 and 5. Here's the conversation (with unimportant parts edited out) for anyone who's interested:\r\n\r\n> just do getwearables, compare the dragon wearable\r\n> and have every wearable come in 5 versions\r\n> they get their cosmetics and you can get the cosmetic model\r\n> extrapolate to decide what dragon model to use boom ur done\r\n> setrendercolor\r\n> \r\n> \t-- but isnt' that just tinting?\r\n> \r\n> you can also just make a single dk texture\r\n> and have it pure white\r\n> \r\n> \t-- that was my original thought\r\n> \r\n> and then just use that with setrendercolor for all 5 levels\r\n> or just make 5 textures for all dragon cosmetics dk has if ur some kind of madman\r\n> \r\n> \t-- so we can recolor a single DK model\r\n> \r\n> theres various ways u can go about it\r\n> GetTogglableWearable()\r\n> it's this one\r\n> i just made an util function that iterates over all the slot types\r\n> \r\n> \t-- what happens if valve makes a new skin?\r\n> \r\n> then you just have a new model you need to retexture\r\n> \r\n> \t-- ok so make all the textures white for every dk skin ever\r\n> \t-- i like that solution\r\n> \r\n> theres like 3 custom dragons\r\n> im sure u can manage\r\n> and like i said u dont need to\r\n> you can just use the default dragon for everyone\r\n> that's only if you want cosmetic support\r\n>\r\n> \t-- what if i want cosmetic support for lvls 1-3 but not for lvls 4-5? is that possible?\r\n> \r\n> i'm like 20% sure you can directly adjust the materials a model has as well. then you just do getwearableinslot(ultimateslottypewhatever). and get their skin and if none exists go to some default model\r\n> its really easy. gettoggleablewearable gives you the model path iirc. so you can use that to immediately implement it. and if it's nil or w/e just use ur own stuff"}}
{"actor":{"display_login":"warpdragon"}}