capturetheflag icon indicating copy to clipboard operation
capturetheflag copied to clipboard

/lb should show a panel with visual properties of those who have bounty on their head

Open farooqkz opened this issue 3 years ago • 9 comments

I think the title explains well. Since currently there is no way to do #1009 so I think this could work. Visual properties mainly are hair colour and skin colour but it's a good idea to include eye colour as well.

farooqkz avatar Jun 18 '22 05:06 farooqkz

Those can be changed on the fly, I think a name is good enough

LoneWolfHT avatar Jun 19 '22 16:06 LoneWolfHT

Those can be changed on the fly

Yeah and /lb could show the latest info always

I think a name is good enough

I don't think it is. One will have to be real close with an enemy to recognize it by name. By visual properties, it will be much easier for people to kill those who have bounty on their head.

farooqkz avatar Jun 19 '22 16:06 farooqkz

Any progress/thoughts on this? I've tried to do it myself but when I forked this repo and tried adding a lb2 command, I noticed my fork doesn't have "Customize" tab and I don't know why...

farooqkz avatar Jul 19 '22 11:07 farooqkz

Any progress/thoughts on this? I've tried to do it myself but when I forked this repo and tried adding a lb2 command, I noticed my fork doesn't have "Customize" tab and I don't know why...

That's a part of the private mod. The public API should work for you though https://github.com/MT-CTF/capturetheflag/blob/master/mods/ctf/ctf_cosmetics/init.lua

LoneWolfHT avatar Jul 19 '22 14:07 LoneWolfHT

Hmm... How can I test my code then? Can you give hints how to have a 3D view of a player like you do in Customize?

farooqkz avatar Jul 24 '22 12:07 farooqkz

Hmm... How can I test my code then? Can you give hints how to have a 3D view of a player like you do in Customize?

Your code will work if it displays what the player looks like using the ctf_cosmetics function(s)

I think the classes code uses ctf_cosmetics for the class skins

LoneWolfHT avatar Jul 25 '22 17:07 LoneWolfHT

And how should I display what the player looks like?

farooqkz avatar Jul 26 '22 12:07 farooqkz

And how should I display what the player looks like?

The easiest way would probably be a model[] element displaying the player model (focused on the face part) with the bountied player's textures applied

LoneWolfHT avatar Jul 29 '22 04:07 LoneWolfHT

I think ctf_cosmetics.get_skin(player) will work for getting the correct player texture

LoneWolfHT avatar Jul 29 '22 04:07 LoneWolfHT

Implemented

farooqkz avatar Jan 17 '23 11:01 farooqkz