Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Draw the Overheat HUD only if we have the MP5 in our hands
- // hud.h - In the "CHudAmmo" class public section
- WEAPON *GetCurrentWeapon( void ) { return m_pWeapon; } // Shepard : For the Overheat HUD to detect if we hold the MP5 in our hands
- // hud_overheat.cpp - In "CHudOverheat::Draw" after the condition that detect the HEV suit
- // Don't draw this HUD if we are using anything else than the MP5
- if ( !gHUD.m_Ammo.GetCurrentWeapon() || gHUD.m_Ammo.GetCurrentWeapon()->iId != 4 ) // 4 = WEAPON_MP5 - Look at "weapons.h" for the proper value
- return 1;
- // Singleplayer games - Add the heat variable to the save/restore data
- // weapons.h - At the beginning of the "CMP5" class
- +#ifndef CLIENT_DLL
- // Shepard : Save and restore the heat variable for SP games
- virtual int Save( CSave &save );
- virtual int Restore( CRestore &restore );
- static TYPEDESCRIPTION m_SaveData[];
- #endif
- // weapons.cpp - At the end of the file
- // Shepard : Save and restore the heat variable for SP games
- TYPEDESCRIPTION CMP5::m_SaveData[] =
- {
- DEFINE_FIELD( CMP5, m_iHeat, FIELD_INTEGER )
- };
- IMPLEMENT_SAVERESTORE( CMP5, CBasePlayerWeapon );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement