Raised This Month: $12 Target: $400
 3% 

Stripper:Source (Updated 2011-04-15)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sorrowfire
Member
Join Date: Jul 2010
Location: <Missing String>
Old 04-08-2013 , 20:13   Re: Stripper:Source (Updated 2011-04-15)
Reply With Quote #11

So Hey, I'm looking at a way to be a little neater about removing the team requirements on spawn room doors (Or doors in general) in Team Fortress 2. Now I know I could always just filter out "filter_activator_tfteam" but in rare cases this may break parts of the map that require this information (beyond spawn room doors). So my next thought was to search through every trigger_multiple for a filtername key entry then delete that entry. My issue with this is that mappers can name the filtername whatever they want.

So I came up with this... Which Didn't work, my guess is that It doesn't like straight up wildcards.
Code:
modify:
{
    match:
    {
    "classname" "trigger_multiple"
    "filtername" "/*/"
    }
    delete:
    {
    "filtername" "/*/"
    }
}
Now, currently, I am using this as a substitute...
Code:
modify:
{
    match:
    {
    "classname" "trigger_multiple"
    "filtername" "/filter_*/"
    }
    delete:
    {
    "filtername" "/filter_*/"
    }
}
Which works perfectly fine, so far... But I had rather keep this nice and clean, so it can work across nearly any and all maps, even the ones where the mapper decided to use something different for their filtername.

Is there any way to tell Stripper to go through everything, and just remove the filtername field from every trigger_multiple?
__________________
"What do you mean SourcePawn doesn't count as a 2nd language?"
Sorrowfire is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode