Task #1290

Replace current weapon icons for cg_simpleItems

Added by keMoN 4 months ago. Updated 1 day ago.

Status:In Progress% Done:

80%

Priority:NormalSpent time:-
Assignee:Spyhawk
Category:Mod CGAME
Target version:2.77
OS: Arch:

Description

We are currently using the weapon icons from the HUD for cg_simpleItems 1
Especially, weapons are horribly stretched in this use case so a new set of icons should be created which can be properly used in the HUD and for that cvar.

shot0001.jpg - Obj simple (233 KB) Spyhawk, 23.05.2019 15:55

shot0003.jpg (206 KB) Spyhawk, 23.05.2019 18:32

shot0004.jpg (207 KB) Spyhawk, 23.05.2019 18:32

shot0001.jpg - perspective (202 KB) Spyhawk, 13.06.2019 18:31

shot0003.jpg - perspective (201 KB) Spyhawk, 13.06.2019 18:31

1105
1106
1107
1114
1115

Associated revisions

Revision e242870e
Added by Spyhawk 4 months ago

cgame: colour simple items based on class avaibility, refs #1290

Revision 5ae569a6
Added by Spyhawk 4 months ago

cgame: extended simple item display to objective, refs #1290

Revision b9c0012b
Added by Spyhawk 4 months ago

cgame: allow optional simple items but regular objective, refs #1290

Revision 8030dd7e
Added by Spyhawk 3 months ago

cgame: added bobing effect on objective simple item, refs #1290

Revision 036e1fb5
Added by Spyhawk 3 months ago

cgame: do not colour simple items for spectators, refs #1290

Revision 21730c37
Added by Spyhawk 3 months ago

cgame: fixed simple items coloration for ammo pack and opposite team weapons, refs #1290

Revision caec9425
Added by Spyhawk 3 months ago

cgame: fixed simple items colour when following, refs #1290

Revision cb7c9e86
Added by Spyhawk 2 months ago

cgame: use better cg_simpleItems icons, refs #1290

Revision de504b13
Added by Spyhawk 2 months ago

ui: added cg_simpleItems in game options, fixes #1290

Revision eb7feb19
Added by Spyhawk 2 months ago

cgame: adjusted z-axis of simple item icons, refs #1290

Revision aa942a90
Added by Spyhawk 2 months ago

cgame: slightly decreased size of simple items icons, refs #1290

Revision c8f0c3f3
Added by ryven 2 months ago

cgame: support simple item icon scale, refs #1290

  • refactored simple items code and implemented own sprite drawing method
  • added simple items icon x and y scaling through weapon file, which
    now allows proper drawing of rectangular icons

Revision 6ae18e46
Added by ryven 2 months ago

cgame: fix simple items ammo tinting, refs #1290

Revision c228ab1f
Added by Spyhawk 2 months ago

misc: replaced colored simple icons by white icons, refs #1290

Revision 2bc9bb81
Added by Spyhawk 2 months ago

game: colorize all simple icons dynamically, refs #1290

Revision b2a9387d
Added by Spyhawk 2 months ago

cgame: added different colors for team objectives, refs #1290

Also adjusted color palette to be less distracting.

Revision 89de1501
Added by Spyhawk about 1 month ago

cgame: adjusted color to better differentiate simple icons, refs #1290

  • Blue and red for objectives
  • Green and yellow for health and ammo
  • Black and grey for weapons avaibility

Revision beb42ad0
Added by Spyhawk about 1 month ago

ui: add cg_simpleItems 2 option in UI, refs #1290

Revision 49b34141
Added by Spyhawk about 1 month ago

misc: fixed simple items icons aspect ratio, refs #1290

History

#1 Updated by Spyhawk 4 months ago

To keep in mind: these (distorted) icons are used to improve usability. A possible visual improvement shouldn’t have downside for players using cg_simpleItems.

#2 Updated by keMoN 4 months ago

Is it possible to only display those items that the player can actually pick up?
So that a Medic doesn’t see the FG42 icon or a Panzerfaust item for example.
That could improve visibility as well.

