Counter-Strike 2 Hammer - Context filters (key and checkpoint system)

Описание к видео Counter-Strike 2 Hammer - Context filters (key and checkpoint system)

This video shows how to use the "filter_activator_context" entity to make a key/checkpoint system in CS2 hammer. For the key system, the basic principle is that the player cannot go through by default, unless they touch a specific trigger (the key). For the checkpoint system, the player does not get teleported by default. Once they reach the checkpoint, touching the trigger will teleport you. You really need to pay attention to the trigger placement in your map as things can easily go wrong as context filters do not get cleared without using specific triggers. Special thanks to sinnes7k.

Example map (.vmap file used in video): https://www.mediafire.com/file/gtnq4q...
Some sounds (.wav) you can use: https://www.mediafire.com/folder/50b1... (goes in \sounds folder of your map addon)

Important note about playing audio is that you will need a .wav file and other things like a "point_clientcommand" entity. These are all used in the example map above. The sound will likely NOT play for you if you compile as I used a decompiled sound file (armsrace_level_up_e.wav). This point_clientcommand entity makes the player enter a command in their console, meaning that the sound that plays is client sided. To see what is playing the sound on contact with the key, pay attention to the output of the key trigger.

References:
Sinnes7k
PRO CP tutorial by sinnes7k and myself: https://docs.google.com/document/d/1r...
Visual tutorial by sinnes7k: https://docs.google.com/document/d/1r...

Timestamps:
0:00 Intro
0:15 Key system
1:05 Removing specific keys
1:25 Checkpoint system
1:45 Considering exploits
2:10 Visuals / audio cues
2:20 Outro

Комментарии

Информация по комментариям в разработке