SNDINFO trouble

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Cutmanmike
Posts: 11353
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

SNDINFO trouble

Post by Cutmanmike »

Wiki says:
$pitchshift <range>
Specifies how much the pitch of the specified sound may be randomly altered when it is played. <range>> may be in the range of 0 to 7.
My SNDINFO says
// Bullet richoches
$random puff/ric { puff/ric1 puff/ric2 puff/ric3 puff/ric4}
$pitchshift 7 puff/ric1 dsric1
$pitchshift 7 puff/ric2 dsric2
$pitchshift 7 puff/ric3 dsric3
$pitchshift 7 puff/ric4 dsric4
However, I get an error every time I try to get this to work. I've tried putting the 7 in "'s <>'s, the lot. What am I doing wrong? :evil: :evil: :evil: :evil: :evil:
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

You got the order of the arguments wrong. It's

$pitchshift weapons/chngun 4

Sorry for the incorrect documentation. I copied and pasted some stuff and forgot to add the parameter to that line... :(
User avatar
Cutmanmike
Posts: 11353
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

Aha thanks
Locked

Return to “Editing (Archive)”