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

VariableFF


Post New Thread Reply   
 
Thread Tools Display Modes
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 01-24-2008 , 01:13   Re: VariableFF
Reply With Quote #11

Glad to help.

Updated to Version 1.0.3
bl4nk is offline
Apex_
Member
Join Date: Jan 2008
Old 01-27-2008 , 18:55   Re: VariableFF
Reply With Quote #12

Hate to be a bother again but after the recent TF2 update my damages have been acting strangely. I typically use 0.5 with self damage filter enabled, and after playing a bit today soldier rocketjumps are doing over 150 damage! I remember Valve saying in an interview they were planning to play with explosives self damage, so it's definitely possible they silently patched it.

So far it seems as though the more health you have the more damage it does to rocket/pipe jump, e.g. full health can do well over 100, but in other cases we tried it with health around 25-40 and it did roughly 2/3 of that in damage (one I remember was 26hp did 20 damage for a rocketjump).

I'll have to do more testing later and see if the results are consistent, as well as comparing the self damage to friendly damage values. I really love this plugin, hope you don't have too much trouble with it!
Apex_ is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 01-27-2008 , 19:17   Re: VariableFF
Reply With Quote #13

I'll write up a debug version for you in a few hours. I'm currently tied up.
bl4nk is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 01-27-2008 , 22:38   Re: VariableFF
Reply With Quote #14

Sorry for the double post, but attached to this post is the debugging version. Make sure version "1.0.4a" is loaded and you should be good. Just set sm_variableff_debug to 1 and it will start logging actions. Try to not enable the debug mode for too long (set sm_variableff_debug to 0 to disable) as it logs lots of information each time a player is hurt, and will make your logs pretty large if ran for a while. Take a look at the sourcemod logs and tell me if something is wrong (I included the math used so you can figure it out). If you're unsure, post a bit of the log and I'll help you out.
Attached Files
File Type: zip variableff_1.0.4a.zip (8.2 KB, 189 views)
bl4nk is offline
Apex_
Member
Join Date: Jan 2008
Old 01-28-2008 , 11:28   Re: VariableFF
Reply With Quote #15

Thanks for the update bl4nk, I uploaded the plugin on my server and did a little playing around with FF and self damage with debug logging on. Here's a particularly interesting section, which looks to me like it might be carrying the old health value over even after you heal.

Code:
L 01/28/2008 - 11:17:42: [variableff.smx] [VFF Debug] A player has been hurt checking teams.
L 01/28/2008 - 11:17:42: [variableff.smx] [VFF Debug] Teams are equal, proceeding with plugin.
L 01/28/2008 - 11:17:42: [variableff.smx] [VFF Debug] Victim's current HP = 71
L 01/28/2008 - 11:17:42: [variableff.smx] [VFF Debug] Victim's HP before damage = 120
L 01/28/2008 - 11:17:42: [variableff.smx] [VFF Debug] "Old" damage taken (hp before - current hp) = 49
L 01/28/2008 - 11:17:42: [variableff.smx] [VFF Debug] Damage modifier variable = 2.000000
L 01/28/2008 - 11:17:42: [variableff.smx] [VFF Debug] "New" damage taken (old damage * variable) = 98.000000
L 01/28/2008 - 11:17:42: [variableff.smx] [VFF Debug] Player's "new" hp (old health - new damage) = 22.000000
L 01/28/2008 - 11:17:42: [variableff.smx] [VFF Debug] "new" hp as an integer = 22
L 01/28/2008 - 11:17:48: [variableff.smx] [VFF Debug] A player has been hurt checking teams.
L 01/28/2008 - 11:17:48: [variableff.smx] [VFF Debug] Teams are equal, proceeding with plugin.
L 01/28/2008 - 11:17:48: [variableff.smx] [VFF Debug] Victim's current HP = 158
L 01/28/2008 - 11:17:48: [variableff.smx] [VFF Debug] Victim's HP before damage = 22
L 01/28/2008 - 11:17:48: [variableff.smx] [VFF Debug] "Old" damage taken (hp before - current hp) = -136
L 01/28/2008 - 11:17:48: [variableff.smx] [VFF Debug] Damage modifier variable = 2.000000
L 01/28/2008 - 11:17:48: [variableff.smx] [VFF Debug] "New" damage taken (old damage * variable) = -272.000000
L 01/28/2008 - 11:17:48: [variableff.smx] [VFF Debug] Player's "new" hp (old health - new damage) = 294.000000
L 01/28/2008 - 11:17:48: [variableff.smx] [VFF Debug] "new" hp as an integer = 294
I was rocketjumping around and would heal myself to full after every couple of jumps. Even better, with the scale amount set to double damage it would HEAL me (which is noted in the section above, see where HP is almost 300). It was just me on the server, by the way. I did add a bot briefly to shoot it with the spy revolver, but damage to enemies seems fine unless it suffers from the same issue which can't be tested without other players around.

