New ubersound work-around!

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

New ubersound work-around!

Post by jv_map »

Woohoo no more messing with TIKIs 8-)

I found an easier way which seems to work on both client and server directly from the map script.

Here's how I did it (put this above level waittill prespawn):

Code: Select all

local.master = spawn ScriptMaster
local.master aliascache soundalias wavfile soundparms numbers channel loaded maps "mapname"
// local.master remove // edit: omit this line

You can add a great number of aliases this way :).

If there is a demand for it I can probably make a global script for it.
Last edited by jv_map on Tue Oct 04, 2005 2:26 pm, edited 5 times in total.
Image
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

Nice work, thats much easier than having to place them in a tiki and having to pre-chache them.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Scriptmaster

Post by tltrude »

What is a "ScriptMaster" and where can I read about them?
Does it work on dedicated servers?
Do we need all three lines for each aliascache?
Tom Trude,

Image
Fatz
Private
Posts: 7
Joined: Thu Jun 26, 2003 1:04 pm

Post by Fatz »

Thanks JV, I'll give it a try

:)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Re: Scriptmaster

Post by jv_map »

tltrude wrote:What is a "ScriptMaster" and where can I read about them?
Does it work on dedicated servers?
Do we need all three lines for each aliascache?

Well a ScriptMaster is a pretty weird thing, that's all I know about it. You can read about it in g_allclasses.html :)

It does work on dedicated servers 8-)

You need only one line per aliascache, like this:

Code: Select all

local.master = spawn ScriptMaster

local.master aliascache soundalias1 wavfile1 soundparms numbers channel loaded maps "mapname"
local.master aliascache soundalias2 wavfile2 soundparms numbers channel loaded maps "mapname"
local.master aliascache soundalias3 wavfile3 soundparms numbers channel loaded maps "mapname"
Last edited by jv_map on Sat Oct 11, 2003 8:36 pm, edited 1 time in total.
Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

wow that's great JV this will help a lot .
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

Wow! Nice job JV. I seriously think you can avoid using the test_ prefix on SP maps with a simple global script like that.
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

i'd pat you on the back for this 1 JV if you weren't all the way over in Holland (at least i think that's where you are) so you'll have to do it urself this time :P

GOOD FIND :D
hope this helps, prob not cos it's all foreign 2 me :-/
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

man you are awesome i beg you to move to CoD when it comes out you'd be famous. 8-)
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

say, if i used this, how do i cache the animations?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Hmm you have to $include the animations in the TIKI file I think :( Can't cache them from script :?
Image
Casquebleu
Lance Corporal
Posts: 24
Joined: Sun Dec 22, 2002 9:54 am
Location: France

Post by Casquebleu »

Wonderfull Jv !!! We're gonna test it !!!

8-)
Caskou, Mappeur Fou
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

jv_map wrote:Hmm you have to $include the animations in the TIKI file I think :( Can't cache them from script :?


can you show me an example? like what one german char would have?
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

nevermind i found out how to edit that file, so now i got only the sounds i need, and only the animations i need. now what i want to know is WHEN should you run that scriptmaster aliascaching thing?
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Re: New ubersound work-around!

Post by Alcoholic »

jv_map wrote:Here's how I did it (put this above level waittill spawn):



oh hehe i REALLY gotta read everything... :(
Post Reply