Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/templates/spaceshipGhost.oxt @ 8921

Last change on this file since 8921 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: 4.3 KB
RevLine 
[5988]1<Template name=spaceshipghost>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipghostcameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 6
8
[8857]9   health            = 30
10   maxhealth         = 50
11   initialhealth     = 30
[5988]12
[8857]13   shieldhealth        = 100
14   initialshieldhealth = 100
15   maxshieldhealth     = 150
16   shieldabsorption    = 0.9
17   reloadrate          = 3
18   reloadwaittime      = 0.0
[5988]19
[8857]20   primaryThrust     = 600
21   auxilaryThrust    = 30
22   rotationThrust    = 25
23
24   lift = 1;
25   stallSpeed = 220;
26
27   boostPower            = 30
28   boostPowerRate        = 1
29   boostRate             = 5
30   boostCooldownDuration = 15
31
32   shakeFrequency = 20
33   shakeAmplitude = 6
34
[5988]35   collisionType     = "dynamic"
36   mass              = 100
37   linearDamping     = 0.7
38   angularDamping    = 0.9999999
39  >
[8706]40    <engines>
41      <MultiStateEngine position="0,0,0" template=spaceshipghostengine/>
42    </engines>
[5988]43    <attached>
44      <Model position="0,0,0" scale=2 yaw=90 pitch=-90 roll=0 mesh="ghost.mesh" />
45    </attached>
46    <collisionShapes>
47      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
48      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
49      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
50      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
51      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
52      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
53    </collisionShapes>
[6417]54<?lua
[8858]55  include("../includes/weaponSettingsGhost.oxi")
[6417]56?>
[5988]57  </SpaceShip>
58</Template>
59
60<Template name=spaceshipghostcameras defaults=0>
61  <SpaceShip>
62    <camerapositions>
63      <CameraPosition position="0,20,80" drag=true mouselook=true />
64      <CameraPosition position="0,40,160" drag=true mouselook=true />
65      <CameraPosition position="0,50,200" drag=true mouselook=true />
66    </camerapositions>
67  </SpaceShip>
68</Template>
69
70<Template name=spaceshipghostengine baseclass=MultiStateEngine>
71  <MultiStateEngine
72   boostfactor    = 2
73
[6417]74   speedfront     = 600
[5988]75   speedback      =  50
76   speedleftright =  50
77   speedupdown    =  50
78
[8857]79   accelerationfront     = 1000
[5988]80   accelerationbrake     = 300
81   accelerationback      =  100
82   accelerationleftright =  100
83   accelerationupdown    =  100
84  >
[6417]85    <EffectContainer condition="normal or boost">
86      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 3, 6" colour="0.0, 0.0, 0.0, 0.5" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
87      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 3, 6" colour="0.0, 0.0, 0.0, 0.5" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
88    </EffectContainer>
89    <EffectContainer condition="boost">
90      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 3, 6" colour="0.0, 0.0, 0.0, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
91      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 3, 6" colour="0.0, 0.0, 0.0, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
92    </EffectContainer>
93    <EffectContainer condition="not idle">
[7071]94      <FadingBillboard mainstate=activity active=false scale=0.4 position="7.6, 3, 6" colour="1, 1, 1, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
95      <FadingBillboard mainstate=activity active=false scale=0.4 position="-7.6, 3, 6" colour="1, 1, 1, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
[6417]96    </EffectContainer>
97    <EffectContainer condition="brake">
98      <FadingBillboard mainstate=activity active=false scale=0.3 position=" 8, 0, 6" colour="0.2, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
99      <FadingBillboard mainstate=activity active=false scale=0.3 position="-8, 0, 6" colour="0.2, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
100    </EffectContainer>
101</MultiStateEngine>
[5988]102</Template>
103
Note: See TracBrowser for help on using the repository browser.