Garux / netradiant-custom

The open-source, cross-platform level editor for id Tech based games.
https://garux.github.io/NRC/
Other
334 stars 59 forks source link

Half-Life: changing the light entity position by dragging trims the _light property value #156

Closed ghost closed 10 months ago

ghost commented 1 year ago

In Half-Life, the _light property for light source entities stores both the light color and light intensity, in a form of RGBA value separated for spaces, for example "255 255 240 65" image image But when I drag the entity around, the value gets trimmed to just the R value ("255 255 240 65" > "255"). The weirdest thing is that this only happens when I drag the entity with a mouse, not when I change the entity origin value. TrenchBroom doesn't appear to have such behaviour. Is it a confuguration issue or something else that needs to be fixed?

Garux commented 1 year ago

This is side effect of feature about adjusting light power by mouse drag. Would need to look into this, for HL with unusual _light key content it's probably the best to disable it entirely.

ghost commented 1 year ago

This is side effect of feature about adjusting light power by mouse drag. Would need to look into this, for HL with unusual _light key content it's probably the best to disable it entirely.

If that is so, maybe it's better to be disabled for Half-Life altogether, as I don't think an easy mouse drag control of HL's weird RGBI value for lights can be implemented