Raised This Month: $51 Target: $400
 12% 

HP Balance 1.5.1


Post New Thread Reply   
 
Thread Tools Display Modes
soccdoodcss
Veteran Member
Join Date: Nov 2006
Location: Wisconsin
Old 02-01-2007 , 00:28   Re: HP Balance
Reply With Quote #11

Nj getting it approved.
__________________
"Now safe beneath their wisdom and their feet.
Here I will teach you truly how to sleep."
soccdoodcss is offline
Send a message via AIM to soccdoodcss
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-04-2007 , 16:15   Re: HP Balance
Reply With Quote #12

If I want to set a minimum/maximum health, what do I have to make?

Ie: 80 - 200 ; it's impossible to set this values with DELTA_PERCENTAGE.
__________________
Arkshine is offline
Isobold
Veteran Member
Join Date: Mar 2004
Old 02-04-2007 , 20:20   Re: HP Balance
Reply With Quote #13

Your right, 80-200 is not possible, it's symmetric. 80-120 would be a pair, if basic health was 100.

I'll tell you why I use percentages: This makes this plugin work well even with mods giving unequal health to each player at start (like CS 1.6 with wc3-mod).

Having it symmetric seemed more fair to me, but you can also set asymmetric values, if you modify the lines 109 to 112 making your version ignore DELTA_PERCENTAGE and set a value of your choice.

Example:
Code:
    if (ratio < 80)
      ratio = 80
    if (ratio > 200)
      ratio = 200
Isobold is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-04-2007 , 21:27   Re: HP Balance
Reply With Quote #14

I know but some players complain. In fact, I would like to try that the health only increases.

Also, I've tested with CSDM and some bots, it works fine during some rounds and next the values are wrong. In some case I think it happens when all players of a team are dead and the round is finished at the same time. So a new round is starting (because one team is dead) and 1 second after a new round is starting again (because the time of round is finished). Then the displayed values are wrong. I'm not sure what I said be clear.
__________________
Arkshine is offline
Isobold
Veteran Member
Join Date: Mar 2004
Old 02-05-2007 , 07:38   Re: HP Balance
Reply With Quote #15

Not really ...

But what do you mean with "wrong"? Is the result only different from the expected one, or do you talk about a real bug. Final health are hard to predict after more than ten (if you did not changed this) rounds, as old values are overwritten by knew ones.

I'll explain with an example, where only the last two rounds are taken into account, but 5 rounds are played. Max. Health may be 200 here, min health 1.

Quote:
Two Players:
Death Kill
1 0
0 1
Result: 110 Health vs 90 Health

1 0
0 1
Result: 120 Health vs 80 Health

1 0
0 1
Result: 120 Health vs 80 Health

0 1
1 0
Result: 100 Health vs 100 Health

0 1
1 0
Result: 80 Health vs 120 Health
As you may see, the last two values seem to be strange. But why does this happen. After round three, player ones death-kill-ratio is at 2vs0, 3vs0 was not possible, because when dying the third time, round one is not taken into account anymore. When calculating his d-k-ratio, he gets one death added, because he lost, and one subtracted, because round one gets out of scope. Now in round three he wins. Now round two gets out of scope, his deaths are decreased by one again, but he gets one kill added. Now his death-kill-ratio is 1vs1. In round five he wins again, now round three gets out of scope, his deaths are decreased ones more and his kills increased, now he has a d-k-ratio of 0vs2.

If you do not like this effect, which is immanent with this formula, please wait for the trivial-version I'll post within the next days. This one will not forget kills and deaths until map change. Alternatively you may increase the number of rounds taken in account.

Edit: With version 1.5 the result will be even more confusing, as his health will not follow his d-k-ratio instantly if it is changing to fast. You will only loose or gain 10 % per round maximum with the default settings.

Last edited by Isobold; 02-05-2007 at 08:10.
Isobold is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-11-2007 , 12:15   Re: HP Balance 1.5
Reply With Quote #16

Thanks for you explanation.

Any news about "please wait for the trivial-version I'll post within the next days" ? :p
__________________
Arkshine is offline
Isobold
Veteran Member
Join Date: Mar 2004
Old 02-11-2007 , 12:22   Re: HP Balance 1.5
Reply With Quote #17

When I posted this, the file was already written, but laying on my windows desktop. As a nearly never boot windows, you had to wait a little, sry for this :-D

It's online now ...
Isobold is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-11-2007 , 12:39   Re: HP Balance 1.5
Reply With Quote #18

Thanks.

I will try asap.



EDIT : Works fine. Exactly what I wanted. :p
__________________

Last edited by Arkshine; 02-12-2007 at 01:06.
Arkshine is offline
Isobold
Veteran Member
Join Date: Mar 2004
Old 02-14-2007 , 09:24   Re: HP Balance 1.5.1
Reply With Quote #19

updated version 1.5.1

Little bug at start of a round ...
Isobold is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-15-2007 , 00:17   Re: HP Balance 1.5.1
Reply With Quote #20

Isobold,

I'm using trivial-version. And there is a little trouble with csdm & item mode.

In exemple : you get >100 hp like 120 at a roundstart and you're injured during the game. If you collect a health kit so your health becomes 100 and not 120.

Is it possible to fix this please ?
__________________
Arkshine is offline
Reply



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 03:06.


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