Sound that a assigned for players cannot be reassigned.

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
XutaWoo
Posts: 4005
Joined: Sat Dec 30, 2006 4:25 pm
Location: beautiful hills of those who are friends
Contact:

Sound that a assigned for players cannot be reassigned.

Post by XutaWoo »

I get that error when I try to use this SNDINFO:

Code: Select all

weapons/monofire        dsmonofr
weapons/monox           dsmonoxp
cyborg/death			cybdth
cyborg/sight			cybsit
cyborg/jump				cybjmp
general/rpain1			rpain1
general/rpain2			rpain2
general/rpain3			rpain3
$random general/rpain	{ general/rpain1  general/rpain2  general/rpain3 }
general/bpain			bgpain
weapons/xplodx			xplodx
tank/sight				tanksee
boss/death				bossdie
boss/idle				bossidle
boss/sight				bosssee
ghoul/death				ghuldth
ghoul/pain				ghulpain
ghoul/sight				ghulsee
powerup/overheal		overheal
general/rdie			regdie
endboss/static			static
tank/sight				tanksee
general/bigxpl			bigxpl

$random ppain			{ ppain1 ppain2 ppain3 }
ppain1					Ppain1
ppain2					Ppain2
ppain3					Ppain3
pdie					Pegdie

$playeralias	player	male	*pain100	ppain
$playersoundup	player	male	*pain75		ppain
$playersoundup	player	male	*pain50		ppain
$playersoundup	player	male	*pain25		ppain
$playersound	player	male	*death		pdie
What's wrong?
User avatar
BouncyTEM
Posts: 3822
Joined: Sun Aug 24, 2003 5:42 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: 2280 Lol Street: The Calamitous Carnival (formerly Senators Prison)

Re: Sound that a assigned for players cannot be reassigned.

Post by BouncyTEM »

try this code out;

Code: Select all

$playeralias   player   male   *pain100   ppain
$playersounddup   player   male   *pain75      *pain100
$playersounddup   player   male   *pain50      *pain100
$playersounddup   player   male   *pain25      *pain100
$playersound   player   male   *death      pdie
what I changed;

it's $playersounddup, not $playersoundup.
$playersounddup can only refer to other sound types, like *pain100. it cannot refer to ppain, otherwise it needs to become $playeralias.

otherwise it all looked okay.
Locked

Return to “Editing (Archive)”