Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correctly split up the PUGSETUP_DAMAGEPRINT_CVARS #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on May 9, 2023

  1. correctly split up the PUGSETUP_DAMAGEPRINT_CVARS

    The previous code would split on spaces causing variables that
    contained spaces to not be set correctly.
    
    Fixed that code to correctly split the CVARS into the appropriate
    variables. Also make sure to escape slashes in values to allow sed to
    properly replace slashes.
    
    Example of CVAR that now works:
    
    ```
    PUGSETUP_DAMAGEPRINT_CVARS="sm_pugsetup_damageprint_auto_color=0,sm_pugsetup_damageprint_format= {GREEN}To: [{DMG_TO} / {HITS_TO} hits] From: [{DMG_FROM} / {HITS_FROM} hits] - {NAME} ({HEALTH} hp)"
    ```
    Paulo Erichsen committed May 9, 2023
    Configuration menu
    Copy the full SHA
    ee00223 View commit details
    Browse the repository at this point in the history