|
Veteran Member
|

06-29-2009
, 07:13
knife weird behavier
|
#1
|
some lines from my log:
Quote:
L 06/29/2009 - 14:55 3: [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:55 6: [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:59 7: [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_forward( FM_TraceLine , "TRIGGER_TraceLine" ); RegisterHam(Ham_TakeDamage, "player", "EVENT_TakeDamage"); }
new UserHit[33]; public TRIGGER_TraceLine( Float:v1[3], Float:v2[3], noMonsters, pentToSkip ) { new iAttacker = pentToSkip; new iVictim = get_tr(TR_pHit); new iHitZone = get_tr(TR_iHitgroup); UserHit[iVictim] = iHitZone } public EVENT_TakeDamage( iVictim, inflictor, iAttacker, Float:iDamagee, damagetype ) { static iHitPlace, iWeapon get_user_attacker( iVictim , iWeapon , iHitPlace ) log_amx( "iWep: %d, HitZone = %d, TL hitZone: %d, dmg: %f" ,iWeapon, iHitPlace, UserHit[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.
|
|