Форум администраторов игровых серверов

Форум администраторов игровых серверов (https://forum.zone-game.info/TT.php)
-   Point Blank (Piercing Blow) (https://forum.zone-game.info/forumdisplay.php?f=204)
-   -   [Point Blank] How to differentiate the life of the characters (https://forum.zone-game.info/showthread.php?t=42176)

TheBestGuy 13.03.2017 02:31

How to differentiate the life of the characters
 
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?

PROGRAMMATOR 13.03.2017 16:27

Re: How to differentiate the life of the characters
 
HP data:

Код:

08 // SubHead.StageInfoChara
00 00 // Slot 0
0b 00 // Size
00 10 00 00 // Events.HpSync
64 00 // HP


TheBestGuy 17.04.2017 18:25

Re: How to differentiate the life of the characters
 
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.

bola 18.04.2017 01:09

Re: How to differentiate the life of the characters
 
Цитата:

Сообщение от TheBestGuy (Сообщение 425714)
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

TheBestGuy 18.04.2017 02:42

Re: How to differentiate the life of the characters
 
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.

bola 18.04.2017 03:56

Re: How to differentiate the life of the characters
 
Цитата:

Сообщение от TheBestGuy (Сообщение 425722)
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.

TheBestGuy 18.04.2017 04:00

Re: How to differentiate the life of the characters
 
In the UDP3 packages I say, where will I find the values that indicate the maximum of HP.

bola 18.04.2017 04:57

Re: How to differentiate the life of the characters
 
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.


Текущее время: 01:08. Часовой пояс GMT +3.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot