Laser Redirection Limit
Quote from Spam Nugget on April 5, 2012, 8:32 amFor 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
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:

I think in terms of boolean variables. Generally, it makes things easier.
Quote from Lpfreaky90 on April 5, 2012, 8:40 amawesome 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
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 
Quote from Spam Nugget on April 5, 2012, 9:15 amhaha 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.
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.

I think in terms of boolean variables. Generally, it makes things easier.
Quote from FourthReaper on April 5, 2012, 9:57 amSo... 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...
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? ![]()
? ( O ) ?|]????????????[|? ( O ) ?
? ----- ?----------------- -----------? ----- ?
----?
----?
----?
----?
----?
-?===?
? ----- ?
?-------?
See? No laser jumping out...
Quote from RustyDios on April 5, 2012, 4:57 pmFourthReaper 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... ...
? ( 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... ...
Quote from Kaleido on April 6, 2012, 12:44 amRustyDios 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...
? ( 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...
Quote from Spam Nugget on April 6, 2012, 1:22 amFourthReaper 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....
? ( 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....

I think in terms of boolean variables. Generally, it makes things easier.
Quote from ChickenMobile on April 6, 2012, 5:54 amI would have thought that they would have made it so then cubes can only redirect a laser once.
I would have thought that they would have made it so then cubes can only redirect a laser once.
Quote from Spam Nugget on April 6, 2012, 8:58 amchickenmobile wrote:I would have thought that they would have made it so then cubes can only redirect a laser once.Simple soloution sounds correct.
Simple soloution sounds correct.

I think in terms of boolean variables. Generally, it makes things easier.
Quote from Lpfreaky90 on April 6, 2012, 11:05 amI'll try this in a huge map; see if the distance does matter
Will report when I did that.
I'll try this in a huge map; see if the distance does matter ![]()
Will report when I did that.







