|
|
#1 |
![]() Join Date: May 2010
Reputation: 13
Posts: 300
|
Damage Override
I was playing around, adding a shotgun fire for secondary attack on the smg1. I simply copied the function from CBaseCombatWeapon::PrimaryAttack() and replaced the bullet info with
Code:
FireBulletsInfo_t info( 12, vecSrc, vecAiming, VECTOR_CONE_10DEGREES, MAX_TRACE_LENGTH, m_iSecondaryAmmoType, false ); info.m_pAttacker = pPlayer; info.m_iDamage = 100; info.m_iPlayerDamage = 100; |
|
|
|
|
|
#2 |
|
Guest
Posts: n/a
|
I believe the damage override is defined with the ammo type. If you search your src for DMG_BUCKSHOT, you'll come up with a large table of ammo types and relative variables.
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|