Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/levels/templates/spaceshipTransporter.oxt @ 9622

Last change on this file since 9622 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.4 KB
Line 
1<Template name=spaceshipTransporter>
2  <SpaceShip
3   hudtemplate            = spaceshiphud
4   camerapositiontemplate = spaceshipTransportercameras
5   spawnparticlesource    = "Orxonox/fairytwirl"
6   spawnparticleduration  = 3
7   explosionchunks        = 6
8
9   health            = 1000
10   maxhealth         = 1500
11   initialhealth     = 1000
12
13   primaryThrust     = 50;
14   auxilaryThrust    = 10;
15   rotationThrust    = 15;
16
17   collisionType     = "dynamic"
18   mass              = 1000
19   linearDamping     = 0.7
20   angularDamping    = 0.9999999
21  >
22    <engines>
23      <MultiStateEngine position=" 0, 0, 0" template=spaceshipTransporterengine />
24    </engines>
25    <attached>
26      <Model position="0,0,0" yaw=0 pitch=0 roll=0 scale=10 mesh="Transporter.mesh" />
27    </attached>
28    <collisionShapes>
29      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
30      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
31      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
32      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
33      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
34      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
35    </collisionShapes>
36
37<?lua
38  include("../includes/weaponSettingsTransporter.oxi")
39?>
40  </SpaceShip>
41</Template>
42
43<Template name=spaceshipTransportercameras defaults=0>
44  <SpaceShip>
45    <camerapositions>
46      <CameraPosition position="0,90,350" drag=true mouselook=true />
47      <CameraPosition position="0,150, 400" drag=true mouselook=true />
48      <CameraPosition position="0,200,550" drag=true mouselook=true />
49      <CameraPosition position="0,120,200" pitch="-80" drag=true mouselook=true />
50    </camerapositions>
51  </SpaceShip>
52</Template>
53
54<Template name=spaceshipTransporterengine baseclass=MultiStateEngine>
55  <MultiStateEngine
56   boostfactor    = 2
57
58   speedfront     = 50
59   speedback      =  10
60   speedleftright =  10
61   speedupdown    =  10
62
63   defEngineSndNormal = "sounds/Engine_low.ogg"
64   defEngineSndBoost = "sounds/Engine_high.ogg"
65
66   accelerationfront     = 20
67   accelerationbrake     = 20
68   accelerationback      = 10
69   accelerationleftright =  10
70   accelerationupdown    =  10
71  >
72    <EffectContainer condition="idle">
73      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
74    </EffectContainer>
75    <EffectContainer condition="not idle">
76
77    </EffectContainer>
78    <EffectContainer condition="normal or brake">
79
80    </EffectContainer>
81    <EffectContainer condition="normal or boost">
82      <Backlight mainstate=activity active=false scale=2 name=bltest position=" 22, -10, 87" colour="1, 0.7, 0.1, 1.0" width=10 length=3000 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
83      <Backlight mainstate=activity active=false scale=2 name=bltest position="-22, -10, 87" colour="1, 0.7, 0.1, 1.0" width=10 length=3000 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
84    </EffectContainer>
85    <EffectContainer condition="boost">
86      <Backlight mainstate=activity active=false scale=3 name=bltest position=" 22, -10, 87" colour="1, 0.7, 0.1, 0.7" width=25 length=2000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
87      <Backlight mainstate=activity active=false scale=3 name=bltest position="-22, -10, 87" colour="1, 0.7, 0.1, 0.7" width=25 length=2000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
88    </EffectContainer>
89    <EffectContainer condition="brake">
90      <FadingBillboard mainstate=activity active=false scale=2 position=" 22, -10, 87" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
91      <FadingBillboard mainstate=activity active=false scale=2 position="-22, -10, 87" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
92      <FadingBillboard mainstate=activity active=false scale=1 position="22, -10, 87" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
93      <FadingBillboard mainstate=activity active=false scale=1 position="-22, -10, 87" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
94    </EffectContainer>
95  </MultiStateEngine>
96</Template>
Note: See TracBrowser for help on using the repository browser.