Goldsrc Sound precaching for sounds playing within models

So I’m trying to get a sound to play when a monster_generic in the map dies, but whenever it’s supposed to play the sound, this outputs to console instead:

SV_StartSound: ourstuff/officedie.wav not precached (0)

how would I get the sound to precache so it plays when the model “dies”?

qc if it matters (remember, I’m using goldsrc) (The model works perfectly besides the sound)



$modelname "officeman.mdl"
$cd "."
$cdtexture "."
$scale 1.0
$cliptotextures


$bbox 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
$cbox 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
$eyeposition 0.000000 0.000000 0.000000


//reference mesh(es)
$body "studio" "office_ref"


// 1 animation sequence(s)
$sequence "office_idle" "office_idle" fps 30 loop ACT_IDLE 1 
$sequence "office_walk" "office_walk" LX fps 30 loop ACT_WALK 1
$sequence "office_run" "office_run" LX fps 40 loop ACT_RUN 1
$sequence "office_ponder" "office_ponder" fps 30
$sequence "office_gethurt" "office_gethurt" fps 30 ACT_SMALL_FLINCH 1 
$sequence "office_die" "office_die" fps 24 ACT_DIESIMPLE 1 {
	{ event 1004 1 "ourstuff/officedie.wav" }
}


the QC will not precache sounds for you. you will have to precache it within the map, which i have no clue about, personally.