Raised This Month: $ Target: $400
 0% 

Detect Weapons in Hamsandwich Ham_TakeDamage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 12-21-2008 , 14:02   Re: Detect Weapons in Hamsandwich Ham_TakeDamage
Reply With Quote #6

Quote:
Originally Posted by Bad_Bud View Post
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_weaponinflictor ,_,_) )
{
    
//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_LEFTARMHIT_STOMACHHIT_CHESTHIT_RIGHTARM
    {
        
    }
    case 
HIT_LEFTLEGHIT_RIGHTLEG
    {
        
    }

__________________
Bugsy is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode