Please or Register to create posts and topics.

Laser Redirection Limit

For anyone interested, turns out that there is a limit to how many times a laser can be redirected through refelctive cubes. The limit appears to be 29 redirections, after that it just doesnt redirect off another cube if it hits it. Just thought that might be useful information to have out there, because I couldnt find any reference to it.
And in case youre wondering NO the player does not have to use 29 cubes in my map, that would be horribly inhumane. I was actually doing this:

zskjbgfvrzsbgzlbgrlzigntrn;lrwnjg;prn.jpg
Image
I think in terms of boolean variables. Generally, it makes things easier.

awesome name for your image though I think asdfasdbfsgdfvaqwy423;4yqwbh;r.jpg would've been better ;)

Other then that: did you take in account the distance between the cubes? I believe there is a maximum radius where the laser still works but I could be mistaken. If it is indeed 29 it's useful information but a map like that :notwant:

haha yeah my image name was just random keyboard mashings, cause i have no intention of keeping the image. And no, I didnt take into account distance between the cubes. However, I have found out that any other laser in the map (wether on or off) takes one off your redirection limit; though killing it in-game gives back that redirection. Also, in addition to that, any redirections from another laser will still count towards the reedirection limit.

Image
I think in terms of boolean variables. Generally, it makes things easier.

So... How come that when you place two pivot cubes facing each other, one receiving a laser, they dont eventually shoot through one, but instead keep it contained? Hard-coded? :?

To elaborate, I wrote:
? ----- ?----------------- -----------? ----- ?
? ( O ) ?|]????????????[|? ( O ) ?
? ----- ?----------------- -----------? ----- ?
----?
----?
----?
----?
----?
-?===?
? ----- ?
?-------?

See? No laser jumping out...

ImageImageImageImageImageImage
Maps in Development:
[spoiler]- Penrose 04 (on hold)[/spoiler]
FourthReaper wrote:
So... How come that when you place two pivot cubes facing each other, one receiving a laser, they dont eventually shoot through one, but instead keep it contained? Hard-coded? :?

To elaborate, I wrote:
? ----- ?----------------- -----------? ----- ?
? ( O ) ?|]????????????[|? ( O ) ?
? ----- ?----------------- -----------? ----- ?
----?
----?
----?
----?
----?
-?===?
? ----- ?
?-------?

See? No laser jumping out...

Well if the original post is to go by, they will redirect the laser between them 28 times... just keep it bouncing back and forth... ...

RustyDios wrote:
FourthReaper wrote:
So... How come that when you place two pivot cubes facing each other, one receiving a laser, they dont eventually shoot through one, but instead keep it contained? Hard-coded? :?

To elaborate, I wrote:
? ----- ?----------------- -----------? ----- ?
? ( O ) ?|]????????????[|? ( O ) ?
? ----- ?----------------- -----------? ----- ?
----?
----?
----?
----?
----?
-?===?
? ----- ?
?-------?

See? No laser jumping out...

Well if the original post is to go by, they will redirect the laser between them 28 times... just keep it bouncing back and forth... ...

No, it's probably hard-coded that way to prevent having to calculate 28 of the same direction and start getting shitty performance.

Anyway, 29 is a weird number... most things in game engines are multiples of 2. I guess it's 30 counting the laser origin but that's still a weird number to cap at... the game must crash right at 31 or something haha...

FourthReaper wrote:
So... How come that when you place two pivot cubes facing each other, one receiving a laser, they dont eventually shoot through one, but instead keep it contained? Hard-coded? :?

To elaborate, I wrote:
? ----- ?----------------- -----------? ----- ?
? ( O ) ?|]????????????[|? ( O ) ?
? ----- ?----------------- -----------? ----- ?
----?
----?
----?
----?
----?
-?===?
? ----- ?
?-------?

See? No laser jumping out...

Because after 29 redirections the laser doesnt just go through the cube, it just treats it like a normal solid object, that is stops and sparks. Why there arent any sparks, however, i would assume is because of hard coding though.

And Kaleido, youre right about it being a weird number, I would have thought 32 would be more appropriate too....

Image
I think in terms of boolean variables. Generally, it makes things easier.

I would have thought that they would have made it so then cubes can only redirect a laser once.

?????????????????????????????TWP Releases | My Workshop
chickenmobile wrote:
I would have thought that they would have made it so then cubes can only redirect a laser once.

Simple soloution sounds correct.

Image
I think in terms of boolean variables. Generally, it makes things easier.

I'll try this in a huge map; see if the distance does matter ;)
Will report when I did that.