View Single Post
Old 07-27-2010, 01:49 PM   #5
DeeperThought

DeeperThought's Avatar
Re: game.con modification
Anyway, the problem is what I suspected. As the player presses the use key, it runs that tipme code every game tic, so of course both sounds are played.

Code:
state tipme
     ifp pfacing
       ifpdistl 1280
         ifhitspace
           ifcount 30
     {
         resetcount
         tip
         ifrnd 128
           soundonce ENDSEQVOL3SND9
         else
           soundonce TGSPEECH
         ifactor FEM1
           action FEMDANCE1
     }
ends
This should fix it. It makes the actor wait 30 tics before making the sound again, and resets the counter when it does.
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
DeeperThought is offline