TraceAttack: Let game progs.src files themselves decide whether they want
BULLETPENETRATION enabled.
This commit is contained in:
parent
1891e974d0
commit
6ceca5839c
1 changed files with 3 additions and 7 deletions
|
@ -14,11 +14,7 @@
|
|||
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifdef CSTRIKE
|
||||
#define PENETRATION
|
||||
#endif
|
||||
|
||||
#ifdef PENETRATION
|
||||
#ifdef BULLETPENETRATION
|
||||
var int iTotalPenetrations;
|
||||
#endif
|
||||
|
||||
|
@ -103,7 +99,7 @@ TraceAttack_FireSingle(vector vecPos, vector vAngle, int iDamage, int iWeapon)
|
|||
break;
|
||||
}
|
||||
|
||||
#ifdef PENETRATION
|
||||
#ifdef BULLETPENETRATION
|
||||
if (iTotalPenetrations > 0) {
|
||||
iTotalPenetrations -= 1;
|
||||
TraceAttack_FireSingle(trace_endpos + (v_forward * 2), vAngle, iDamage, iWeapon);
|
||||
|
@ -119,7 +115,7 @@ TraceAttack_FireBullets(int iShots, vector vecPos, int iDamage, vector vecSpread
|
|||
makevectors(self.v_angle);
|
||||
|
||||
while (iShots > 0) {
|
||||
#ifdef PENETRATION
|
||||
#ifdef BULLETPENETRATION
|
||||
iTotalPenetrations = 2;
|
||||
#endif
|
||||
vDir = aim(self, 100000);
|
||||
|
|
Loading…
Reference in a new issue