Change the weapon base damage
Hi,
My question is how to change base damage of a weapon For example, the base damage of M4A1 is 31, and it is multi with the hit place How can I chage it to 60? :) Thanks :) |
Re: Change the weapon base damage
Code:
RegisterHam(Ham_TakeDamage, "player", "ham_TakeDamage");Code:
public ham_TakeDamage(this, idinflicter, idattacker, Float:damage, damagebits)Code:
SetHamParamFloat(4, (damage * 1.2));2.0 is 200% dmg 1.0 is 100% dmg |
Re: Change the weapon base damage
Thank you, but you do not understand what I said.
I want a module or plugin which can help me change the base damage of a weapon, such as M4A1. When a weapon cause damage to your body, its base damage is multiplied with hit group (body part which the bullet hit), the only thing I want is to change the base damage, not the damage it cause to a player |
Re: Change the weapon base damage
Quote:
|
Re: Change the weapon base damage
Hm...
I've found this : http://code.google.com/p/cs-sdk/sour...pec=svn83&r=83 Look at: float flDamage; float flRangeModifier; if ( FBitSet( m_fWeaponState, WEAPONSTATE_M4A1_SILENCED ) ) { flDamage = 33.0; flRangeModifier = 0.95; } else { flDamage = 32.0 flRangeModifier = 0.97; m_pPlayer->pev->effects |= EF_MUZZLEFLASH; } Vector vecDir = m_pPlayer->FireBullets3( m_pPlayer->GetGunPosition(), gpGlobals->v_forward, flSpread, 8192.0, 2, 12, flDamage, flRangeModifier, m_pPlayer->pev, 0, m_pPlayer->random_seed ); flDamage is the base damage of M4A1 And it is calculated and done to victim in FireBullets3 My question is : How to hook FireBullet and FireBullets3 |
Re: Re: Change the weapon base damage
Quote:
|
| All times are GMT -4. The time now is 20:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.