BEEmod / BEE2-items

Standard Items for the BEE2.4
132 stars 46 forks source link

Laser Mirror #576

Open CrashingScience opened 8 years ago

CrashingScience commented 8 years ago

I mentioned this earlier, but it didn't really get noticed. Glass which is a mirror on one side, reflect lasers on that side and letting them pass through on the other. Start reversed changes the reflected side.

TeamSpen210 commented 8 years ago

I don't think this is possible to implement.

BenVlodgi commented 8 years ago

It's probably possible, the mirror part would be too hefty on the engine though, so just a reflective surface on the mirror side. @CrashingScience you should try to make it in hammer first, then we could help you turn it into an item.

CrashingScience commented 8 years ago

Yes, i know mirrors are processor intensive, i meant just shiny-looking

BenVlodgi commented 8 years ago

Shouldn't be too difficult really reflection code already exists for the gel would love to see an example

TeamSpen210 commented 8 years ago

The code does exist, the problem is that there isn't any way to hook into it.

BenVlodgi commented 8 years ago

could cheat by painting the surface with reflectiongel and if you wanted to give it a different look, you could have the brush that it being painted be 0.25 units (or fewer) behind another brush that has the shiny mirror texture

TeamSpen210 commented 8 years ago

That could be done, the problem is that non-solid or transparent surfaces aren't paintable. It'd block lasers passing from the other side.

BenVlodgi commented 8 years ago

The non-solid surface that sticks out fractions of a unit would just be for appearances. You would have the painted solid metal texture behind it.

genestrashcan commented 8 years ago

this could be done with a custom fizzler with one surface painted with reflection gel with rendermode 10 to make it invisible.

BenVlodgi commented 8 years ago

custom fizzler with one surface painted with reflection gel with rendermode 10

func_brush has a rendermode property too

I built a prototype, it reflects off of the mirror side, and you can see through the other side. But you can't send a laser through the glass side. In the end, there is pretty much no point in having it as a one-way mirror, might as well just have it as a 2-sided mirror.

vrad-exe commented 8 years ago

How about a resizeable 2-way mirror?

TeamSpen210 commented 8 years ago

That's doable. In reality, mirrors aren't really one-way - on both sides they reflect and transfer light. The 'hidden' side is kept dark, so it's not very easy to see inside. It's easiest to just make a regular mirror item, or alternatively a mirror with black tiles on the other side.

BenVlodgi commented 8 years ago

true story a small problem is the reflective part has to be pained, but I want to avoid the paint from splashing on the map thinking about teleporting the paintable brush out of the map, paint it, and teleport it back

CrashingScience commented 8 years ago

Thats cool too On 27 May 2016 01:36, "TeamSpen210" notifications@github.com wrote:

That's doable. In reality, mirrors aren't really one-way - on both sides they reflect and transfer light. The 'hidden' side is kept dark, so it's not very easy to see inside. It's easiest to just make a regular mirror item, or alternatively a mirror with black tiles on the other side.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TeamSpen210/BEE2-items/issues/576#issuecomment-222032191, or mute the thread https://github.com/notifications/unsubscribe/APtK_hagfiS3gm3jo-43kWTtaDpx__J5ks5qFjyIgaJpZM4IgkRf .

BenVlodgi commented 8 years ago

I streamed earlier and did show what I had done with this item. Here is when.

LautaroL20 commented 8 years ago

Im not sure, but this item could end up detracting the Reflection Gel test element.

LautaroL20 commented 8 years ago

This item definitelly detracts the noble Reflection Gel element, im even working on a test chamber with it. Case closed.

BenVlodgi commented 8 years ago

Most new items detract from other mechanics. Reflection gel detracts from Portals and laser redirection cubes Mirrors "could" be a good way to ensure that the mirror element is always present in the puzzle. Reflection gel can be washed away. I'm not saying that mirrors have to be added, but I don't think there is any reason to close this issue.

LautaroL20 commented 8 years ago

Ok, everyone is entitled to have different point of views. As for redirection cubes, i don´t think Reflection Gel would detract them since you can combine Non-Portalable Walls - Angled Panes that have been painted with this reflective gel.

TeamSpen210 commented 8 years ago

I'll be implementing Felix Griffin's mirror devices for this. They aren't a thin wall, but they do actually reflect lasers, funnels, bridges and pellets. (Basically they're a pair of invisible portals with a non-solid wall in front of them, and clips to stop physics objects.)

LautaroL20 commented 8 years ago

It will reflect Light Bridges? Well, that sounds much better then, since reflection gel actually only reflects lasers.

TeamSpen210 commented 8 years ago

See this view to see how it works internally - it should be able to handle basically everything.

CrashingScience commented 8 years ago

Looks really cool, being able to redirect all sorts of things.

On 6 Oct 2016 02:17, "TeamSpen210" notifications@github.com wrote:

See this view http://steamcommunity.com/sharedfiles/filedetails/?id=122031132 to see how it works internally - it should be able to handle basically everything.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/TeamSpen210/BEE2-items/issues/576#issuecomment-251843677, or mute the thread https://github.com/notifications/unsubscribe-auth/APtK_tySEmtNQtzenDFaD78t718-YKDSks5qxEw_gaJpZM4IgkRf .