Ulysses Universe Mapping

From GMod Wiki

Jump to: navigation, search

Back to Gamemode mapping

Mapping: Mapping for the Ulysses Universe gamemode
Page white text.png Description:Mapping for Megiddo's Ulyses Universe gamemode
link=User:Metallics Original Author:Metallics
Calendar.png Created:15th May 2008

Contents

Introduction

A gamemode formally known as "Global Gmod" or "UPlanet", this is a page covering all the things you need to map for the "UU" gamemode. You need a decent knowledge of the workings of hammer and mapping before embarking on this, since this is not a tutorial, merely a reference for the entities and vmfs you will need.

The Facepunch forums thread relating to this gamemode can be found here:Ulysses Universe Thread

Setting the gamemode

The gamemode needs to be set as shown on the Setting default gamemode page. The name of the gamemode is simply "universe".

Mapping Planets

Sphere primitives in hammer are generally buggy and suffer from rounding errors in calculations. As such, use one of the pre-generated spheres that can be found in this file here:Garrys Mod.org Download Link. These vmfs were created by Zyklus. The vmf named "sphere_8_med" is provided purely for the sphere. The vmf named "sphere_med_2" is a functional sample map.

Notes:

  1. The sample map only contains 1 planet, but it is acceptable to have several
  2. Whilst there is no minimum distance between planets, they must be seperate
  3. The example map has a half black half white skybox. This is purely to help the player keep their orientation in the world and does not necessarily need to be replicated in another map.

Special entities

There is only one currently implemented special entity called "uu_planet" Keyvalues for it need to be set as shown on the Placing_SENTs page. Note that this is a direct copy of Megiddo's own comments on the keyvalues.

  1. Name - The name of the planet (will be used in future, please make sure you provide one)
  2. Constant - Constant pull for gravity (if mass is 0, it will use this value for everything between the end and Maxdistance)
  3. Maxdistance - Max distance for gravity considerations, both constant and variable forces obey this.
  4. Mindistance - Minimum distance for physics calculations. This is just to make sure that we don't get a divide by 0 or crazy insane forces. It does not mean that things closer than this won't be affected by gravity.
  5. Mass - Default to 0, leave at 0 if you want constant to take affect. If you want it to be a specific acceleration at the surface of the planet, use m = r^2 * x /G, where m is the mass of the planet, r is the radius, x is the accel you want, and G is the gravitational constant.
  6. Complexplanet - Use a 0 or 1, defaults to 0. This is for planets that aren't a perfect sphere (IE, mountains, valleys). Just stick with 0 for now.
  7. Sleepvel - Defaults to 50, it's really complicated so just leave it as is.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox