-
-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ new config defines for custom animations and sounds - NEW_ANIMS, NE…
…W_SOUNDS + new weapon classes (WeaponCustomPistolAuto and WeaponRevolver) + new weapon animations (anm_idle_moving_crouch, anm_reload_empty, anm_reload_empty_w_gl, anm_idle_moving_crouch_g, anm_idle_moving_crouch_w_gl) + new weapon sounds (snd_reload_empty)
- Loading branch information
1 parent
4010599
commit 47cba24
Showing
20 changed files
with
435 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
#pragma once | ||
|
||
#include "WeaponMagazined.h" | ||
|
||
class CWeaponCustomPistol : public CWeaponMagazined | ||
{ | ||
private: | ||
typedef CWeaponMagazined inherited; | ||
using inherited = CWeaponMagazined; | ||
|
||
public: | ||
CWeaponCustomPistol(); | ||
virtual ~CWeaponCustomPistol(); | ||
virtual int GetCurrentFireMode() { return 1; }; | ||
int GetCurrentFireMode() override { return 1; } | ||
|
||
protected: | ||
virtual void FireEnd(); | ||
virtual void switch2_Fire(); | ||
void FireEnd() override; | ||
void switch2_Fire() override; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#include "stdafx.h" | ||
#include "WeaponCustomPistolAuto.h" | ||
|
||
CWeaponCustomPistolAuto::CWeaponCustomPistolAuto() : CWeaponMagazined(SOUND_TYPE_WEAPON_PISTOL) {} | ||
|
||
CWeaponCustomPistolAuto::~CWeaponCustomPistolAuto() {} | ||
|
||
void CWeaponCustomPistolAuto::switch2_Fire() | ||
{ | ||
m_bFireSingleShot = true; | ||
//bWorking = false; | ||
m_iShotNum = 0; | ||
m_bStopedAfterQueueFired = false; | ||
} | ||
|
||
void CWeaponCustomPistolAuto::FireEnd() | ||
{ | ||
//if (fShotTimeCounter <= 0) | ||
{ | ||
//SetPending(false); | ||
inherited::FireEnd(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma once | ||
|
||
#include "WeaponMagazined.h" | ||
|
||
class CWeaponCustomPistolAuto: public CWeaponMagazined | ||
{ | ||
using inherited = CWeaponMagazined; | ||
|
||
public: | ||
CWeaponCustomPistolAuto(); | ||
virtual ~CWeaponCustomPistolAuto(); | ||
//int GetCurrentFireMode() override { return 1; }; | ||
|
||
protected: | ||
void FireEnd() override; | ||
void switch2_Fire() override; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.