Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/game/shared/swarm/asw_weapon_heal_gun_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class CASW_Weapon_Heal_Gun : public CASW_Weapon, public IASW_Medical_Weapon
virtual void HealAttack() { PrimaryAttack(); }
virtual bool HasMedicalAmmo() { return HasPrimaryAmmo(); }
virtual bool SecondaryAttackUsesPrimaryAmmo() { return true; }
virtual bool UsesClipsForAmmo1() const override { return false; }
virtual bool Reload( void );
virtual bool HasAmmo();
virtual void WeaponIdle( void );
Expand Down
2 changes: 1 addition & 1 deletion src/game/shared/swarm/asw_weapon_healamp_gun_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CASW_Weapon_HealAmp_Gun : public CASW_Weapon_Heal_Gun

virtual Class_T Classify( void ) { return (Class_T)CLASS_ASW_HEALAMP_GUN; }
virtual bool SecondaryAttackUsesPrimaryAmmo() { return false; }
virtual bool UsesClipsForAmmo2() { return false; }
virtual bool UsesClipsForAmmo2() const override { return false; }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this also have UsesClipsForAmmo1?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UsesClipsForAmmo1 is inherited from heal gun.
But I can add this to healamp gun too for clarity.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I forgot about the crazy weapon class tree.


#ifdef CLIENT_DLL
virtual void MouseOverEntity(C_BaseEntity *pEnt, Vector vecWorldCursor);
Expand Down
1 change: 1 addition & 0 deletions src/game/shared/swarm/asw_weapon_medrifle_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class CASW_Weapon_MedRifle : public CASW_Weapon_Rifle, public IASW_Medical_Weapo
virtual void SecondaryAttack();
virtual void HealAttack() { SecondaryAttack(); }
virtual bool HasMedicalAmmo() { return HasSecondaryAmmo(); }
virtual bool UsesClipsForAmmo2() const override { return false; }
virtual void WeaponIdle( void );
virtual const Vector& GetBulletSpread( void );
virtual void ItemPostFrame();
Expand Down
Loading