I included the full log below, just in case.
Attached Files
File Type: log L20080128.log (29.7 KB, 202 views)
Apex_ is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 01-28-2008 , 12:40   Re: VariableFF
Reply With Quote #16

Updated to Version 1.0.4

The problem seemed to have been that the removal of the OnGameFrame() section cause problems (people could grab health packs and such before getting hurt again - I forgot about this when I removed it). I put it back in, but I added an extra check to hopefully stop the spam you were getting before (Native "IsPlayerAlive" reported: Client x is not in game).
bl4nk is offline
Apex_
Member
Join Date: Jan 2008
Old 01-29-2008 , 10:30   Re: VariableFF
Reply With Quote #17

Quote:
Originally Posted by bl4nk View Post
Updated to Version 1.0.4

The problem seemed to have been that the removal of the OnGameFrame() section cause problems (people could grab health packs and such before getting hurt again - I forgot about this when I removed it). I put it back in, but I added an extra check to hopefully stop the spam you were getting before (Native "IsPlayerAlive" reported: Client x is not in game).

Thanks again for the update, bl4nk. Seems to have done the trick; damages are back to normal and no log spamming Now I just have to figure out what's up with ATAC and I'll be set.

Keep up the good work man!
Apex_ is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 01-29-2008 , 11:31   Re: VariableFF
Reply With Quote #18

Just doing my job.
bl4nk is offline
Apex_
Member
Join Date: Jan 2008
Old 02-01-2008 , 21:11   Re: VariableFF
Reply With Quote #19

I hate to be a pest but it seems the plugin is still acting up I don't have any plugins that could interfere with it so I have no idea why it keeps giving strange results like this:

Code:
L 02/01/2008 - 21:06:09: [variableff.smx] [VFF Debug] A player has been hurt checking teams.
L 02/01/2008 - 21:06:09: [variableff.smx] [VFF Debug] Teams are equal, proceeding with plugin.
L 02/01/2008 - 21:06:09: [variableff.smx] [VFF Debug] Victim's current HP = -148
L 02/01/2008 - 21:06:09: [variableff.smx] [VFF Debug] Victim's HP before damage = 110
L 02/01/2008 - 21:06:09: [variableff.smx] [VFF Debug] "Old" damage taken (hp before - current hp) = 258
L 02/01/2008 - 21:06:09: [variableff.smx] [VFF Debug] Damage modifier variable = 0.500000
L 02/01/2008 - 21:06:09: [variableff.smx] [VFF Debug] "New" damage taken (old damage * variable) = 129.000000
L 02/01/2008 - 21:06:09: [variableff.smx] [VFF Debug] Player's "new" hp (old health - new damage) = -19.000000
L 02/01/2008 - 21:06:09: [variableff.smx] [VFF Debug] "new" hp as an integer = -19
It seemed to be working alright initially but the issue shows up particularly badly on jump or team trial type maps where rocketjumpers are constantly healing. It's not flooding my logs though, that's good at least.

Any ideas what's up with it? If it's limited to just self damage filtering I can temporarily remove that at least.
Apex_ is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 02-01-2008 , 22:07   Re: VariableFF
Reply With Quote #20

The only thing I can think of is that someone got hit by a critical hit or something. They'll do just about that much damage.
bl4nk 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 12:39.


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