TF2 Beta Code Discovery #1
 

0 Пользователей и 1 Гость просматривают эту тему.

  • Citizen
  • *
  • Сообщений: 33
    • Просмотр профиля
The following is code for a Flamethrower-based incendiary cannon. This is most likely a fusing of the TFC Incendiary Cannon & Flamethrower. It would've shot flame rockets that did weak damage, but afterburnt. The Flamethrower would've consequently slowed you down whenst firing, and it required a reload.
Цитата
//=============================================================================
#define   TF_FLAMETHROWER_ROCKET_DAMAGE            15
#define TF_FLAMETHROWER_ROCKET_BURN_RADIUS         198

// Generic flame rocket.
class CTFFlameRocket : public CTFProjectile_Rocket
{
   DECLARE_CLASS( CTFFlameRocket, CTFProjectile_Rocket );
public:
   DECLARE_NETWORKCLASS();

   virtual int      GetWeaponID( void ) const      { return TF_WEAPON_FLAMETHROWER_ROCKET; }
   virtual float   GetRadius() { return TF_FLAMETHROWER_ROCKET_BURN_RADIUS; }

#ifdef GAME_DLL
   // Creation.
   static CTFFlameRocket *Create( const Vector &vecOrigin, const QAngle &vecAngles, CBaseEntity *pOwner = NULL );   
   virtual void   Spawn();
   virtual void   Precache();
#else
   virtual const char *GetTrailParticleName( void ) { return "incendiaryrockettrail"; }
#endif
};
just pretend this is a signature
  • Citizen
  • *
  • Сообщений: 15
    • Просмотр профиля
How interesting
Fancy lines and crap