TTT-2 / ttt2-role_siki

This is the "Sidekick" role for TTT2
4 stars 6 forks source link

Added GetSidekickTableForRole Function + Resolved Wrong Color Problem for TargetID + Corpse Icon #3

Closed lebroomer closed 5 years ago

lebroomer commented 5 years ago

implemented GetSidekickTableForRole function which returns the possible sidekick role table for a role (including correct colors) or nil if no sidekick is possible

-this will be used for Weapons like Manipulation Knife/Death Faker, which need the possible role distribution and not the current one

lebroomer commented 5 years ago

Failed with the branches --> these should originally be 2 PRs. I will split them up if neccessary :)

lebroomer commented 5 years ago

Sorry for the bad changes - I noticed that the mistake came from a desync between Github and Steam Workshop. With the latest update on Steam Workshop colors for Sidekicks were broken. Here most of them are fine. However the corpse icon was black on both versions. This is fixed now.

lebroomer commented 5 years ago

The current solution is to remove the GetSidekickTableForRole function from this PR to first fix the bug. Further steps can be discussed in another PR. Made GetDarkenColor function for easier access in other addons.

lebroomer commented 5 years ago

Additionally to giving the needed infos for corpse building, setting the right color on server too is good for consistency.

lebroomer commented 5 years ago

Yeah, that would be the easy and boring way ^^ I will change it :D

Alf21 commented 5 years ago

Ty! Now it should seems to be fine :)