Skip to content

[entity] Implement support for target_fragsFilter #102

Description

@heysokam

Frags filter is conditional entity, which fires its targets, when the player, triggering it, has appropriate count of frags.
Frags in Defrag are obtained through activation of target_score.
If the Frags Filter is not bound from a trigger, it becomes independent and is so always active.
Defrag is limited to 10 independent target_fragsFilters.
Independent frags filters are bugged: can't be triggered twice in single player mode (unless RESET flag is set); in multiplayer mode one player can block it for others.
Don't use such ones! Using trigger, connected to frags filter is highly recommended (trigger may be levelwide, if global behavior is required).

Keys

  • frags | Frags | integer | 1 | Number of frags required to trigger the targeted entity (default 1).
  • target | Target | target | | This points to entity to activate in case of correct score.
  • targetname | Target Name | targetname | | Trigger, activating frags filter, points to this.

Flags

  • REMOVER | Removes from player's score the number of frags that was required to trigger the targeted entity.
  • SILENT | Disables player warnings ("x more frags needed" messages).
  • RESET | Resets player's score to 0 after the targeted entity is triggered.
  • MATCH | The player's score must be exactly equal to the frags value.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions