Post your scripting questions / solutions here
Moderator: Moderators
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Mon Jul 14, 2003 9:33 am
Woohoo no more messing with TIKIs
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
pre spawn):
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.
Angex
Major
Posts: 293 Joined: Mon Dec 30, 2002 1:23 pm
Contact:
Post
by Angex » Mon Jul 14, 2003 10:50 am
Nice work, thats much easier than having to place them in a tiki and having to pre-chache them.
tltrude
Chuck Norris
Posts: 4774 Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:
Post
by tltrude » Mon Jul 14, 2003 11:17 am
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,
Fatz
Private
Posts: 7 Joined: Thu Jun 26, 2003 1:04 pm
Post
by Fatz » Mon Jul 14, 2003 11:21 am
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:
Post
by jv_map » Mon Jul 14, 2003 11:51 am
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
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.
bdbodger
Moderator
Posts: 2596 Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:
Post
by bdbodger » Mon Jul 14, 2003 3:51 pm
wow that's great JV this will help a lot .
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Mon Jul 14, 2003 9:20 pm
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 » Tue Jul 15, 2003 12:37 am
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
GOOD FIND
hope this helps, prob not cos it's all foreign 2 me :-/
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Tue Jul 15, 2003 2:16 am
man you are awesome i beg you to move to CoD when it comes out you'd be famous.
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Tue Jul 15, 2003 3:27 am
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 » Tue Jul 15, 2003 6:21 am
Hmm you have to $include the animations in the TIKI file I think
Can't cache them from script
Casquebleu
Lance Corporal
Posts: 24 Joined: Sun Dec 22, 2002 9:54 am
Location: France
Post
by Casquebleu » Tue Jul 15, 2003 8:07 am
Wonderfull Jv !!! We're gonna test it !!!
Caskou, Mappeur Fou
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Tue Jul 15, 2003 10:02 pm
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?
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Tue Jul 15, 2003 11:40 pm
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?
Alcoholic
General
Posts: 1470 Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:
Post
by Alcoholic » Tue Jul 15, 2003 11:42 pm
jv_map wrote:
Here's how I did it (put this above level waittill spawn):
oh hehe i REALLY gotta read everything...