Raised This Month: $ Target: $400
 0% 

knife weird behavier


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 06-29-2009 , 07:13   knife weird behavier
Reply With Quote #1

some lines from my log:
Quote:
L 06/29/2009 - 14:553: [war3ft.amxx] iWep: 29, HitZone = 1, TL hitZone: 1, dmg: 65.000000 - knife hit, not hs, statsx says it was generic hitzone
L 06/29/2009 - 14:556: [war3ft.amxx] iWep: 29, HitZone = 5, TL hitZone: 5, dmg: 65.000000 - knife hit, not hs, statsx says it was generic hitzone
L 06/29/2009 - 14:597: [war3ft.amxx] iWep: 29, HitZone = 5, TL hitZone: 5, dmg: 65.000000 - knife hit, in the chest, but statsx says it was a headshot
L 06/29/2009 - 15:00:46: [war3ft.amxx] iWep: 29, HitZone = 6, TL hitZone: 6, dmg: 65.000000 - knife hit, in the chest, but statsx says it was a headshot

>>and the most troublesome:
L 06/29/2009 - 15:04:40: [war3ft.amxx] iWep: 29, HitZone = 2, TL hitZone: 2, dmg: 195.000000 - knife hit, in the chest (not hs) with 195 dmg, wtf? *statsx says generic hitzone
*and sometimes hit in the chest makes blood but no damage and event not logged like above =\

code for testing:
PHP Code:
public plugin_init()
{
register_forwardFM_TraceLine        "TRIGGER_TraceLine"    );
RegisterHam(Ham_TakeDamage"player""EVENT_TakeDamage");
}

new 
UserHit[33];
public 
TRIGGER_TraceLineFloat:v1[3], Float:v2[3], noMonsterspentToSkip )
{
    new 
iAttacker pentToSkip;
    new 
iVictim get_tr(TR_pHit);
    new 
iHitZone get_tr(TR_iHitgroup);
    
UserHit[iVictim] = iHitZone
}
public 
EVENT_TakeDamageiVictiminflictoriAttackerFloat:iDamageedamagetype )
{
    static 
iHitPlaceiWeapon
    get_user_attacker
iVictim iWeapon iHitPlace )
    
log_amx"iWep: %d, HitZone = %d, TL hitZone: %d, dmg: %f" ,iWeaponiHitPlaceUserHit[iVictim],iDamagee 

and yes i checked that no other plugins modifies damage or hitzones..
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.

Last edited by Owyn; 06-29-2009 at 07:44.
Owyn is offline
Send a message via ICQ to Owyn
 



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 15:43.


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