Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
How to differentiate the life of the characters
#1
How to differentiate the life of the characters (100 HP, 120 HP, among others ..) in UDP3?
I am working on UDP3 and I have not been able to figure out how to differentiate the characters' lives, since some characters have 120 HP, and if they use + life items too .. Can anyone help me?
Ответ
#2
HP data:

Код:
08 // SubHead.StageInfoChara
00 00 // Slot 0
0b 00 // Size
00 10 00 00 // Events.HpSync
64 00 // HP
Ответ
#3
I am already using this structure, however, when the server calculates the damage that the player will receive, for example in Head Hunter mode, if you shoot the body, and the player is 120, life should be lowered to 119, But how will I have the information that the player has a life above 100 HP?
For without this information, the server only understands that the maximum lifetime of the player is 100, so when he receives the damage, he will get 99 HP instead of 119.
Ответ
#4
TheBestGuy Написал:I am already using this structure, however, when the server calculates the damage that the player will receive, for example in Head Hunter mode, if you shoot the body, and the player is 120, life should be lowered to 119, But how will I have the information that the player has a life above 100 HP?
For without this information, the server only understands that the maximum lifetime of the player is 100, so when he receives the damage, he will get 99 HP instead of 119.

maybe a boolean with useCustomHP = true;
and check on resources released here to check how many HP user have in character
Ответ
#5
But I need to know where there is information on which is the maximum HP that the player has. 120, 136, 105, 110, among others.
Ответ
#6
TheBestGuy Написал:But I need to know where there is information on which is the maximum HP that the player has. 120, 136, 105, 110, among others.

Programmator already release here in this area, is a JSON file, you can search here.
Ответ
#7
In the UDP3 packages I say, where will I find the values that indicate the maximum of HP.
Ответ
#8
gameserver user equipments ???
this info should be create by yourself, not user client, if it was done by client, your server is very easy to be hacked.
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  Шаблоны игровых персонажей \ Characters templates PROGRAMMATOR 18 9,789 11-15-2017, 01:55 PM
Последний пост: PROGRAMMATOR

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


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