Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 12, 2010, 10:24:30 PM (15 years ago)
Author:
dafrick
Message:

Added a new health pickup.

Location:
code/branches/pickup4/data/levels
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickup4/data/levels/includes/pickups.oxi

    r6675 r6701  
    22    pickupName = "Small Health Boost"
    33    pickupDescription = "Adds a small amout of health to the ship."
     4    inventoryRepresentation = "SmallHealth"
    45    spawnerTemplate = "smallhealthpickupRepresentation"
    56>
     
    1314    pickupDescription = "Adds a medium amout of health to the ship."
    1415    spawnerTemplate = "mediumhealthpickupRepresentation"
     16    inventoryRepresentation = "MediumHealth"
    1517>
    1618    <pickup>
     
    2325    pickupDescription = "Adds a huge amout of health to the ship."
    2426    spawnerTemplate = "hugehealthpickupRepresentation"
     27    inventoryRepresentation = "HugeHealth"
    2528>
    2629    <pickup>
     
    3336    pickupDescription = "Adds a crazy amout of health to the ship."
    3437    spawnerTemplate = "crazyhealthpickupRepresentation"
     38    inventoryRepresentation = "CrazyMadnessHealth"
    3539>
    3640    <pickup>
     
    4852    </pickup>
    4953</PickupRepresentation>
     54
     55<PickupRepresentation
     56    pickupName = "Use Pickup"
     57    pickupDescription = "Uses all pickups you have."
     58    spawnerTemplate = "usepickupRepresentation"
     59    inventoryRepresentation = "usePickup"
     60>
     61    <pickup>
     62        <MetaPickup metaType="use" />
     63    </pickup>
     64</PickupRepresentation>
     65
     66<PickupRepresentation
     67    pickupName = "Drop Pickup"
     68    pickupDescription = "Drops all pickups you have."
     69    spawnerTemplate = "droppickupRepresentation"
     70    inventoryRepresentation = "dropPickup"
     71>
     72    <pickup>
     73        <MetaPickup metaType="drop" />
     74    </pickup>
     75</PickupRepresentation>
     76
     77<PickupRepresentation
     78    pickupName = "Huge Health Boost"
     79    pickupDescription = "Adds a huge amout of health to the ship."
     80    spawnerTemplate = "hugehealthpickupRepresentation"
     81    inventoryRepresentation = "HugeHealth"
     82>
     83    <pickup>
     84          <HealthPickup
     85    health = 100
     86    healthType = "limited"
     87    activationType = "onUse"
     88    durationType = "once"
     89  />
     90    </pickup>
     91</PickupRepresentation>
  • code/branches/pickup4/data/levels/pickup.oxw

    r6675 r6701  
    4141    </PickupSpawner>
    4242   
    43     <PickupSpawner position="-50,0,-125" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
    44         <pickup>
    45             <HealthPickup health=50 healthRate=5 durationType=continuous activationType=onUse healthType=permanent />
    46         </pickup>
    47     </PickupSpawner>
    48    
    4943    <PickupSpawner position="-25,0,-100" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
    5044        <pickup>
     
    7771    </PickupSpawner>
    7872
    79     <!--PickupSpawner position="100,100,100" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
     73    <PickupSpawner position="100,0,-100" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">
    8074        <pickup>
    81             <HealthPickup health=50 healthRate=5 durationType=continuous activationType=immediate healthType=limited />
     75              <HealthPickup
     76    health = 100
     77    healthType = "limited"
     78    activationType = "onUse"
     79    durationType = "once"
     80  />
    8281        </pickup>
    83     </PickupSpawner-->
     82    </PickupSpawner>
    8483
    8584    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
  • code/branches/pickup4/data/levels/templates/pickup_representation_templates.oxt

    r6524 r6701  
    107107    </PickupCollection>
    108108</Template>
     109
     110<Template name=usepickupRepresentation>
     111    <PickupRepresentation>
     112        <spawner-representation>
     113            <StaticEntity>
     114                <attached>
     115                    <Billboard position="0,0,0" colour="0.60,0.97,0.23" material="Sphere2" scale=0.1>
     116                        <attached>
     117                            <Billboard position="0,0,0" colour="0.40,0.81,0.10" material="Arrow" scale=0.65 />
     118                        </attached>
     119                    </Billboard>
     120                </attached>
     121            </StaticEntity>
     122        </spawner-representation>
     123    </PickupRepresentation>
     124</Template>
     125
     126<Template name=droppickupRepresentation>
     127    <PickupRepresentation>
     128        <spawner-representation>
     129            <StaticEntity>
     130                <attached>
     131                    <Billboard position="0,0,0" colour="0.95,0.10,0.05" material="Sphere2" scale=0.1>
     132                        <attached>
     133                            <Billboard position="0,0,0" colour="0.95,0.20,0.10" material="Arrow" scale=0.65 />
     134                        </attached>
     135                    </Billboard>
     136                </attached>
     137            </StaticEntity>
     138        </spawner-representation>
     139    </PickupRepresentation>
     140</Template>
    109141   
Note: See TracChangeset for help on using the changeset viewer.