Skip to content
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
merged 3 commits into from
Dec 21, 2014
Merged

Ghost scoping #1018

merged 3 commits into from
Dec 21, 2014

Conversation

crabmusket
Copy link
Contributor

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 3 commits November 5, 2014 23:14
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.
 * 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
Add the option to limit ghost scoping range
@crabmusket crabmusket merged commit 8a104a5 into GarageGames:development Dec 21, 2014
@crabmusket crabmusket deleted the ghost-scoping branch December 21, 2014 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants