Please or Register to create posts and topics.

Walking in darkness - Helping the player

Page 1 of 2Next

Hi.

I'm looking for a way to parent a source of light to the player, so that it looks like the player is emitting a small amount of light.
This is so that the player can move around in darkness.

I tried the light_dynamic but it seems like it is working more like a spotlight than a ball of light, like the normal Light-entity.
Also, the light_dynamic is for some reason only lighting 1 square at a time, which looks a little weird.

Any suggestions? I heard something about someone who had a glowing cube. I'm looking for the same thing. This time it's just the player who's glowing.

Is it possible?

Mostly lurking

Maybe a few dim projected textures with shadows disabled around the player would work.

When life gives you lemons, make apple juice and have everyone wonder how you did it.
Musical website Moddb

A glowing cube is because of the cube itself with some values. No lights.

Arachnaphob wrote:
Maybe a few dim projected textures with shadows disabled around the player would work.

Well, you can only have 1 env_projected_texture enabled at a time, and I'm already using them to cast some wicked shadows.

It's not supposed to look like a flashlight though. It's supposed to be "The range of the players visibility".

yishbarr wrote:
A glowing cube is because of the cube itself with some values. No lights.

Ah. So that's how... Hmm, I wonder if it's possible to do it to the player in a different way...

Mostly lurking
beecake wrote:
Arachnaphob wrote:
Maybe a few dim projected textures with shadows disabled around the player would work.

Well, you can only have 1 env_projected_texture enabled at a time, and I'm already using them to cast some wicked shadows.

It's not supposed to look like a flashlight though. It's supposed to be "The range of the players visibility".

From my experiences, you can have multiple enabled, but you can only have one with shadows. If you arrange a few pointing in all directions and set their FarZ really close, it may get what you want.

When life gives you lemons, make apple juice and have everyone wonder how you did it.
Musical website Moddb

If the map is really dark, you can fake it by using a fog entity with a very close range and a color of black.

My YouTube Channel: https://www.youtube.com/user/Camben24
Aperture Science: We do our science asbestos we can!
Arachnaphob wrote:
beecake wrote:
Arachnaphob wrote:
Maybe a few dim projected textures with shadows disabled around the player would work.

Well, you can only have 1 env_projected_texture enabled at a time, and I'm already using them to cast some wicked shadows.

It's not supposed to look like a flashlight though. It's supposed to be "The range of the players visibility".

From my experiences, you can have multiple enabled, but you can only have one with shadows. If you arrange a few pointing in all directions and set their FarZ really close, it may get what you want.

That's worth the try. I'll see what I can make from it, and maybe return :) Thanks.

CamBen wrote:
If the map is really dark, you can fake it by using a fog entity with a very close range and a color of black.

It could work, but would only fit in corridors. I'm having large rooms that are pretty lit too... If the fog was there you'd not be able to see very far :) But great suggestion!

Mostly lurking

Sorry for the double post.
It seems like it's impossible to have more than one env_projectedtexture enabled at a time. Even though shadows are disabled.

Does anybody else have a suggestion?

Mostly lurking

Invert the fog. Set its density to about 0.1 and then tell it to cast from 129 to 128 or something like that.

Skotty wrote:
Invert the fog. Set its density to about 0.1 and then tell it to cast from 129 to 128 or something like that.

Woah... So the fog works as a ball of light around the player?
That would be awesome!

Mostly lurking
Page 1 of 2Next