Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
764 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #include "cbase.h"
  7. #include "rocket_bazooka.h"
  8. LINK_ENTITY_TO_CLASS( rocket_bazooka, CBazookaRocket );
  9. PRECACHE_WEAPON_REGISTER( rocket_bazooka );
  10. void CBazookaRocket::Spawn( void )
  11. {
  12. SetModel( BAZOOKA_ROCKET_MODEL );
  13. BaseClass::Spawn();
  14. }
  15. void CBazookaRocket::Precache( void )
  16. {
  17. PrecacheModel( BAZOOKA_ROCKET_MODEL );
  18. BaseClass::Precache();
  19. }
  20. CBazookaRocket *CBazookaRocket::Create( const Vector &vecOrigin, const QAngle &vecAngles, CBaseEntity *pOwner )
  21. {
  22. return static_cast<CBazookaRocket *> ( CDODBaseRocket::Create( "rocket_bazooka", vecOrigin, vecAngles, pOwner ) );
  23. }