Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 28, 2016, 4:04:42 PM (9 years ago)
Author:
tgidron
Message:

New Pickups (speed); Level Counter and Crate spawn (not working)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tgidronFS16/data/levels/Hover.oxw

    r11171 r11177  
    2424MAZE_SIZE = MAZE_NUM_CELLS*MAZE_CELL_SIZE
    2525?>
     26<!--
     27<Template name=mediumdamagehoverpickupRepresentation>
     28    <PickupRepresentation>
     29        <spawner-representation>
     30            <StaticEntity>
     31                <attached>
     32                    <Billboard position="0,0,0" colour="0.95,0.10,0.05" material="Sphere2" scale=0.1 >
     33                        <attached>
     34                            <Billboard position="0,0,0" colour="0.70,0.10,0.10" material="Damage" scale=0.5 />
     35                        </attached>
     36                    </Billboard>
     37                </attached>
     38            </StaticEntity>
     39        </spawner-representation>
     40    </PickupRepresentation>
     41</Template>
     42
     43<Template name=damagehover baseclass=DamageBoostPickup>
     44  <DamageBoostPickup
     45    representation = "mediumdamagehoverpickup"
     46    duration = 10.0
     47    damageMultiplier = 5.0
     48    activationType = "immediate"
     49    durationType = "continuous"
     50  />
     51</Template> -->
     52
     53<Template name=hugespeedpickupRepresentation>
     54    <PickupRepresentation>
     55        <spawner-representation>
     56            <StaticEntity>
     57                <attached>
     58                    <Billboard position="0,0,0" colour="0.99,0.96,0.52" material="Sphere2" scale=0.1>
     59                        <attached>
     60                            <Billboard position="0,0,0" colour="0.98,0.94,0.22" material="3arrowsup" scale=0.7 />
     61                        </attached>
     62                    </Billboard>
     63                </attached>
     64            </StaticEntity>
     65        </spawner-representation>
     66    </PickupRepresentation>
     67</Template>
     68
     69<Template name=hugespeedpickup baseclass=SpeedPickup>
     70  <SpeedPickup
     71    representation = "hugespeedpickup"
     72    duration = 10.0
     73    speedAdd = 0.0
     74    SpeedMultiply = 50.0
     75    activationType = "immediate"
     76    durationType = "continuous"
     77  />
     78</Template>
     79
     80
    2681
    2782<Template name=destroyhoverpickupRepresentation>
     
    45100</Template>
    46101
     102<Template name=obstacle baseclass=Pawn>
     103    <Pawn team=1 health=30 position="0,100,0" direction="0,-1,0" collisionType=dynamic mass=100000 name=box RVName = "Box 4" >
     104        <attached>
     105            <Model position="0,0,0" mesh="crate.mesh" scale3D="3,3,3" />
     106        </attached>
     107        <collisionShapes>
     108            <BoxCollisionShape position="0,0,0" halfExtents="15,15,15" />
     109        </collisionShapes>
     110    </Pawn>
     111</Template>
     112
     113
    47114<Level
    48115plugins = hover
     
    72139    />
    73140
     141    <PickupRepresentation
     142      name = "hugespeedpickup"
     143      pickupName = "Huge Speed Boost"
     144      pickupDescription = "Multiplies Speed of the Ship by a huge amount."
     145      spawnerTemplate = "hugespeedpickupRepresentation"
     146      inventoryRepresentation = "HugeSpeed"
     147    />
     148<!--
     149    <PickupRepresentation
     150      name = "damagehover"
     151      pickupName = "Medium Damage Hover Pickup"
     152      pickupDescription = "Multiplies the ship damage with 5."
     153      spawnerTemplate = "mediumdamagehoverpickupRepresentation"
     154      inventoryRepresentation = "MediumDamageHover"
     155    /> -->
     156
    74157    <StaticEntity position="0,0,0" collisionType="static">
    75158      <attached>
     
    78161          cellSize="<?lua print(MAZE_CELL_SIZE)?>"
    79162          cellHeight="<?lua print(MAZE_CELL_HEIGHT)?>"
     163          obstacletemplate=obstacle
    80164          pickuptemplate=destroyhoverpickup
    81165          pickuprepresentationtemplate=destroyhoverpickupRepresentation
     166          pickuptemplatedam=hugespeedpickup
     167          pickuprepresentationtemplatedam=hugespeedpickupRepresentation
    82168        />
    83169        <Model
Note: See TracChangeset for help on using the changeset viewer.