Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/spacebomb/data/levels/templates/FPS.oxt @ 9031

Last change on this file since 9031 was 8858, checked in by landauf, 13 years ago

merged output branch back to trunk.

Changes:

  • you have to include util/Output.h instead of util/Debug.h
  • COUT(x) is now called orxout(level)
  • output levels are now defined by an enum instead of numbers. see util/Output.h for the definition
  • it's possible to use output contexts with orxout(level, context). see util/Output.h for some common contexts. you can define more contexts
  • you must use 'endl' at the end of an output message, '\n' does not flush the message

Output levels:

  • instead of COUT(0) use orxout()
  • instead of COUT(1) use orxout(user_error) or orxout(internal_error)
  • instead of COUT(2) use orxout(user_warning) or orxout(internal_warning)
  • instead of COUT(3) use orxout(user_status/user_info) or orxout(internal_status/internal_info)
  • instead of COUT(4) use orxout(verbose)
  • instead of COUT(5) use orxout(verbose_more)
  • instead of COUT(6) use orxout(verbose_ultra)

Guidelines:

  • user_* levels are for the user, visible in the console and the log-file
  • internal_* levels are for developers, visible in the log-file
  • verbose_* levels are for debugging, only visible if the context of the output is activated

Usage in C++:

  • orxout() << "message" << endl;
  • orxout(level) << "message" << endl;
  • orxout(level, context) << "message" << endl;

Usage in Lua:

  • orxout("message")
  • orxout(orxonox.level.levelname, "message")
  • orxout(orxonox.level.levelname, "context", "message")

Usage in Tcl (and in the in-game-console):

  • orxout levelname message
  • orxout_context levelname context message
  • shortcuts: log message, error message, warning message, status message, info message, debug message
  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1<Template name=fps>
2  <FpsPlayer
3   spawnparticlesource    = "Orxonox/fairytwirl"
4   spawnparticleduration  = 3
5   explosionchunks        = 6
6
7   health            = 100
8   maxhealth         = 200
9   initialhealth     = 100
10
11   primaryThrust     = 0;
12   auxilaryThrust    = 0;
13   rotationThrust    = 0;
14
15   collisionType     = "dynamic"
16   mass              = 100
17   linearDamping     = 0.7
18   angularDamping    = 0.9999999
19   friction          = 0.01
20   
21   weapon            = "hs-w01.mesh"
22  >
23    <collisionShapes>
24      <BoxCollisionShape position="0,-20,0" halfExtents="15,25,15" />
25    </collisionShapes>
26   
27    <camerapositions>
28      <CameraPosition position="-1,1,2.2" drag=false mouselook=true />
29    </camerapositions>
30   
31    <?lua
32        include("../includes/weaponSettingsFPS.oxi")
33    ?>
34
35  </FpsPlayer>
36</Template>
37<!--
38<Template name=fpscamera defaults=0>
39  <FpsPlayer>
40    <camerapositions>
41      <CameraPosition position="0,0,20" drag=false mouselook=true />
42     
43      <!--
44      CameraPosition position="0,150,-25" pitch=-90 drag=true />
45      <CameraPosition position="0,0,-40" yaw=180 drag=true />
46      <CameraPosition position="0,3,-14" yaw=0 />
47      <CameraPosition position="-50,5,-8" yaw=-90 drag=true />
48      <CameraPosition position="50,5,-8" yaw=90 drag=true /
49     
50    </camerapositions>
51  </FpsPlayer>
52</Template>
53-->
Note: See TracBrowser for help on using the repository browser.