Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/templates/spaceshipSwallow.oxt @ 9593

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