ZTHawk / HL1_SankSounds

1 stars 1 forks source link

1.1) Installation 1.2) How is the configfile structured ?

2.1) Special-Options inside configfile 2.2) WAV, MP3 and SPEECH correctly inside configfile 2.3) Adding a new keyword/sound 2.4) Custom access levels per Word/Sound

3) CVAR's and their description

4.1) WAV is not equal WAV, here is the corrrect format 4.2) More sounds added than working/displayed ? 4.3) Plugin is not working or problems with sounds ? 4.4) Server crashed ?

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

1.1)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

1.2)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2.1)

SND_MODE: Choose options below add add them together (0 = Off) 1 = dead can play sounds 2 = alive can play sounds 4 = dead can hear sounds 8 = alive can hear sounds 16 = alive and dead are isolated 32 = dead can hear sounds from alive ( even if isolated ) 64 = alive can hear sounds from dead ( even if isolated ) 128 = bots can use sounds

eg: 1 + 4 = 5, means only dead can play and hear sounds

The three options 16 + 32 + 64 together are the same as if you do not set any of them

SND_OBEY_DUR: Choose options below add add them together 0 = Noone 1 = Normal players shall obey sound duration 2 = Admins with "ACCESS_ADMIN" shall obey sound duration 4 = Admins with RCON shall obey sound duration

eg: 1 + 2 = 3, means normal players and normal admins have to obey sound duration 7, means that RCON admins have to obey sound duration too

Additional Configs: ( those are optional )

mapname:

mapnameonly:

package:

modspecific:

INFO: mapname = precaching of sounds on specified map, BUT you can use sounds on all maps mapnameonly = precaching of sounds on specified map, BUT you can only use these sounds on this map

INFO2: Starting a new OPTION will result that the following sounds are bound to that option ONLY.

EG: mapname de_dust haha; misc/haha.wav mapname cs_italy hi; misc/hi.wav

"misc/hi.wav" is bound to option "mapname cs_italy"

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2.2)

Different sound types need different settings:

WAV files: and MP3 Files:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2.3)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

2.4)

Infront of a word/sound add @@ Replace with the access levels you desire

eg: @abc@hallo; sound/misc/hallo.wav; @ab@sound/misc/hi.wav

the keyword "hallo" can be used by everyone with access "a", "b" or "c" only players with access "a" or "b" may play "sound/misc/hi.wav" BUT all can play "sound/misc/hallo.wav"

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

3)

CVARS:

"mp_sank_sounds_download" 0 or 1 :

This one enables or disables the "Internal download system" In other word, Sank Sounds will take care so players will download all sounds

"mp_sank_sounds_freezetime"

This one defines how long to wait till first join/leave sound is played after mapchange (to prevent mass sound spamm on map change)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

4.1)

The WAVs you create yourself must have this format:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

4.2)

When you have problems with sounds check your server console and amxmodX logs. The logs are located in "/addons/amxmodx/logs/L.log". Open it (with notepad). A Log made by Sank Sounds looks like this: "L // -

XXXXX is the message that is important. It tells you what is wrong.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

4.3)

If you added many sounds and not all are played possibly you have more than Sank Sounds support by default ( default = 80 ). You will need to open the .sma and search these lines and adjust their values:

define MAX_KEYWORDS 80 // Maximum number of keywords

define MAX_RANDOM 15 // Maximum number of wavs per keyword

define TOK_LENGTH 60 // Maximum length of keyword and wav/mp3 file strings

define MAX_BANS 32 // Maximum number of bans stored

define NUM_PER_LINE 6 // Number of words per line from amx_sound_help

BUT attention: ( MAX_RANDOM + 1 ) * TOK_LENGTH must be smaller than 2048

eg default: ( 15 + 1 ) * 60 = 960

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

4.4)

a)

If you get an error like: "Host_Error: PF_precache_sound_I : Sound ´fgrunt/medic.wav´ failed to precache because the item count is over the 512 limit." you will need to decrease your amount of sounds this is a Half-Life bug, there is NO way to fix this

b)

SERVER CRASH: This can only happen when the "Internal download system" is on (or these sounds are downloaded by another plugin) You have 2 possibilities:

1) Disable the "Internal download system" by changing the cvar "mp_sank_sounds_download" to 0 In server console "mp_sank_sounds_download 0" Or to make it permanent, add this line to amxmodx.cfg: "mp_sank_sounds_download 0"

2) Decrease your sound list

IMPORTANT: Using other download plugins for all sounds will NOT help. This is a HL bug and NOT possible to fix.