Author Topic: onjoin sound  (Read 3119 times)

0 Members and 1 Guest are viewing this topic.

JRWR

  • Guest
onjoin sound
« on: February 19, 2008, 09:29:40 PM »
i found this while messing around with ULX

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

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

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

Offline benbrooks

  • Newbie
  • *
  • Posts: 28
  • Karma: 2
Re: onjoin sound
« Reply #1 on: February 23, 2008, 02:10:51 PM »
Nice find :D

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

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: onjoin sound
« Reply #2 on: February 23, 2008, 02:55:10 PM »
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
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline benbrooks

  • Newbie
  • *
  • Posts: 28
  • Karma: 2
Re: onjoin sound
« Reply #3 on: February 24, 2008, 11:20:56 AM »
good idea :)

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