Poll

Would anyone actually use onViewing other than for Weeping Angels?

Yes!
No!
I still like trains!

Author Topic: Gaze (or Stare or Look or See or whatever the hell you want to call it)  (Read 19486 times)

Everything is better with eye scanners.

Gaze is a server modification which allows you to trigger brick events based upon when a player looks at a brick. There are three different inputs you can use, all of which have different effects.

  • onGaze          Called repeatedly while you look at a brick.
  • onGazeStart   Called once, when you start looking at a brick - this counts if you go from one brick to another!
  • onGazeStop    Called once, when you stop looking at a brick - this counts if you go from one brick to another!

There's also a setGazeName output event! Well, what does this do?

Gaze lets you see player names. While you can't set the gaze names of players (for OBVIOUS REASONS), you can set the names of bricks. These names can be anything from "Click the light to turn it on" (toggling to "turn it off" when clicked) to "Nuclear Launch Button". Never have people wonder what that obscure control panel does again!

The range of your Gaze can be set in the RTB preferences. The range is 0-100 in Torque Units. Do NOT complain about the gaze maximum being too short - one hundred TU is three 64x64 baseplates end to end and then another eight block studs!

onGaze can be toggled on and off in RTB preferences as well. While the event will still be available, only onGazeEnter and onGazeLeave will be triggered.

The entire Gaze mod can be set to one of four settings: Bricks, Players, and Bots; Players and Bots; Bricks Only; or Sightless.
Minigame support enabling/disabling via prefs is not yet included. This will be added when I de-lazy.

Below is some large text that says download.
If you cannot find the large text that says download,
I simply cannot and will not help you.

>>> DOWNLOAD <<<



EDIT: Direct link to the download page so you don't have to do it yourself
« Last Edit: September 12, 2012, 10:23:15 PM by Xalos »

just a comment, i remember seeing this on your server and it causing a noticeable amount of lag with more players.


that was back several months ago, maybe that's changed now.

just a comment, i remember seeing this on your server and it causing a noticeable amount of lag with more players.

The Gaze mod generates little to no lag. The lag was actually caused by a bottleneck occuring between my server and another server, which meant that too many players would effectively start jamming the throughput of the computer.

An event where something is in your peripheral vision would be pretty useful in addition to these

holy stuff this is something new

An event where something is in your peripheral vision would be pretty useful in addition to these
amnesia much

An event where something is in your peripheral vision would be pretty useful in addition to these

I've also done something like this, but it would cause a lot more triggers than just onGaze. As a result, I would have to seriously think about it before I tried something like this. Even if I did, the range would probably be seriously constricted simply due to the mass of bricks you can end up having in a very small range. Unlike a single directional raycast, a hundred or even a thousand raycasts per loop checking brick visibility WOULD cause signifigant lag with even five or six players.

Most servers simply wouldn't be able to handle checking that for every brick, even in a short range of about sixteen studs in a radius around the player. (Under worst case conditions, AKA 1x1f spam all around said player.)

Just noticed that Google has a wierd system of opening .zips

Trying to fix this, stand by

xalos you are awesome

Are you sure? Couldn't you just calculate the fov of the player and do some math to see if the brick is in it or not?

Are you sure? Couldn't you just calculate the fov of the player and do some math to see if the brick is in it or not?

You can't see through non-transparent bricks.

Wow.... This is what ive been waiting for...... Thank you!!!

I'm going to take a minifig brick.  Put a horror face on it.

On gazestop>Player>Kill


yeeeees

On gazestop>Player>Kill

That reminds me. If you're holding /magicwand, you aren't affected by gaze events. See: the above quote.

That reminds me. If you're holding /magicwand, you aren't affected by gaze events. See: the above quote.

The destructo wand?

The destructo wand?

Yes. If you're the owner of the bricks, you can achieve the same effect with the regular wand as well (/wand).