General > Developers Corner

onjoin sound

(1/1)

JRWR:
i found this while messing around with ULX

in addons\ulx\lua\ulx\cl_init.lua


--- Code: --- Msg( "ULX version " .. ulx.getVersion() .. " loaded.\n" )
        surface.PlaySound("jrwrstart.mp3") -- This plays a sound on join, make sure its forced downloaded

--- End code ---

TIP: add some silence at the start of the sound (3 secs is good)

benbrooks:
Nice find :D

This will be useful in welcoming the user and reminding them to check the MOTD/rules.

JamminR:
One of the features I'm tossing into UMotd (Two, Revived, Revised, Remixed, whatever I name it) is a random sound when a message screen pops up.
In testing I've been using surface.PlaySound( "/vo/canals/gunboat_herelook.wav" ). This one in which the refugee man helping you arm the gunboat in HL2 says "Here, take a look at this".. I think when looking at a map.
While tinkering in GCFScape, I'm probably going to use the following randomly.
/vo/canals/gunboat_herelook.wav
/vo/canals/shanty_hey.wav
/vo/canals/shanty_gotword.wav
/common/warning.wav
/doors/door_latch3.wav
/npc/roller/blade_out.wav

benbrooks:
good idea :)

i'll see if there are any more useful sounds to add too...

Navigation

[0] Message Index

Go to full version