Quote:
Originally Posted by Bad_Bud
Right. Should have read that one myself, considering I have the include open in notepad right now.
Still havn't gotten a chance to try get_user_weapon because I can't get my friends to join my server to experiment with it.
It may just return inflictor. Thanks again.
|
Here are additional checks that you may want
PHP Code:
switch( get_user_weapon( inflictor ,_,_) )
{
//Pistols and primary weapons with little to no recoil
case CSW_AWP,CSW_G3SG1,CSW_SG550,CSW_SCOUT,CSW_GLOCK18,CSW_DEAGLE,CSW_P228,CSW_ELITE,CSW_FIVESEVEN,CSW_USP:
{
}
default:
{
//All other weapons
}
}
new iGun
new iHitzone
get_user_attacker( victim , iGun , iHitzone )
switch( iHitzone )
{
case HIT_HEAD:
{
}
case HIT_LEFTARM, HIT_STOMACH, HIT_CHEST, HIT_RIGHTARM:
{
}
case HIT_LEFTLEG, HIT_RIGHTLEG:
{
}
}
__________________