View Full Version : Lightsaber color in SP
05-01-2002, 06:50 PM
How can I permanantly change the lightsabercolor in single player without having to put the code in every level?
if you change the sabercolor files the blur isn't changed.
but you can bind a key to change saber color:
bind sabercolor x key
where as 'x' is the color and, 'key' is the key you want to bind it to.
you might be able to insert console commands into your map somehow. i don't know anything about radiant so i don't know.
05-01-2002, 10:20 PM
u can edit the blur.jpg thingo to be the same color as the saber u want instead of white but it will make every saber in the game have that blur colour
05-01-2002, 10:54 PM
You can also just type it in a text editor before you play, and hit ctrl+v in the console each time.
05-01-2002, 11:15 PM
Or bind it to a key that you press as each level begins.
05-02-2002, 05:54 AM
i actually really need to find a way to have my sp level start with a red saber otherwise it will be really lame
there must be a way to set in the levels start script (the script u use to set up force powers) i just need some kind of idea as to what to enter in the script
05-02-2002, 10:30 AM
I hope so too.. forcing all SP levels to have blue sabers is ridiculous....
05-02-2002, 11:13 AM
there was that sabermagic mod that let u cycle through all the sabers with a key without having to bind anything manually or type devmapall
it did it by editing the jk2config file though,
so u would have to include an edited version of it with ur level
and i dont think people would like having their key configurations changed around every time they downloaded a new sp map
still... maybe someone can work out something with it
05-02-2002, 11:18 AM
actually i just had a thought
if someone knows how to make a script that will execute a .cfg and attach it to the start script for the level it could execute a cfg file that has the thing for changing the sabers colour without having to add it on to the JK2config file. and thus not having to alter the players already existing key setup
05-02-2002, 10:29 PM
Ok, I think I figured out a way to do this (although I'm convinced there is an easier way). This is how I did it:
1. I opened the sabers.shader file in the base/shaders directory (with ShaderEd2).
2. I wanted to switch the green with the blue, so I simply switched names of the files in the sabers.shader file.
3. This by itself should change the SP saber color. However if you want npcs with green sabers (luke) to keep green sabers and npcs with blue sabers to keep blue sabers, then you need to edit the npcs.cfg and switch the blues to green and the greens to blue.
If there is an easier way to do this, PLEASE tell me! Anyway, I hope this helps.
05-02-2002, 10:36 PM
does that change the blur file too?
05-03-2002, 01:19 AM
no, that's the first thing i tried earlier today for you patchx. blurs are still blue (at least the way i did it). i'm working on that script for you, too. i'm using two ideas, and trying to work both of them out. if someone doesn't get it first, i figure mine should be done sometime this weekend.
05-03-2002, 10:35 AM
By calling this on sabers.shader:
blendFunc GL_ONE GL_ONE
blendFunc GL_ONE GL_ONE
Your lightsaber blur will be white, and that is
nearly as cool. I tried to make it better, but it
vBulletin®, Copyright ©2000-2015, Jelsoft Enterprises Ltd.