Task #1290

Replace current weapon icons for cg_simpleItems

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

Status:In Progress% Done:

90%

Priority:NormalSpent time:-
Assignee:keMoN
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 about 1 month ago

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

Revision 5ae569a6
Added by Spyhawk about 1 month ago

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

Revision b9c0012b
Added by Spyhawk about 1 month ago

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

Revision 8030dd7e
Added by Spyhawk about 1 month ago

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

Revision 036e1fb5
Added by Spyhawk about 1 month ago

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

Revision 21730c37
Added by Spyhawk about 1 month ago

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

Revision caec9425
Added by Spyhawk about 1 month ago

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

Revision cb7c9e86
Added by Spyhawk 6 days ago

cgame: use better cg_simpleItems icons, refs #1290

Revision de504b13
Added by Spyhawk 6 days ago

ui: added cg_simpleItems in game options, fixes #1290

Revision eb7feb19
Added by Spyhawk 5 days ago

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

Revision aa942a90
Added by Spyhawk 2 days ago

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

History

#1 Updated by Spyhawk 2 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 2 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 2 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 2 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 about 1 month ago

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

#6 Updated by Spyhawk about 1 month 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 about 1 month ago

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

#8 Updated by keMoN about 1 month ago

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

#9 Updated by Spyhawk about 1 month 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 about 1 month ago

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

#11 Updated by Spyhawk about 1 month ago

#12 Updated by Spyhawk about 1 month 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 about 1 month ago

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

#14 Updated by Spyhawk 29 days 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 6 days ago

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

#16 Updated by Spyhawk 1 day ago

  • Status changed from Fixed to In Progress
  • % Done changed from 100 to 90
  • The color are a bit too neonish (indeed they’re copy pasted from Warsow) and need to be adjusted.
  • Keep green for the obj color, and use another for health (maybe purple)
  • 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.
  • 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.

Also available in: Atom PDF