[SELECT ALL] Code:
registersound "misc/impact_t" [volume] [] [] // 47 - S_HITSOUND
The other two arguments are "loop" (you don't want this looping, XD) and "radius" (not applicable here).
If you want, you can create an alias modifiable in-(between) game(s).
[SELECT ALL] Code:
alias hitsoundvol [128] // or whatever
// Then the line in sounds.cfg should look like this:
registersound "misc/impact_t" $hitsoundvol [] [] // 47 - S_HITSOUND
[SELECT ALL] Code:
/hitsoundvol = 32
EDIT: Hehe. $hitsoundvol. GG
Okay, back on topic:
- Ident which can check whether a certain menu is defined
[SELECT ALL] Code:
echo (menudefined "Rave Party") // Shameless plug
output: 1
- Ident which can delete a certain line of a menu after it is defined
[SELECT ALL] Code:
newmenu "test"
menuitem "set test as 1" "test = 1"
menuitem "set test as 2" "test = 2"
menuitem "set test as 3" "test = 3"
menuitem "set test as 4" "test = 4"
menuitem "delete line 3" "menudeleteline 3"