CFilterTFClass: Difference between revisions

From SigMod
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
A filter that checks if the activator is certain TF class.
A filter that checks if the activator is certain TF class.


**Note** - This entity does not function properly after being spawned. You must set the tfclass keyvalue through AddOutput after spawning for it to actually do anything.
<b>Note</b> - This entity does not function properly after being spawned. You must set the tfclass keyvalue through AddOutput after spawning for it to actually do anything.


'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/tf/tf_filters.cpp /game/server/tf/tf_filters.cpp]'''
'''Source location : [https://github.com/sreechar/TF2-Source-Code/tree/master/tf2_src/game/server/tf/tf_filters.cpp /game/server/tf/tf_filters.cpp]'''

Revision as of 19:54, 10 July 2022

Overview

A filter that checks if the activator is certain TF class.

Note - This entity does not function properly after being spawned. You must set the tfclass keyvalue through AddOutput after spawning for it to actually do anything.

Source location : /game/server/tf/tf_filters.cpp

Linked Entity : filter_tf_class

Class Structure

Entity DataMaps

filter_tf_class
Name Type Description
m_nClass