splewis / csgo-pug-setup

CS:GO Sourcemod plugin for setting up private pug/10man games
GNU General Public License v3.0
413 stars 90 forks source link

sm_pugsetup_damageprint_format does not apply color when the color is first #425

Open paulo-erichsen opened 1 year ago

paulo-erichsen commented 1 year ago

Expected behavior

I'm configuring it like this

sm_pugsetup_damageprint_format "{GREEN}To: [{DMG_TO} / {HITS_TO} hits] From: [{DMG_FROM} / {HITS_FROM} hits] - {NAME} ({HEALTH} hp)"

Actual behavior

  1. the Green color is not applied

I've found a workaround is to add a space before the color. The following works, but not the above.

sm_pugsetup_damageprint_format " {GREEN}To: [{DMG_TO} / {HITS_TO} hits] From: [{DMG_FROM} / {HITS_FROM} hits] - {NAME} ({HEALTH} hp)"
splewis commented 1 year ago

Yes, this is an unfortunate bug. Glad you found the workaround.

As far as I know, this is a bug in csgo itself, so it may not be fixable in the plugin (I could be wrong, though).