#3 Updated by Spyhawk 4 months ago

Should be, yes. That’s a good suggestion.

We should however decide what to do with the non-relevant icons too:
  • display them as 3D models (as usual)
  • display all items as simplified icons, but use a dimmer icon (for example).
  • don’t display them at all?

Second option might be preferable for players, would be more consistent (imho) and would also be a bit simpler to implement than first option.

#4 Updated by ryven 4 months ago

I would go with 1st option perhaps, since the idea of simple items is not to save frames, but to improve visibility anyways.

#5 Updated by kimi 4 months ago

seeing weapons u cant use, can still be usefull gameinfo in competition

#6 Updated by Spyhawk 4 months ago

kimi wrote:

seeing weapons u cant use, can still be usefull gameinfo in competition

Could you expand on this? Useful for switching class?

#7 Updated by ryven 4 months ago

Probably useful to tell other teammates about it, i guess.

#8 Updated by keMoN 4 months ago

Then option two is the best way I guess. A little of both worlds.

#9 Updated by Spyhawk 4 months ago

Non relevant items are now coloured in red.
Would there be any interest in using simple items for objectives too? See attached screenshot (don’t mind the buggy cut off, I quickly implement to have an idea).

#10 Updated by keMoN 4 months ago

I’d say that’s a very good idea!

#11 Updated by Spyhawk 4 months ago

#12 Updated by Spyhawk 3 months ago

Something is wrong with weapon icons perspective. They are drawn above objects (in this case, the obj icon) rather than behind. See attached screenshot.

#13 Updated by Spyhawk 3 months ago

  • Subject changed from Replace current weapon icons to Replace current weapon icons for cg_simpleItems

#14 Updated by Spyhawk 3 months ago

The stretch issue itself is hard to solve without deeper change in the code. We should probably add a new set of icons for use as simpleitem only. Keep the current icons for HUD only (since they are ok and well known), and use weapon files to define a new "simpleItem" icon.

  • check simple item color (ammo pack and opposite team weapons). (done)
  • keep icons really simple and recognizable, while still somewhat similar to existing icons (done) - feel free to improve!
  • use round icons for ammo/health (redish/yellowish color?), use another shape for weapons on ground (square, ..). (done)
  • add cg_simpleItems in UI (done)

#15 Updated by Spyhawk 2 months ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

#16 Updated by Spyhawk 2 months ago

  • Status changed from Fixed to In Progress
  • % Done changed from 100 to 90
  • use white icons for health, ammo and obj and color them in the code (like items for weapons). This will give more flexibility if we need to adjust them. (done)
  • The color are a bit too neonish (indeed they’re copy pasted from Warsow) and need to be adjusted. (done)
  • Keep green for the obj color, and use another for health (maybe purple) (see below)
  • objective icons should be able to be differentiated for each team (f.e. for baserace). See if adding a team flag over it, or using a different color would help. (done, blue/red colors)
  • use darker color for non pickable weapons, instead of the too distracting red (done)
  • use redish for health, instead of green (done)
  • adjust weapon icons to be wide.
  • Drop the square pattern, but use only weapon icons. (maybe?)

#17 Updated by Spyhawk about 1 month ago

  • Status changed from In Progress to Fixed
  • Assignee changed from keMoN to Spyhawk
  • % Done changed from 90 to 100

#18 Updated by Spyhawk about 1 month ago

Note: colors and aspect ration have been adjusted and icons should now be comfortable to use. Let’s ship the next snapshot update with icons, and we’ll see if better icons are needed.

#19 Updated by Spyhawk 1 day ago

  • Status changed from Fixed to In Progress
  • % Done changed from 100 to 80

Reopening.

The good:
  • weapon icons are easy to recognize even on long distance
  • color based on class availability is great
The less-good:
  • weapon overlay too intrusive. Remove the white "border" but keep the translucent background (so we get a sense of where it touches the ground, which make it easier to pick up)
  • health, ammo and objective icon colors are less neonish that first try, but they still don’t look fully integrated. Make them more wwish (see the shield icon, maybe use a similar white border with full background).

Also available in: Atom PDF