Source2ZE / StripperCS2

A Metamod plugin that allows server operators to manage map lump data similarly to how Stripper:Source worked.
GNU General Public License v3.0
31 stars 5 forks source link

Need help. #3

Closed sundog259 closed 5 months ago

sundog259 commented 5 months ago

Hello,I want to modify the output of a trigger_multiple entity in the map. Here's an example of the current output:

targetname                     CString    [PR#]Nuke_check
classname                      CString    trigger_multiple
@OnStartTouch Command [PR#]servercmd say ** YOU WON **

I want to add a 'fire once only' feature to it to prevent the console spamming. How should I write this?

Frozen-H2O commented 5 months ago

Probably something like this:

{
    "modify": [
        {
            "match": {
                "classname": "trigger_multiple",
                "targetname": "[PR#]Nuke_check",
                "io": [
                    {
                        "overrideparam": "say ** YOU WON **"
                    }
                ]
            },
            "replace": {
                "io": {
                    "timestofire": 1
                }
            }
        }
    ]
}
sundog259 commented 5 months ago

thanks :3