Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10592


Ignore:
Timestamp:
Sep 24, 2015, 1:23:47 PM (9 years ago)
Author:
fvultier
Message:

New Weapon for the towerDefense minigame: The SplitGun, a weapon that shoots one projectile that splits up into multiple projectiles after a specified time, these new projectiles may split up again… The weapon may be used by any Oxonox Spaceship.

Location:
code/branches/towerdefenseFabien
Files:
4 added
8 edited

Legend:

Unmodified
Added
Removed
  • code/branches/towerdefenseFabien/data/levels/jump.oxw

    r10262 r10592  
    256256      </attached>
    257257    </MovableEntity>
    258 
    259     <EventDispatcher>
    260       <targets>
    261         <EventTarget target=scoreeffect_right />
    262         <EventTarget target=scoreeffect_center />
    263       </targets>
    264       <events>
    265         <spawn>
    266           <EventFilter>
    267             <names>
    268               <EventName name=right />
    269             </names>
    270             <EventListener event=jumpcenter />
    271           </EventFilter>
    272         </spawn>
    273       </events>
    274     </EventDispatcher>
    275     <EventDispatcher>
    276       <targets>
    277         <EventTarget target=scoreeffect_left />
    278         <EventTarget target=scoreeffect_center />
    279       </targets>
    280       <events>
    281         <spawn>
    282           <EventFilter>
    283             <names>
    284               <EventName name=left />
    285             </names>
    286             <EventListener event=jumpcenter />
    287           </EventFilter>
    288         </spawn>
    289       </events>
    290     </EventDispatcher>
    291 
     258   
    292259  </Scene>
    293260</Level>
  • code/branches/towerdefenseFabien/data/levels/towerDefense.oxw

    r10591 r10592  
    6666        </links>
    6767        <Weapon>
    68           <HsW01 mode=0 munitionpershot=0 muzzleoffset="0,0,-30" damage=2 shielddamage=1 material="Flares/point_lensflare" delay=0/>
     68          <HsW01 mode=0 munitionpershot=0 muzzleoffset="0,0,0" damage=2 shielddamage=1 material="Flares/point_lensflare" delay=0/>
    6969        </Weapon>
    7070      </WeaponPack>
     
    103103        </links>
    104104        <Weapon>         
    105           <LightningGun mode=0 munitionpershot=0 muzzleoffset="0,0,-30" damage=2 shielddamage=4 />
     105          <LightningGun mode=0 munitionpershot=0 muzzleoffset="0,0,0" damage=2 shielddamage=4 />
    106106        </Weapon>
    107107      </WeaponPack>
    108108    </weapons>
    109109    <attached>
    110       <Backlight position="0,-100,0" scale=2.0 colour="0.4, 0.0, 1.0" width=10 length=500 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" loop=1 />
     110      <Backlight position="0,0,0" scale=2.0 colour="0.4, 0.0, 1.0" width=10 length=10 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" loop=1 />
    111111    </attached>   
    112112  </TowerDefenseTower>
     
    143143        </links>
    144144        <Weapon>
    145           <EnergyDrink mode=0 munitionpershot=0 muzzleoffset="0,0,-30" damage=2 shielddamage=4 />
     145          <SplitGun mode=0 munitionpershot=0 damage=9.3 muzzleoffset=" 1.6, 1.3, -2.0" splittime=0.2 numberofsplits=2 numberofchilds=5 spread=0.1 />
    146146        </Weapon>
    147147      </WeaponPack>
     
    180180        </links>
    181181        <Weapon>
    182           <FusionFire mode=0 munitionpershot=0 muzzleoffset="0,0,-30" damage=2 shielddamage=4 /> 
     182          <RocketFire mode=0 munitionpershot=0 muzzleoffset="0,0,0" damage=2 shielddamage=4 /> 
    183183        </Weapon>
    184184      </WeaponPack>
    185185    </weapons>
    186186      <attached>
    187       <ParticleSpawner position="0,-100,0" source="Orxonox/sparks" lifetime=3.0 autostart=1 loop=1 />
     187      <ParticleSpawner position="0,0,0" source="Orxonox/sparks" lifetime=3.0 autostart=1 loop=1 />
    188188    </attached>
    189189  </TowerDefenseTower>
     
    220220        </links>
    221221        <Weapon>
    222           <LaserFire mode=0 munitionpershot=0 muzzleoffset="0,0,-30" damage=2 shielddamage=4 /> 
     222          <SimpleRocketFire mode=0 muzzleoffset="0,0,0" damage=30 shielddamage=20 />
    223223        </Weapon>
    224224      </WeaponPack>
     
    454454    <SpawnPoint team=0 position="0,0,0"/>
    455455
    456     <Model position="0,0,-1000" pitch=90 lodLevel=1 mesh="TD_S1.mesh" scale=25/>
    457     <Model position="0,0,-1000" pitch=90 lodLevel=1 mesh="TD_S2.mesh" scale=25/>
    458     <Model position="0,0,-1000" pitch=90 lodLevel=1 mesh="TD_S3.mesh" scale=25/>
    459     <Model position="0,0,-1000" pitch=90 lodLevel=1 mesh="TD_S4.mesh" scale=25/>
    460     <Model position="0,0,-1000" pitch=90 lodLevel=1 mesh="TD_S5.mesh" scale=25/>
    461     <Model position="0,0,-1000" pitch=90 lodLevel=1 mesh="TD_T1.mesh" scale=25/>
    462     <Model position="0,0,-1000" pitch=90 lodLevel=1 mesh="TD_T2.mesh" scale=25/>
    463     <Model position="0,0,-1000" pitch=90 lodLevel=1 mesh="TD_T3.mesh" scale=25/>
    464     <Model position="0,0,-1000" pitch=90 lodLevel=1 mesh="TD_T4.mesh" scale=25/>
    465     <Model position="0,0,-1000" pitch=90 lodLevel=1 mesh="TD_T5.mesh" scale=25/>
    466     <Model position="0,0,-1000" pitch=90 lodLevel=1 mesh="TD_F1.mesh" scale=25/>
     456    <Model position="0,0,10000" lodLevel=1 mesh="TD_S1.mesh" scale=1/>
     457    <Model position="0,0,10000" lodLevel=1 mesh="TD_S2.mesh" scale=1/>
     458    <Model position="0,0,10000" lodLevel=1 mesh="TD_S3.mesh" scale=1/>
     459    <Model position="0,0,10000" lodLevel=1 mesh="TD_S4.mesh" scale=1/>
     460    <Model position="0,0,10000" lodLevel=1 mesh="TD_S5.mesh" scale=1/>
     461    <Model position="0,0,10000" lodLevel=1 mesh="TD_T1.mesh" scale=1/>
     462    <Model position="0,0,10000" lodLevel=1 mesh="TD_T2.mesh" scale=1/>
     463    <Model position="0,0,10000" lodLevel=1 mesh="TD_T3.mesh" scale=1/>
     464    <Model position="0,0,10000" lodLevel=1 mesh="TD_T4.mesh" scale=1/>
     465    <Model position="0,0,10000" lodLevel=1 mesh="TD_T5.mesh" scale=1/>
     466    <Model position="0,0,10000" lodLevel=1 mesh="TD_F1.mesh" scale=1/>
    467467
    468468    <!-- PlayField -->
  • code/branches/towerdefenseFabien/src/modules/towerdefense/TowerDefense.cc

    r10591 r10592  
    8181#include "chat/ChatManager.h"
    8282#include "core/CoreIncludes.h"
    83 /* Part of a temporary hack to allow the player to add towers */
    84 #include "core/command/ConsoleCommand.h"
    85 
    8683
    8784namespace orxonox
     
    103100        this->waveSize_ = 0;
    104101        offset_ = Vector3(0,0,10);
    105 
    106         //this->stats_ = new TowerDefensePlayerStats();
    107102    }
    108103
     
    178173
    179174        en1->setTeam(2);
    180 
    181         //orxonox::WeakPtr<WaypointController> controller = new WaypointController(this->center_->getContext());
    182         //controller->setControllableEntity(en1);
    183         //en1->setController(controller);
    184175
    185176        WaypointController* controller = (WaypointController*)(en1->getXMLController());
     
    340331            timeSinceLastSpawn_ = 0.0;
    341332
    342             timeUntilNextWave_ = waveNumber_+10;
     333            timeUntilNextWave_ = waveNumber_+20;
    343334            waveSize_ = waveNumber_+5;
    344335        }
  • code/branches/towerdefenseFabien/src/modules/weapons/WeaponsPrereqs.h

    r8855 r10592  
    7979    class BillboardProjectile;
    8080    class LightningGunProjectile;
     81    class SplitGunProjectile;
    8182    class ParticleProjectile;
    8283    class Projectile;
     
    9091    class LaserFire;
    9192    class LightningGun;
     93    class SplitGun;
    9294    class RocketFire;
    9395    class SimpleRocketFire;
  • code/branches/towerdefenseFabien/src/modules/weapons/projectiles/BillboardProjectile.cc

    r9667 r10592  
    8888    /**
    8989    @brief
     90        Get the material of the BillboardProjectile.
     91    @return
     92        The material name.
     93    */
     94    const std::string& BillboardProjectile::getMaterial()
     95    {
     96        return this->billboard_.getMaterial();
     97    }
     98
     99    /**
     100    @brief
    90101        Is called when the visibility of the BillboardProjectile has changed.
    91102    */
  • code/branches/towerdefenseFabien/src/modules/weapons/projectiles/BillboardProjectile.h

    r9667 r10592  
    6060            virtual void setColour(const ColourValue& colour);
    6161            virtual void setMaterial(const std::string& material);
     62            virtual const std::string& getMaterial();
    6263            virtual void changedVisibility();
    6364
  • code/branches/towerdefenseFabien/src/modules/weapons/projectiles/CMakeLists.txt

    r8855 r10592  
    55  Projectile.cc
    66  LightningGunProjectile.cc
     7  SplitGunProjectile.cc
    78  Rocket.cc
    89  SimpleRocket.cc
     10  SplitGunProjectile.cc
    911)
  • code/branches/towerdefenseFabien/src/modules/weapons/weaponmodes/CMakeLists.txt

    r7163 r10592  
    55  HsW01.cc
    66  LightningGun.cc
     7  SplitGun.cc
    78  RocketFire.cc
    89  SimpleRocketFire.cc
Note: See TracChangeset for help on using the changeset viewer.