Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
UDP 3 Shoot Object Identify
#1
i'm getting crazy those days because i'm working at Piercing Blow UDP 3 mode but i cannot identify objects that was hit by somebody, the helmet and critical flags and the hit part, to calculate damage.
the only thing i understand for moment is weapon ID inside, i know the last 8 bytes from two packet change sometimes, but i don't know why they changes, where i can solve this, to keep doing my progress in my server


Shoot Fire

0x00000000 0A 01 0A 00 25 CE 62 4B 42 D5 00 13 15 03 00 01 ....%.bKB.......
0x00000010 01 70 C6 18 00 00 00 .p.....

HIT DATA


0x00000000 13 15 03 00 BB 80 97 40 F9 0B 25 41 95 F6 50 C2 .......@..%A..P.
0x00000010 B6 82 B7 40 D0 9F 22 41 84 9F 4C C2 D7 01 00 00 ...@.."A..L.....
0x00000020 00 4B 37 00 00 .K7..
Ответ
#2
Fire:

Код:
0A 01 // ShotId
0A 00 // ShotIndex
25 CE // CamX
62 4B // CamY
42 D5 // CamZ
00 // FireType (for melee)
13 15 03 00 // WeaponId

Hit:

Код:
01 // Hits
01 70 C6 18 // DamageInfoMask (Part, Slot, Critical, Damage, Helmet)
00 // ?
00 // ?
00 // ?
13 15 03 00 // WeaponId
...

Код:
GAMEINFO_HIT::setHitType((_DWORD *)v3, v3, v7, (char *)(*(_BYTE *)v8 & 3));
        GAMEINFO_HIT::setHitWho((_WORD *)v3, v3, v7, (*(_DWORD *)v8 >> 2) & 0x1FF);
        GAMEINFO_HIT::setHitPart((_BYTE *)v3, v3, v7, (*(_DWORD *)v8 >> 11) & 0x3F);
        GAMEINFO_HIT::setHitDamage((_WORD *)v3, v3, v7, (unsigned __int16)(*(_DWORD *)v8 >> 16) >> 12);
        GAMEINFO_HIT::setHelmetFlag((_BYTE *)v3, v3, v7, (*(_DWORD *)v8 >> 17) & 7);

Код:
var part = (01 70 C6 18) >> 11 & 0x3f;
Ответ
#3
What is the value of the Event Hit the data?
Ответ
#4
[SRC="csharp"]Fire = 0x80000,
CharaFireNHitData = 0x100000,
Hit = 0x200000,
FireNHitData = 0x300000,
GrenadeHit = 0x400000,
[/SRC]
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  Help UDP3 HP , Damage , Object , Death bmzproject 0 1,195 05-31-2018, 10:07 PM
Последний пост: bmzproject
  Object Status From Room (UDP3) bola 5 2,265 12-30-2016, 06:50 PM
Последний пост: bola

Перейти к форуму:


Пользователи, просматривающие эту тему: 1 Гость(ей)