Forum Archive

Go Back   3D Realms Forums > 3D Realms Topics > Duke Nukem > Duke Nukem 3D Modifications
Blogs FAQ Members List Social Groups Calendar Mark Forums Read

Notices

 
 
Thread Tools
Old 07-24-2010, 09:44 AM   #1
Pigeon

Pigeon's Avatar
Question 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?
Pigeon is offline  
Old 07-24-2010, 11:07 AM   #2
DeeperThought

DeeperThought's Avatar
Re: game.con modification
Quote:
Originally Posted by Pigeon View Post
I am trying to change the sounds the hookers make, but I want to leave the sound that strippers make
That's not clear.


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.
DeeperThought is offline  
Old 07-24-2010, 12:05 PM   #3
Pigeon

Pigeon's Avatar
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.
Pigeon is offline  
Old 07-24-2010, 07:58 PM   #4
Dopefish7590

Dopefish7590's Avatar
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?
This is outside of a code tag...
No indentation here...

Quote my post and look at if if you don't understand.
Dopefish7590 is offline  
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  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 01:21 PM.

Page generated in 0.07399988 seconds (100.00% PHP - 0% MySQL) with 18 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

Website is ©1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.