Raised This Month: $51 Target: $400
 12% 

[ Solved ] set_user_hitzones -> fm?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-01-2008 , 10:21   [ Solved ] set_user_hitzones -> fm?
Reply With Quote #1

fun:
PHP Code:
set_user_hitzones(); 
fm: ??
__________________

Last edited by xPaw; 10-02-2008 at 08:55.
xPaw is offline
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 10-01-2008 , 11:21   Re: set_user_hitzones -> fm?
Reply With Quote #2

Ye, help pls :/ need it too..
__________________
Who need lockerz invite? Pm me.
AcidoX is offline
Send a message via Skype™ to AcidoX
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 10-01-2008 , 11:22   Re: set_user_hitzones -> fm?
Reply With Quote #3

Tutorial
__________________
atomen is offline
Send a message via MSN to atomen
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 10-01-2008 , 11:26   Re: set_user_hitzones -> fm?
Reply With Quote #4

THNX! ;]
__________________
Who need lockerz invite? Pm me.
AcidoX is offline
Send a message via Skype™ to AcidoX
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 10-01-2008 , 11:56   Re: set_user_hitzones -> fm?
Reply With Quote #5

Dont understand :/ Can anybody script a Only HS plugin based on FM? Thanks in advance...
__________________
Who need lockerz invite? Pm me.
AcidoX is offline
Send a message via Skype™ to AcidoX
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-01-2008 , 12:01   Re: set_user_hitzones -> fm?
Reply With Quote #6

Quote:
Originally Posted by xPaw View Post
fun:
PHP Code:
set_user_hitzones(); 
fm: ??
See the "Bad aim" ATAC punishment plugin. ( in ATAC v3 )
__________________
Arkshine is offline
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 10-01-2008 , 12:20   Re: set_user_hitzones -> fm?
Reply With Quote #7

Ok, i have taken some functions a writen them. Pls help me edit my plugin
Attached Files
File Type: sma Get Plugin or Get Source (hsonly.sma - 510 views - 1.1 KB)
__________________
Who need lockerz invite? Pm me.
AcidoX is offline
Send a message via Skype™ to AcidoX
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-01-2008 , 13:11   Re: set_user_hitzones -> fm?
Reply With Quote #8

hs only :
PHP Code:
#include <amxmodx>
#include <fakemeta>

#define HITGROUP_HEAD    1

#define Get_HitWitch(%1)                get_tr2(%1,TR_pHit)
#define Get_HitPlace(%1)                get_tr2(%1,TR_iHitgroup)
#define Set_HitPlace_DansLesChoux(%1)    set_tr2(%1,TR_flFraction,1.0)

new g_iMaxPlayers

public plugin_init()
{
    
register_plugin("HeadShot Only""1.0""ConnorMcLeod")
    
register_forward(FM_TraceLine"Forward_TraceLine_Post"1)
    
g_iMaxPlayers get_maxplayers()
}

public 
Forward_TraceLine_Post(Float:v1[3], Float:v2[3], fNoMonstersidptr)
{
    if( 
fNoMonsters || !( <= id <= g_iMaxPlayers) )
        return 
FMRES_IGNORED

    
static pHitpHit Get_HitWitch(ptr)
    if(  
<= pHit <= g_iMaxPlayers )
    {
        if( 
Get_HitPlace(ptr) != HITGROUP_HEAD )
        {
            
Set_HitPlace_DansLesChoux(ptr)
            return 
FMRES_SUPERCEDE
        
}
    }
    return 
FMRES_IGNORED

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-01-2008 , 13:50   Re: set_user_hitzones -> fm?
Reply With Quote #9

Eh? -> http://forums.alliedmods.net/showpos...&postcount=137
Alka is offline
AcidoX
Senior Member
Join Date: Oct 2007
Location: Vilnius
Old 10-01-2008 , 14:50   Re: set_user_hitzones -> fm?
Reply With Quote #10

connorr: Thx man! I will test it. Only 1 question. In my plugin (fun version) i set value 3, 1 = head, 2 = head+neck, 3 = chest. Does your plugin work with neck if i set #define HITGROUP_HEAD 2?
Alka: that doesnt work
__________________
Who need lockerz invite? Pm me.

Last edited by AcidoX; 10-01-2008 at 14:51. Reason: Lol :D
AcidoX is offline
Send a message via Skype™ to AcidoX
Reply



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 19:05.


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