Simple chase/ambient system 2 | Hide and seek gmod
This addon adds a chase and ambient music system for players(Maybe for fnaf hide and seek). This is due to several factors.:
1. The surrounding players
2. Player characteristics (speed, health)
For clarification:This addon treats those players with health >= 5000 as a maniac. That is, these are the ones who pose a threat to the players, and of course you have to hide from them.
And the survivors are you who have < 5000 health. Because it’s easier for them to die and they won’t get that number in any way.
Therefore, if both characters meet, the chase for the survivor will begin, the maniac will not hear the music, it will interfere with the closed maps and the purpose of hiding. And you will be able to regulate this process with several commands.:
==================================================================
——————————————————-
sv_chase_on
This command transmits the values of walking and jumping, which change back at death, so this is necessary to reproduce the chase process and the sound response.
——————————————————-
sv_chase_music "path to chase" "path to ambient"
You need to enter two arguments in this command:
1. The path to the chase music file
2. The path to the ambient music file (optional)
Keep in mind that ambient is not endless, as there is no music looping.
The addon contains a music template and therefore you can use ready-made ones:
"sound/music1.mp3" – options from 1 to 6
"sound/amb1.mp3" – options from 1 to 9
Experiment!
——————————————————-
sv_chase_range "Number"
Sets the radius of the beginning of the pursuit. It’s very simple. The recommended radius is 400 or 600. It depends on the objectives of the game and the frequency of chases.
But there is one thing, if the radius of the chase is less than 20, it will not be played, so if you urgently need to muffle the sounds of the chase, you can quickly set the radius to 1 and not worry about it.
——————————————————-
============================================================
This addon was reloaded through the previous one. The reason is that this addon will be new, which means it will be more popular, and it’s easier for me to start updating it from scratch than updating the old addon.
Check out my other addons related to this topic as well: https://steamcommunity.com/sharedfiles/filedetails/?id=3595743915