Updated Filters (markdown)

Blixibon 2019-08-21 16:57:31 -05:00
parent 8ed0f48840
commit e6b84e3614

@ -1,4 +1,11 @@
A filter is a type of entity that normally holds a set of rules that other entities can use to determine behaviors, like a `trigger_once` using a `filter_activator_name` that only allows an entity with the name "cow" to pass it. [Click here for more information on filters in Source.](https://developer.valvesoftware.com/wiki/Category:Filters) <p align="center">
<img src="https://lh3.googleusercontent.com/u/0/d/1AjahRCWXDhhfoPEnfYPolyiOtmG_c4vx=w1680-h907-iv1" width="96"/>
<img src="https://lh3.googleusercontent.com/u/0/d/1ze_Ao4RgAyTNqKREGstLAe4S3l0rYY_H=w1680-h907-iv1" width="96"/>
<img src="https://lh3.googleusercontent.com/u/0/d/1wAgr5KrvmuJ23n5qjshLMQW3wfBG8XP4=w1680-h907-iv1" width="96"/>
<img src="https://lh3.googleusercontent.com/u/0/d/17wiOcfTewzzQA5cb4dupIH404yW-RFNh=w1680-h907-iv1" width="96"/>
</p>
A filter is a type of entity that holds a set of rules that other entities can use to determine behaviors, like a `trigger_once` using a `filter_activator_name` that only allows an entity with the name "cow" to pass it. [Click here for more information on filters in Source.](https://developer.valvesoftware.com/wiki/Category:Filters)
In Mapbase, all filters have been given the following new I/O/KV: In Mapbase, all filters have been given the following new I/O/KV:
@ -13,7 +20,7 @@ In Mapbase, all filters have been given the following new I/O/KV:
### New filters ### New filters
In Mapbase, a large number of standard filters have been added so mappers could test more conditions: Mapbase adds several new filters so mappers could test more conditions:
| Name | Description | | Name | Description |
|:-------------:|:-------------| |:-------------:|:-------------|
@ -28,12 +35,14 @@ In Mapbase, a large number of standard filters have been added so mappers could
| filter_activator_involume | Filters an entity by whether it's inside of a target entity's volume. (e.g. a trigger) | | filter_activator_involume | Filters an entity by whether it's inside of a target entity's volume. (e.g. a trigger) |
| filter_activator_surfacedata | Filters an entity by its surface data. (e.g. whether it's made of wood) | | filter_activator_surfacedata | Filters an entity by its surface data. (e.g. whether it's made of wood) |
Some of these filters have their own icons. (TODO: Show them here?)
--- ---
### Redirect filters ### Redirect filters
<p align="left">
<img src="https://lh3.googleusercontent.com/u/0/d/1CW6PNy5cD7fhYsSllqkGBsNMD-6FNO1f=w1680-h907-iv1" width="96"/>
</p>
"Redirect" filters are a new type of filter that takes a separate entity from the activator and passes it to another filter. For example, `filter_redirect_weapon` gets the activator's weapon and could pass it to a different filter, which then treats the weapon as the activator. "Redirect" filters are a new type of filter that takes a separate entity from the activator and passes it to another filter. For example, `filter_redirect_weapon` gets the activator's weapon and could pass it to a different filter, which then treats the weapon as the activator.
Here's a list of the standard redirect filters introduced in Mapbase: Here's a list of the standard redirect filters introduced in Mapbase:
@ -47,3 +56,9 @@ Here's a list of the standard redirect filters introduced in Mapbase:
--- ---
### Damage manipulators ### Damage manipulators
<p align="left">
<img src="https://lh3.googleusercontent.com/u/0/d/1dYTS4NZbpiUjn9aS2ZuNR3EWMWScqPwz=w1680-h907-iv1" width="96"/>
<img src="https://lh3.googleusercontent.com/u/0/d/1XjE4q5unGNzsTXWK_i32dyY8G0PjTaZg=w1680-h907-iv1" width="96"/>
<img src="https://lh3.googleusercontent.com/u/0/d/1cdPRu5Vsa2H5f9Tbusu3pJTJC6Z3qqxO=w1680-h907-iv1" width="96"/>
</p>