New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ghost scoping #1018

merged 3 commits into from Dec 21, 2014


None yet
2 participants

crabmusket commented Dec 7, 2014

This contains #908, with tweaks so I'm satisfied with the code.

  • Removed the #defines
  • Made it fall back to using visible distance if ghost distance is not used
  • Removed ghost distance from level files as it will now default sensibly
  • Renamed mConnectionVisibleDistance for consistency
  • Fixed tabs

Winterleaf and others added some commits Nov 6, 2014

This adds limiting the ghost data to a specific area around the client.
By default it is not included in the build, you must #define GHOSTSCOPING in the torqueConfig.h to enable it.
The distance can be set via the mission file by adding

visibleGhostDistance = "1000";

Or if it is not set in the mission file it will default to what is defined in torqueConfig.h #defined as GHOSTSCOPING_DEFAULT_DISTANCE_IF_NOT_IN_MISSION

The mission default distance can be overridden on a per connection basis by using gameconnection:setVisibleGhostDistance and gameconnection:getVisibleGhostDistance

The logic for setting the scoping distance was moved from shapebase in the original design to SceneObject so that it will affect cameras, players, etc.
Made some tweaks so I'm happy with it.
 * Removed #defines
 * Fall back to using visible distance if ghost distance is not used
 * Removed ghost distance from level files as it will default
 * Renamed mConnectionVisibleDistance for consistency

@crabmusket crabmusket added this to the 3.7 milestone Dec 7, 2014

crabmusket added a commit that referenced this pull request Dec 21, 2014

Merge pull request #1018 from eightyeight/ghost-scoping
Add the option to limit ghost scoping range

@crabmusket crabmusket merged commit 8a104a5 into GarageGames:development Dec 21, 2014

1 check passed

default Merged build finished.

@crabmusket crabmusket deleted the crabmusket:ghost-scoping branch Dec 21, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment