Basic sound

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Robse
Private
Posts: 7
Joined: Tue Jun 10, 2003 8:20 pm
Location: Karlsruhe, Germany

Basic sound

Post by Robse »

Hi, I'm a beginner and I'm kind of stuck, maybe this should be posted
in the Mapping section...don't know...anyway, I did a basic map with
a door and a breaking window. Then I put a very basic script with it
and pk3'd these two. But there is no sound at all? Like walking, the
door opening etc...I put a doortype/wood key/value pair for the
door too...???

The map is named "1stmap". I used Nemesis' basic script:

Code: Select all

// 1stmap

main:

// set scoreboard messages
setcvar "g_obj_alliedtext1" "" 
setcvar "g_obj_alliedtext2" ""
setcvar "g_obj_alliedtext3" ""
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" ""
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "none" 


level waitTill prespawn

//*** Precache Dm Stuff
exec global/DMprecache.scr

level.script = "maps/1stmap.scr"

level waittill spawn

end
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

well to start you off, you have to put a "test_" prefix. put a test_ prefix to it and it'll work. there are more productive ways, but that should do for now.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

dm folder

Post by tltrude »

Move your bsp and scr files from the maps folder to maps/dm and it will work.
Tom Trude,

Image
Robse
Private
Posts: 7
Joined: Tue Jun 10, 2003 8:20 pm
Location: Karlsruhe, Germany

Post by Robse »

Ahh very nice, very nice. It works! It works!
Learned something today :)
Thanks a lot Tom. And Alcoholic for the effort!
Post Reply