wanted to know how do I give my grenade damage already married but not found anything related and wanted to know if the: D:: D: itens db
Printable View
wanted to know how do I give my grenade damage already married but not found anything related and wanted to know if the: D:: D: itens db
Is not help section !.
IT IS THE HELP SECTION! retard read. ^
Anyway here's the info you need :)
Replace this:
Code:
if(owner->NetworkLocal){obj_Player* plr = (obj_Player*)owner;for(int i=0; i<NUM_WEAPONS_ON_PLAYER; ++i){if(plr->m_Weapons[i] && plr->m_Weapons[i]->getItemID() == m_Weapon->m_itemID){gClientLogic().ApplyExplosionDamage(GetPosition(), m_Weapon->m_AmmoArea, i);break;}}}
With:
Code:
if(owner->NetworkLocal){gClientLogic().ApplyExplosionDamage(GetPosition(), m_Weapon->m_AmmoArea, 0, r3dVector(0,0,0), 360.0f);}
Serverside changes:
Delete:
Code:
if(n.wpnIdx <0 || n.wpnIdx >= NUM_WEAPONS_ON_PLAYER){r3dOutToLog("PKT_C2S_Temp_Damage: wpnIdx is out of range\n");return;}if(fromPlr->m_WeaponArray[n.wpnIdx]==NULL){r3dOutToLog("PKT_C2S_Temp_Damage: m_WeaponArray[n.wpnIdx] is NULL\n");return;}
And replace:
Code:
const WeaponConfig* wc = fromPlr->m_WeaponArray[n.wpnIdx]->getConfig();
with:
Code:
const WeaponConfig* wc = g_pWeaponArmory->getWeaponConfig(101310);
By: GigaToni