Night Owl 8 years ago
parent
commit
75258d19f9
  1. 2
      dlls/apache.cpp
  2. 4
      dlls/hgrunt.cpp
  3. 8
      dlls/hunger/chaingun.cpp
  4. 4
      dlls/weapons.h

2
dlls/apache.cpp

@ -88,7 +88,7 @@ void CApache::Spawn( void ) @@ -88,7 +88,7 @@ void CApache::Spawn( void )
pev->nextthink = gpGlobals->time + 1.0;
}
m_iRockets = 10;
m_iRockets = 0;
}
void CApache::Precache( void )

4
dlls/hgrunt.cpp

@ -186,6 +186,10 @@ enum @@ -186,6 +186,10 @@ enum
//=========================================================
void CHGrunt::SpeakSentence( void )
{
// Prevent Cyberfranklin from emitting Grunt taunt sounds.
if( FClassnameIs( pev, "monster_th_cyberfranklin" ) )
return;
if( m_iSentence == HGRUNT_SENT_NONE )
{
// no sentence cued up.

8
dlls/hunger/chaingun.cpp

@ -22,6 +22,8 @@ @@ -22,6 +22,8 @@
#include "player.h"
#include "gamerules.h"
#define CHAINGUN_BULLETS_PER_SHOT 2
enum chaingun_e {
CHAINGUN_IDLE = 0,
CHAINGUN_IDLE2,
@ -357,7 +359,7 @@ void CChaingun::Fire(float flSpread, float flCycleTime, BOOL fUseAutoAim) @@ -357,7 +359,7 @@ void CChaingun::Fire(float flSpread, float flCycleTime, BOOL fUseAutoAim)
m_pPlayer->m_iWeaponVolume = NORMAL_GUN_VOLUME;
m_pPlayer->m_iWeaponFlash = NORMAL_GUN_FLASH;
m_iClip--;
m_iClip -= CHAINGUN_BULLETS_PER_SHOT;
m_pPlayer->pev->effects = (int)(m_pPlayer->pev->effects) | EF_MUZZLEFLASH;
@ -368,7 +370,7 @@ void CChaingun::Fire(float flSpread, float flCycleTime, BOOL fUseAutoAim) @@ -368,7 +370,7 @@ void CChaingun::Fire(float flSpread, float flCycleTime, BOOL fUseAutoAim)
Vector vecAiming = m_pPlayer->GetAutoaimVector(AUTOAIM_5DEGREES);
Vector vecDir;
vecDir = m_pPlayer->FireBulletsPlayer(1, vecSrc, vecAiming, Vector(flSpread, flSpread, flSpread), 8192, BULLET_PLAYER_CHAINGUN, 2, 0, m_pPlayer->pev, m_pPlayer->random_seed);
vecDir = m_pPlayer->FireBulletsPlayer(CHAINGUN_BULLETS_PER_SHOT, vecSrc, vecAiming, Vector(flSpread, flSpread, flSpread), 8192, BULLET_PLAYER_CHAINGUN, 2, 0, m_pPlayer->pev, m_pPlayer->random_seed);
int flags;
#if defined( CLIENT_WEAPONS )
@ -393,4 +395,4 @@ void CChaingun::StopSounds(void) @@ -393,4 +395,4 @@ void CChaingun::StopSounds(void)
STOP_SOUND(ENT(m_pPlayer->pev), CHAN_WEAPON, "weapons/asscan2.wav");
STOP_SOUND(ENT(m_pPlayer->pev), CHAN_WEAPON, "weapons/asscan3.wav");
STOP_SOUND(ENT(m_pPlayer->pev), CHAN_ITEM, "weapons/asscan4.wav");
}
}

4
dlls/weapons.h

@ -163,7 +163,7 @@ public: @@ -163,7 +163,7 @@ public:
#define TRIPMINE_MAX_CLIP WEAPON_NOCLIP
#define SNARK_MAX_CLIP WEAPON_NOCLIP
#define AP9_MAX_CLIP 40
#define TAURUS_MAX_CLIP 10
#define TAURUS_MAX_CLIP 20
#define SNIPER_MAX_CLIP 5
#define CHAINGUN_MAX_CLIP 100
#define MEDKIT_MAX_CLIP WEAPON_NOCLIP
@ -185,7 +185,7 @@ public: @@ -185,7 +185,7 @@ public:
#define SNARK_DEFAULT_GIVE 5
#define HIVEHAND_DEFAULT_GIVE 8
#define AP9_DEFAULT_GIVE 40
#define TAURUS_DEFAULT_GIVE 10
#define TAURUS_DEFAULT_GIVE 20
#define SNIPER_DEFAULT_GIVE 5
#define CHAINGUN_DEFAULT_GIVE 100
#define MEDKIT_DEFAULT_GIVE 12

Loading…
Cancel
Save