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
776 B

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