TF2 Beta Code Discovery #1
 

0 Members and 1 Guest are viewing this topic.

  • Citizen
  • *
  • Posts: 33
    • View Profile
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.
Quote
//=============================================================================
#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
  • *
  • Posts: 15
    • View Profile
How interesting
Fancy lines and crap

SimplePortal 2.3.7 © 2008-2026, SimplePortal