Author Topic: Player Light  (Read 7254 times)

MadMan

  • Posts: 96
  • Faggot Crusher.
    • View Profile
Player Light
« 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.

NekoBaron

  • Posts: 124
  • Scripting Wizard
    • View Profile
Re: Player Light
« Reply #1 on: September 21, 2013, 09:35:34 PM »
The light is part of the character player xml files

Code: [Select]
<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.

MadMan

  • Posts: 96
  • Faggot Crusher.
    • View Profile
Re: Player Light
« Reply #2 on: September 22, 2013, 08:57:49 AM »
Weird, before i actually did look in the player xml files, and found nothing. Thanks.

MadMan

  • Posts: 96
  • Faggot Crusher.
    • View Profile
Re: Player Light
« Reply #3 on: September 22, 2013, 09:25:41 AM »
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.

NekoBaron

  • Posts: 124
  • Scripting Wizard
    • View Profile
Re: Player Light
« Reply #4 on: September 22, 2013, 11:56:17 AM »
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.

MadMan

  • Posts: 96
  • Faggot Crusher.
    • View Profile
Re: Player Light
« Reply #5 on: September 22, 2013, 01:12:39 PM »
There was no light at all in the player xml files i have.

MadMan

  • Posts: 96
  • Faggot Crusher.
    • View Profile
Re: Player Light
« Reply #6 on: September 22, 2013, 01:15:56 PM »
I am currently looking in knight.xml. It has the shops stuff, but no things about light,

MadMan

  • Posts: 96
  • Faggot Crusher.
    • View Profile
Re: Player Light
« Reply #7 on: September 22, 2013, 01:19:07 PM »
I was looking in the wrong place the whole time... Thanks for that man.

NekoBaron

  • Posts: 124
  • Scripting Wizard
    • View Profile
Re: Player Light
« Reply #8 on: September 22, 2013, 01:38:01 PM »
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.