Hammerwatch Forum
Custom mapping and Mods => Editor Discussion => Topic started by: MadMan on September 21, 2013, 06:38:30 PM
-
There is light around the player when it it really dark. Is there a way to modify or remove this light? Thanks.
-
The light is part of the character player xml files
<light>
<origin>0 0</origin>
<mul>
<range>200</range>
<color1>60 60 60</color1>
<color2>40 40 40</color2>
<color3>15 15 15</color3>
</mul>
<add>
<range>0</range>
<color1>85 50 0</color1>
<color2>64 24 0</color2>
<color3>64 0 0</color3>
</add>
</light>
is at the bottom of the file and tells the engine to have a light constantly emitted, you could try extracting the assets for yourself and replacing the file but of course you would have to modify every class character xml file and hope the game will read it as some files cant be overridden yet.
-
Weird, before i actually did look in the player xml files, and found nothing. Thanks.
-
I added a light thing to my player.xml, for the knight, and it seems like it didn't work, i made the range 2, and the color black.
-
If you remove the entire light part of the xml you wont have a light at all if that's what you want, I just tested this.
You just need to make sure its in the right place, as for the colour itself I am not sure how the engine interprets it fully yet but I was able to make myself glow a faint red if desired.
-
There was no light at all in the player xml files i have.
-
I am currently looking in knight.xml. It has the shops stuff, but no things about light,
-
I was looking in the wrong place the whole time... Thanks for that man.
-
Forgot to say, if anyone else reading this topic you have to change the player xml's in the actors/player folder, there's 4 for each class and they represent all the player colours which the game allows you to edit. Not the class files in the tweek folder.