CheatingMuppet wrote: ↑Sun Nov 24, 2019 4:04 am
Deskaar wrote: ↑Sat Nov 23, 2019 7:51 pm
defiant wrote: ↑Sat Nov 23, 2019 10:57 pm
Here is a script for the lightsaber color. There are 4 parts (and a 5th part that I haven't found yet, the sparks) that make up the lightsaber color.
There is the actual color of the lightsaber and then there are two layers of glow for it.
The 4th part is the actual light that is attached to the lightsaber (called a pointlight) and that light is what causes your characters clothes and the walls etc to light up when you have your lightsaber out. The 5th part is the spark light, when you sheathe/unsheathe and hit an enemy there is another light that controls the color which I have not found yet.
There is also a way to change the intensity/brightness etc for the flashlight but that's not included in this table.
Yes, it's included in the table now.
Lightsaber color & layer 1 glow is entirely from Marcus101RR and the rest + script are from me.
For now you'll have to just manually change all these values to whatever you want and maybe someone else can make a script based on this with preset color values for ease of use.
This table was made for the initial release version of the game. If there are problems getting the script to work then you will have to change the aob signatures and/or some offsets.
You have to be ingame (outside of all menus) when you enable the script.
It's recommended that you enable the script and set your color and then disable both scripts to prevent crashing (objects not being valid after death etc).
Excuse the messy and really shitty code. ASM is not my forte.
EDIT: Yes I know this is currently broken. Fixing it.
EDIT 2: Updated the script, should be working now & tons more stuff. Thanks to Marcus101RR for helping with debugging.
There are 2 parts of the lightsaber itself, 01 and 02. You'll have to figure out which one is right for you (both if dual-wielding or dual-blading).
For now this is a script only for advanced users that know what they are doing.
EDIT 3: I've added a preset for the red lightsaber. Improve the values if you like.
EDIT 4: I've added a white preset and a better green preset. I also updated the red saber (thanks to Marcus101RR), it's now called "Sith Saber".