[Request] "Prototype/Unit" .light

Post Reply
User avatar
Betep3akata
Inserter
Inserter
Posts: 39
Joined: Fri Sep 30, 2016 10:31 am
Contact:

[Request] "Prototype/Unit" .light

Post by Betep3akata » Wed Feb 22, 2017 11:24 pm

The will-o'-the-wisps mod touches upon the topic of flying and glowing enemies. An ugly and performance heavy workaround is used to implement the glow of units: creating explosions on the onTick events.

Is it possible to add the optional feature of glow into the prototype of units?

P.S.: This feature could also become useful in the base game. For creating of the exposed by the radiation biters, for example.
(https://mods.factorio.com/mods/Betep3ak ... -the-wisps)
My mods: Scorched Earth, Will-o-the-wisps
//My nickname is some kind of transliteration from Cyrillic to Latin. Betep3akata stands for WindOfSunset.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 1944
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [Request] "Prototype/Unit" .light

Post by darkfrei » Wed Feb 22, 2017 11:57 pm

+1

Some entities have light, activity_led_light, indicator_light, muzzle_light, recharging_light, or by player:

Code: Select all

data.raw.player.player.light.1.minimum_darkness = 0.3
data.raw.player.player.light.1.intensity = 0.4
data.raw.player.player.light.1.size = 25
data.raw.player.player.light.2.type = oriented
data.raw.player.player.light.2.minimum_darkness = 0.3
data.raw.player.player.light.2.picture.filename = __core__/graphics/light-cone.png
data.raw.player.player.light.2.picture.priority = medium
data.raw.player.player.light.2.picture.scale = 2
data.raw.player.player.light.2.picture.width = 200
data.raw.player.player.light.2.picture.height = 200
data.raw.player.player.light.2.shift.1 = 0
data.raw.player.player.light.2.shift.2 = -13
data.raw.player.player.light.2.size = 2
data.raw.player.player.light.2.intensity = 0.6
But here is no way to make some Laser Mining Drill, that looks pretty good in the night.

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1164
Joined: Wed May 18, 2016 4:55 pm
Contact:

Re: [Request] "Prototype/Unit" .light

Post by Mooncat » Thu Feb 23, 2017 7:31 am

+2

I wanted to request this too but ended up spending my time on finding workarounds. Now I have a "fire" entity so it can emit some smoke entities periodically. But still requires script to teleport it.

Maybe also add "light" to combat robots? :mrgreen:

User avatar
Betep3akata
Inserter
Inserter
Posts: 39
Joined: Fri Sep 30, 2016 10:31 am
Contact:

Re: [Request] "Prototype/Unit" .light

Post by Betep3akata » Thu Feb 23, 2017 2:40 pm

I tried to use other entities with light but the problem is to change the position of light source smoothly.
My mods: Scorched Earth, Will-o-the-wisps
//My nickname is some kind of transliteration from Cyrillic to Latin. Betep3akata stands for WindOfSunset.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 3618
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [Request] "Prototype/Unit" .light

Post by Klonan » Wed Jan 16, 2019 1:25 pm

This is possible now with the script rendering

Post Reply

Return to “Implemented mod requests”

Who is online

Users browsing this forum: No registered users