diff options
Diffstat (limited to 'src/game/server/srv_common.h')
| -rw-r--r-- | src/game/server/srv_common.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game/server/srv_common.h b/src/game/server/srv_common.h index 8cef2cf8..1e544753 100644 --- a/src/game/server/srv_common.h +++ b/src/game/server/srv_common.h @@ -166,6 +166,11 @@ public: enum { PROJECTILE_FLAGS_EXPLODE = 1 << 0, + + WEAPON_PROJECTILETYPE_GUN = 0, + WEAPON_PROJECTILETYPE_ROCKET = 1, + WEAPON_PROJECTILETYPE_SHOTGUN = 2, + WEAPON_PROJECTILETYPE_SNIPER = 6, }; vec2 vel; @@ -198,6 +203,12 @@ public: MODIFIER_RETURNFLAGS_OVERRIDEVELOCITY = 1 << 0, MODIFIER_RETURNFLAGS_OVERRIDEPOSITION = 1 << 1, MODIFIER_RETURNFLAGS_OVERRIDEGRAVITY = 1 << 2, + + MODIFIER_RETURNFLAGS_NOHOOK = 1 << 3, + + + WEAPONSTAGE_SNIPER_NEUTRAL = 0, + WEAPONSTAGE_SNIPER_CHARGING = 1, }; // weapon info @@ -208,6 +219,8 @@ public: int ammoregenstart; int ammo; int ammocost; + int weaponstage; + int chargetick; bool got; } weapons[NUM_WEAPONS]; int active_weapon; @@ -281,6 +294,7 @@ public: int handle_weapons(); int handle_ninja(); + int handle_sniper(); virtual void tick(); virtual void tick_defered(); |