diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-07-21 18:07:27 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2007-07-21 18:07:27 +0000 |
| commit | 9e4aea97bdb5a903150df57f8d546733ce4b4db2 (patch) | |
| tree | 7e18776bd7ace981895bca01ac753c9c289a71a5 /src/game/server/game_server.h | |
| parent | f0e8502050ce27b9cef72fa385619d13faa35c27 (diff) | |
| download | zcatch-9e4aea97bdb5a903150df57f8d546733ce4b4db2.tar.gz zcatch-9e4aea97bdb5a903150df57f8d546733ce4b4db2.zip | |
lots of cool new features :D new master server
Diffstat (limited to 'src/game/server/game_server.h')
| -rw-r--r-- | src/game/server/game_server.h | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/src/game/server/game_server.h b/src/game/server/game_server.h index 027a140f..ec3d597a 100644 --- a/src/game/server/game_server.h +++ b/src/game/server/game_server.h @@ -146,6 +146,10 @@ public: enum { PROJECTILE_FLAGS_EXPLODE = 1 << 0, + + WEAPON_PROJECTILETYPE_GUN = 0, + WEAPON_PROJECTILETYPE_ROCKET = 1, + WEAPON_PROJECTILETYPE_SHOTGUN = 2, }; baselib::vec2 vel; @@ -166,19 +170,26 @@ public: virtual void snap(int snapping_client); }; +class projectile_backpackrocket : public projectile +{ + int stage; + int start_tick; + int deply_ticks; + baselib::vec2 target; + baselib::vec2 start; + baselib::vec2 midpoint; + baselib::vec2 direction; +public: + projectile_backpackrocket(baselib::vec2 pos, baselib::vec2 target, int owner, entity* powner); + virtual void tick(); +}; + // player entity class player : public entity { public: static const int phys_size = 28; - enum // what are these? - { - WEAPON_PROJECTILETYPE_GUN = 0, - WEAPON_PROJECTILETYPE_ROCKET = 1, - WEAPON_PROJECTILETYPE_SHOTGUN = 2, - }; - // weapon info struct weaponstat { |