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

HP Fix after the latest Steam Update


Post New Thread Reply   
 
Thread Tools Display Modes
CatsyLady
Senior Member
Join Date: Oct 2009
Location: Germany
Old 10-17-2011 , 18:06   Re: HP Fix after the latest Steam Update
Reply With Quote #11

you not stupid,
i cant get it also, but to lazy for test it on life server.

damage reducer fine for now

Valve move your damn ass and fix it xD
CatsyLady is offline
nomy
Senior Member
Join Date: Dec 2009
Location: United Kingdom
Old 10-17-2011 , 18:31   Re: HP Fix after the latest Steam Update
Reply With Quote #12

Who said valve will fix this?
nomy is offline
CatsyLady
Senior Member
Join Date: Oct 2009
Location: Germany
Old 10-17-2011 , 18:35   Re: HP Fix after the latest Steam Update
Reply With Quote #13

Quote:
Originally Posted by nomy View Post
Who said valve will fix this?
nobody ...

but we can have hopes or?
CatsyLady is offline
Paparazziv2
Senior Member
Join Date: Feb 2011
Location: Chile, La Serena
Old 10-17-2011 , 20:13   Re: HP Fix after the latest Steam Update
Reply With Quote #14

The next week (This end of week) valve launch a update (Said by Richar Helgeby).
__________________
Sorry for the bad english please.

Paparazziv2 is offline
Send a message via MSN to Paparazziv2
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 10-17-2011 , 20:23   Re: HP Fix after the latest Steam Update
Reply With Quote #15

If you're going to quote me, you should do it correctly.

Quote:
Originally Posted by rhelgeby View Post
It's still weekend so I guess we'll see another update from Valve next week. At least I expect them to know about the health bug already. Maybe it's even already fixed in a pending update.
I admit I use discrete words, but what I said is still correct. Even if they don't release an update this week. I'm optimistic about this, just give it some time.

This is just how it is with mods on Source; tight coupling usually break stuff when something changes (I'm thinking about offsets and function signatures).
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)

Last edited by rhelgeby; 10-17-2011 at 20:28.
rhelgeby is offline
Send a message via MSN to rhelgeby
nomy
Senior Member
Join Date: Dec 2009
Location: United Kingdom
Old 10-17-2011 , 20:27   Re: HP Fix after the latest Steam Update
Reply With Quote #16

They didnt even fix the prop speed yet so I don't know. I think that plugins and addons are valve's least priority.
nomy is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 10-17-2011 , 21:51   Re: HP Fix after the latest Steam Update
Reply With Quote #17

I've completely fixed this.

You need to wait until SendProxy Manager has been updated with functioning hooks for multiple entities. Then you may use this.

PHP Code:
#pragma semicolon 1
#include <sourcemod>
#include <sendproxy>

public Plugin:myinfo =
{
    
name         =        "Health Fix",            // http://www.youtube.com/watch?v=DbwmAxhRbIw&hd=1
    
author        =        "Kyle Sanderson",
    
description    =        "Work around for the Health fuckup.",
    
version        =        "1.0",
    
url            =        "http://SourceMod.net"
};

public 
OnPluginStart()
{
    for (new 
1<= MaxClientsi++)
    {
        if (
IsClientInGame(i))
        {
            
OnClientPutInServer(i);
        }
    }
}

public 
OnClientPutInServer(client)
{
    if (!
SendProxy_IsHooked(client"m_iHealth"))
    {
        
SendProxy_Hook(client"m_iHealth"Prop_IntProxyCallback);
    }
}

public 
Action:ProxyCallback(entity, const String:propname[], &iValue)
{
    if (!
IsValidClient(entity))
    {
        return 
Plugin_Continue;
    }
    
    if (
iValue 500)
    {
        
iValue RoundToCeil(iValue 10.0);
        
        if (
iValue 500)
        {
            
iValue 500;
        }
    
        
ChangeEdictState(entity);
        return 
Plugin_Changed;
    }
    
    return 
Plugin_Continue;
}

stock bool:IsValidClient(client)
{
    return ((
client <= MaxClients) && IsClientInGame(client) && IsPlayerAlive(client));

If you're using any of the other insane workarounds, don't. Really.

Also. I should probably note that if you unload this plugin, or reload it, there's a chance your server can crash. It's off in Valve land so I have no idea. If you have a better way to work around this, let me know.
Attached Files
File Type: sp Get Plugin or Get Source (HealthFix.sp - 214 views - 1.1 KB)
File Type: smx HealthFix.smx (2.5 KB, 415 views)

Last edited by KyleS; 10-18-2011 at 01:47.
KyleS is offline
Hekjuh
AlliedModders Donor
Join Date: Feb 2011
Location: Holland
Old 10-18-2011 , 02:51   Re: HP Fix after the latest Steam Update
Reply With Quote #18

wait.

[SM] Unable to load plugin "HealthFix.smx": Required extension "SendProxy Manager" file("sendproxy.ext") not running

But that's not your plugin...

Last edited by Hekjuh; 10-18-2011 at 02:59.
Hekjuh is offline
LiMaaa
AlliedModders Donor
Join Date: Oct 2010
Location: Behind You
Old 10-18-2011 , 05:42   Re: HP Fix after the latest Steam Update
Reply With Quote #19

Quote:
Originally Posted by KyleS View Post
I've completely fixed this.

You need to wait until SendProxy Manager has been updated with functioning hooks for multiple entities. Then you may use this.

[/php]If you're using any of the other insane workarounds, don't. Really.

Also. I should probably note that if you unload this plugin, or reload it, there's a chance your server can crash. It's off in Valve land so I have no idea. If you have a better way to work around this, let me know.
I just quickly tested your plugin, it seems to work.

Last edited by LiMaaa; 10-18-2011 at 06:49. Reason: Issue resolved - Was a conflicting plugin
LiMaaa is offline
3peris
BANNED
Join Date: Oct 2011
Old 10-18-2011 , 08:09   Re: HP Fix after the latest Steam Update
Reply With Quote #20

Yeah, its working!!! Thank you ;]
3peris 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:59.


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