Sarrus1 / ----ZonesAntiCamp

An advanced anti-camp plugin for CS:GO, made for fuckZones by Bara.
https://forums.alliedmods.net/showthread.php?p=2727389#post2727389
2 stars 1 forks source link

Camper sounds do not play #4

Open crashzk opened 3 years ago

crashzk commented 3 years ago

I added other sounds to play when the player is camper but it doesn't work.

FastDL and plugin configuration is all right, but does not reproduce. Only error that shows on the console would be this:

S_StartSound: Invalid sample rate (48000) for sound 'misc\anticamp\campernojento.mp3'.

Attached is the audio files I am using.

sound.zip

It also follows the configuration I use:

sm_fuckzone_anticamp_sound_path "misc/anticamp/CamperNojento.mp3"
// This file was auto-generated by SourceMod (v1.10.0.6502)
// ConVars for plugin "FuckZonesAntiCamp.smx"

// How much time a client has to be out of a camping zone before he is no longer instantly slapped when entering one.
// -
// Default: "5.0"
// Minimum: "0.000000"
sm_fuckzone_anticamp_cooldown_delay "5.0"

// Damage to inflict to the player when punishing them.
// -
// Default: "20"
// Minimum: "0.000000"
// Maximum: "100.000000"
sm_fuckzone_anticamp_damage "5"

// How much time after the round start until the timer automatically disables. Set to 0 to disable.
// -
// Default: "40"
// Minimum: "0.000000"
sm_fuckzone_anticamp_disabletime "0"

// Enable the warning system. 0 to disable, 1 to enable. ***REQUIRES the SM warn plugin!***
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_fuckzone_anticamp_enable_warn "0"

// How much time before slapping.
// -
// Default: "5"
// Minimum: "0.000000"
sm_fuckzone_anticamp_punishdelay "5"

// How much time between slaps.
// -
// Default: "2"
// Minimum: "0.000000"
sm_fuckzone_anticamp_punishfreq "2"

// Ramp up the damages proportionnaly to amount of time players have been caught camping when slaping players
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_fuckzone_anticamp_rampup_dmg "0"

// 0 to slap a player, 1 to only damage them.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_fuckzone_anticamp_slapordamage "0"

// The file path of the camping sound. Leave blank to disable.
// -
// Default: "misc/anticamp/camper.mp3"
sm_fuckzone_anticamp_sound_path "misc/anticamp/CamperNojento.mp3"

// Time in seconds before players must leave the zone or die
// -
// Default: "10"
sm_fuckzone_anticamp_time "10"

// The warn reason.
// -
// Default: "Stop camping."
sm_fuckzone_anticamp_warn_reason "PARE DE CAMPERAR!"

// After how many times a player caught camping should be warned.
// -
// Default: "3"
// Minimum: "0.000000"
sm_fuckzone_anticamp_warn_value "3"
Sarrus1 commented 3 years ago

Hello,

S_StartSound: Invalid sample rate (48000) for sound 'misc\anticamp\campernojento.mp3'. means that the sound is not sampled properly, you have to resample it for CS:GO to be able to play it.

You can do this here. Try to set "Sampling" to 32000 Hz, or 24000 Hz, one of them should work correctly.

crashzk commented 3 years ago

@Sarrus1

I changed the Hz of the sounds, same error:

S_StartSound: Invalid sample rate (24000) for sound '*misc\anticamp\oh camper camper.mp3'.
S_StartSound: Invalid sample rate (24000) for sound '*misc\anticamp\camper nojentooo.mp3'.

I left them all at 24000 Hz in the case.

I changed their name before uploading to the server, updated FastDL and downloaded it again, nothing.

sounds.zip

Sarrus1 commented 3 years ago

Hmm, I'll try to see if I can remember how I did it before, will let you know!