07-24-2010, 09:44 AM | #1 |
game.con modification
Oh hello, if you know anything about modding game.con please tell me, I am trying to change the sounds the hookers make, but I want to leave the sound that strippers make, does anybody know how to do this?
I figured out how to change the sounds but I now have 2 problems: 1: Both sounds are playing at the same time. 2: Strippers are making this noise too, I want just the Hookers to sound this way Also the bolded parts below are the parts I edited: (Ctrl+G > 2874) ---------------------------------------------------------------- { tip ifrnd 128 soundonce ENDSEQVOL3SND9 else soundonce TGSPEECH ifactor FEM1 action FEMDANCE1 } ends ------------------------------------------------------------------------------ Could somebody please tell me what I did wrong and how to make the mod work? |
|
07-24-2010, 11:07 AM | #2 | |
Re: game.con modification
Quote:
As far as your code: In your post include the entire state, and also include the code that makes the state execute. And use the code tag in your post so it's formatted properly. What might be happening is that block of code is getting executed a bunch of times, resulting in both sounds playing.
__________________
DUKE PLUS New map effects and various optional extras for Duke 3D. DUKE NUKEM: ATTRITION XP based weapon upgrades, progressive difficulty, and more. |
||
07-24-2010, 12:05 PM | #3 |
Re: game.con modification
I changed DUKE_TIP1 to ENDSEQVOL3SND9
DUKE_TIP2 to TGSPEECH also here's a larger portion of the code: -------------------------------------------------------------- state killme ifinwater nullop else ifp pfacing ifpdistl 1280 ifhitspace soundonce KILLME ends state tipme ifp pfacing ifpdistl 1280 ifhitspace { tip ifrnd 128 soundonce ENDSEQVOL3SND9 else soundonce TGSPEECH ifactor FEM1 action FEMDANCE1 } ends state toughgaltalk ifp pfacing ifpdistl 1280 ifhitspace state toughgalspeech ends ---------- Post added at 02:05 PM ---------- Previous post was at 02:04 PM ---------- That was all I changed, it should work just like the normal Duke3d where only one sound plays at a time. |
|
07-24-2010, 07:58 PM | #4 |
Re: game.con modification
As Deeperthought said, it would probably be a good idea to use code tags to wrap around your code, if you don't get it, just put "[code]" at the beginning of your code in your post and end it with "[/code]"... Because if you don't vBulletin will get rid of all the indentation so we can't see the formatting.
Code tags look like this. Code:
This is in a code tag. Notice it keeps indentation? No indentation here... Quote my post and look at if if you don't understand. |
|
07-27-2010, 01:49 PM | #5 |
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
__________________
DUKE PLUS New map effects and various optional extras for Duke 3D. DUKE NUKEM: ATTRITION XP based weapon upgrades, progressive difficulty, and more. |
|
Bookmarks |
|
|