Object's Angles
Quote from spongylover123 on January 29, 2012, 1:23 pmI'm trying to make a map that doesn't let players to rotate the redirection cube by standing on it and then crouching to the side to make it point the laser up.
So I made a script function
- Code: Select all
function ChangeAngles(target, source) {
objtarget:SetAngles(0, 0, 0)Somehow, I cant get it to work.
Dont ask me to the setang command in the console, it seems to alter the player's angles too when carrying the cube.
I'm trying to make a map that doesn't let players to rotate the redirection cube by standing on it and then crouching to the side to make it point the laser up.
So I made a script function
- Code: Select all
function ChangeAngles(target, source) {
objtarget:SetAngles(0, 0, 0)
Somehow, I cant get it to work.
Dont ask me to the setang command in the console, it seems to alter the player's angles too when carrying the cube.
Quote from Lpfreaky90 on January 29, 2012, 1:37 pmwhat about parenting it to a phys_keepupright?
what about parenting it to a phys_keepupright?
Quote from spongylover123 on January 29, 2012, 2:32 pmlpfreaky90 wrote:what about parenting it to a phys_keepupright?Doesnt work. It seems to not cooperate with prop_weighted_cube.
Doesnt work. It seems to not cooperate with prop_weighted_cube.
Quote from ChickenMobile on January 29, 2012, 11:23 pmspongylover123 wrote:I'm trying to make a map that doesn't let players to rotate the redirection cube by standing on it and then crouching to the side to make it point the laser up.Why is it so important to do this? I know most people don't even try doing that.
Why is it so important to do this? I know most people don't even try doing that.
Quote from spongylover123 on January 29, 2012, 11:31 pmchickenmobile wrote:spongylover123 wrote:I'm trying to make a map that doesn't let players to rotate the redirection cube by standing on it and then crouching to the side to make it point the laser up.Why is it so important to do this? I know most people don't even try doing that.
People will do that if there are laset catchers on the ceiling.
im making a machine out of hammer's i/o to change the angle of the cube. Reason why I made that script.
Why is it so important to do this? I know most people don't even try doing that.
People will do that if there are laset catchers on the ceiling.
im making a machine out of hammer's i/o to change the angle of the cube. Reason why I made that script.
Quote from ChickenMobile on January 29, 2012, 11:34 pmif that's the case, you could always move the receptacle so the laser cannot point straight up.
if that's the case, you could always move the receptacle so the laser cannot point straight up.
Quote from spongylover123 on January 30, 2012, 12:28 amchickenmobile wrote:if that's the case, you could always move the receptacle so the laser cannot point straight up.yes, but if I do that, i cant redirect the laser to the ceiling.
This is what im trying to do.
A laser is on the left wall, the player needs to redirect the laser to the ceiling, to do that the player needs to change the angle of the cube using the angle changer. then the player needs to point the laser down to thr catcher.
Hope this explains more.
yes, but if I do that, i cant redirect the laser to the ceiling.
This is what im trying to do.
A laser is on the left wall, the player needs to redirect the laser to the ceiling, to do that the player needs to change the angle of the cube using the angle changer. then the player needs to point the laser down to thr catcher.
Hope this explains more.
Quote from josepezdj on February 1, 2012, 10:13 amspongylover123 wrote:This is what im trying to do.
A laser is on the left wall, the player needs to redirect the laser to the ceiling, to do that the player needs to change the angle of the cube using the angle changer. then the player needs to point the laser down to thr catcher.
Hope this explains more.Let me know if I got it: you are making a machine (the cube angler machine) that will change an existing reflector cube direction, right? How does that machine look like? is it the reflector cube free so the player can change its direction freely? You could simply trap the cube in a grilled cage so the player cannot manipulate the cube.
Another option would be to set certain floor parts fizzling for the cube onTouch and the player won't be able to put the cube right below the laser catcher...
Anyway, I still think I didn't really get your meaning...
A laser is on the left wall, the player needs to redirect the laser to the ceiling, to do that the player needs to change the angle of the cube using the angle changer. then the player needs to point the laser down to thr catcher.
Hope this explains more.
Let me know if I got it: you are making a machine (the cube angler machine) that will change an existing reflector cube direction, right? How does that machine look like? is it the reflector cube free so the player can change its direction freely? You could simply trap the cube in a grilled cage so the player cannot manipulate the cube.
Another option would be to set certain floor parts fizzling for the cube onTouch and the player won't be able to put the cube right below the laser catcher...
Anyway, I still think I didn't really get your meaning...
Quote from spongylover123 on February 1, 2012, 7:51 pmjosepezdj wrote:Let me know if I got it: you are making a machine (the cube angler machine) that will change an existing reflector cube direction, right? How does that machine look like? is it the reflector cube free so the player can change its direction freely? You could simply trap the cube in a grilled cage so the player cannot manipulate the cube.Another option would be to set certain floor parts fizzling for the cube onTouch and the player won't be able to put the cube right below the laser catcher...
Anyway, I still think I didn't really get your meaning...
The player needs the cube anyway, so if the cube's angle is changed, it will still be fizzled, and, the machine is just a plate with a particle and a prop_satic laser cathcer, with alot of logic relays, and the angle will change when the arrow keys are pressed.
Another option would be to set certain floor parts fizzling for the cube onTouch and the player won't be able to put the cube right below the laser catcher...
Anyway, I still think I didn't really get your meaning...
The player needs the cube anyway, so if the cube's angle is changed, it will still be fizzled, and, the machine is just a plate with a particle and a prop_satic laser cathcer, with alot of logic relays, and the angle will change when the arrow keys are pressed.
Quote from josepezdj on February 2, 2012, 5:20 amOK, clearer.
I guess all you need is to fizzle the cube on(player)Touch by surrouding the cube with a trigger brush and adding the output "onTouch">"dissolve". This will prevent the player from moving the cube by any other means than the angler machine... But this way you'll have to set a fixed position for the cube and make respawn right on that position everytime... Or build a cage around it...
OK, clearer.
I guess all you need is to fizzle the cube on(player)Touch by surrouding the cube with a trigger brush and adding the output "onTouch">"dissolve". This will prevent the player from moving the cube by any other means than the angler machine... But this way you'll have to set a fixed position for the cube and make respawn right on that position everytime... Or build a cage around it...











