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

[ANY] Hats! (Version 1.0.4c - 2/19/2012)


Post New Thread Reply   
 
Thread Tools Display Modes
BlueCuda
Junior Member
Join Date: Feb 2012
Old 07-16-2012 , 13:24   Re: [ANY] Hats! (Version 1.0.4c - 2/19/2012)
Reply With Quote #161

Does anyone have the updated gamedata or know where I can find the "LookupAttachment" signatures?
__________________
BlueCuda is offline
Hunter S. Thompson
Senior Member
Join Date: Jun 2012
Old 07-16-2012 , 15:12   Re: [ANY] Hats! (Version 1.0.4c - 2/19/2012)
Reply With Quote #162

Quote:
Originally Posted by BlueCuda View Post
Does anyone have the updated gamedata or know where I can find the "LookupAttachment" signatures?
Code:
"Games"
{
    "cstrike"
    {
        "Signatures"
        {
            "LookupAttachment"
            {
                "library"        "server"
                "linux"        "@_ZN14CBaseAnimating16LookupAttachmentEPKc"
                "windows"    "\x55\x8B\xEC\x56\x8B\xF1\x80\xBE\x2A\x2A\x2A\x2A\x00\x75\x2A\x83\xBE\x2A\x2A\x2A\x2A\x00\x75\x2A\xE8\x2A\x2A\x2A\x2A\x85\xC0\x74\x2A\x8B\xCE\xE8\x2A\x2A\x2A\x2A\x8B\x2A\x2A\x2A\x2A\x2A\x85\xF6\x74\x2A\x83\x2A\x2A\x75\x2A\x33\xC0"
            }
        }
    }
}
That one works for me, I'm not sure if it works with 3rd party models, though. I can only get in-game props to work for me.
Hunter S. Thompson is offline
grzesmlodzian
Junior Member
Join Date: Jun 2012
Old 07-19-2012 , 12:21   Re: [ANY] Hats! (Version 1.0.4c - 2/19/2012)
Reply With Quote #163

I change server and now on linux works
But along on windows doesn't works

But how download hats from garrysmod.org without register?
grzesmlodzian is offline
BlueCuda
Junior Member
Join Date: Feb 2012
Old 07-21-2012 , 17:30   Re: [ANY] Hats! (Version 1.0.4c - 2/19/2012)
Reply With Quote #164

Quote:
Originally Posted by Hunter S. Thompson View Post
Code:
"Games"
{
    "cstrike"
    {
        "Signatures"
        {
            "LookupAttachment"
            {
                "library"        "server"
                "linux"        "@_ZN14CBaseAnimating16LookupAttachmentEPKc"
                "windows"    "\x55\x8B\xEC\x56\x8B\xF1\x80\xBE\x2A\x2A\x2A\x2A\x00\x75\x2A\x83\xBE\x2A\x2A\x2A\x2A\x00\x75\x2A\xE8\x2A\x2A\x2A\x2A\x85\xC0\x74\x2A\x8B\xCE\xE8\x2A\x2A\x2A\x2A\x8B\x2A\x2A\x2A\x2A\x2A\x85\xF6\x74\x2A\x83\x2A\x2A\x75\x2A\x33\xC0"
            }
        }
    }
}
That one works for me, I'm not sure if it works with 3rd party models, though. I can only get in-game props to work for me.

That didn't work, all the models where unable to use hats. I will just stick with my old gamedata and leave the hats floating in the air
__________________
BlueCuda is offline
bman87
Senior Member
Join Date: Dec 2008
Location: Michigan
Old 07-22-2012 , 15:49   Re: [ANY] Hats! (Version 1.0.4c - 2/19/2012)
Reply With Quote #165

I have an issue with models showing up in the players camera. It looks fine from another client.

Screen Shot

Last edited by bman87; 07-22-2012 at 15:50.
bman87 is offline
Hunter S. Thompson
Senior Member
Join Date: Jun 2012
Old 07-22-2012 , 16:52   Re: [ANY] Hats! (Version 1.0.4c - 2/19/2012)
Reply With Quote #166

Quote:
Originally Posted by bman87 View Post
I have an issue with models showing up in the players camera. It looks fine from another client.

Screen Shot

That happens sometimes with me, it's usually accompanied by the model bobbing in and out of view while they move.

If it's constant, you probably have the wrong angles.
Hunter S. Thompson is offline
bman87
Senior Member
Join Date: Dec 2008
Location: Michigan
Old 07-22-2012 , 16:58   Re: [ANY] Hats! (Version 1.0.4c - 2/19/2012)
Reply With Quote #167

Quote:
Originally Posted by Hunter S. Thompson View Post
That happens sometimes with me, it's usually accompanied by the model bobbing in and out of view while they move.

If it's constant, you probably have the wrong angles.
Actually I just fixed this issue by modifying the ShouldHide() function.
If the clients "m_iObserverMode" == 0 and its their hat, Hide it. Seems to work great.

I actually have another issue with displaying the hats when a player dies. It just doesn't seem to work at all. Is anyone else having the issue with hats not showing up on death?
bman87 is offline
Hunter S. Thompson
Senior Member
Join Date: Jun 2012
Old 07-22-2012 , 19:37   Re: [ANY] Hats! (Version 1.0.4c - 2/19/2012)
Reply With Quote #168

Quote:
Originally Posted by bman87 View Post
Actually I just fixed this issue by modifying the ShouldHide() function.
If the clients "m_iObserverMode" == 0 and its their hat, Hide it. Seems to work great.

I actually have another issue with displaying the hats when a player dies. It just doesn't seem to work at all. Is anyone else having the issue with hats not showing up on death?
You mean when the player dies, and respawns, the hats aren't there?

Are you sure you didn't mess with anything in the OnPlayerDeath/OnPlayerSpawn?
Hunter S. Thompson is offline
Reinghord
Junior Member
Join Date: Dec 2009
Location: Odessa, Ukraine
Old 07-23-2012 , 06:56   Re: [ANY] Hats! (Version 1.0.4c - 2/19/2012)
Reply With Quote #169

It seems that plugin is loaded and working, but models don't always appear on players. Is there any way to fix that?
Reinghord is offline
bman87
Senior Member
Join Date: Dec 2008
Location: Michigan
Old 07-23-2012 , 13:37   Re: [ANY] Hats! (Version 1.0.4c - 2/19/2012)
Reply With Quote #170

Quote:
Originally Posted by Hunter S. Thompson View Post
You mean when the player dies, and respawns, the hats aren't there?

Are you sure you didn't mess with anything in the OnPlayerDeath/OnPlayerSpawn?
I added this to the ShouldHide() (Kinda, I used this code as an example for my own trails plugin, but this should work for this one)

This should hide the hat for only the player wearing it, if they are in first person view, which fixes the hats showing up in the camera; but everyone else in the server should be able to see the hat.

PHP Code:
if(GetEntProp(clientProp_Send"m_iObserverMode") == 0)
        {
            for(new 
i=0;i<MAX_CATEGORIES;++i)
            {
                if (
ent == g_iHats[client][i])
                    return 
Plugin_Handled;
            }
        } 
Here is the whole function
PHP Code:
public Action:ShouldHide(entclient)
{
    if(
g_bToggleEffects)
        if(!
ShowClientEffects(client))
            return 
Plugin_Handled;
            
    for(new 
i=0;i<MAX_CATEGORIES;++i)
        if(
ent == g_iHats[client][i])
            return 
Plugin_Handled;
            
    if(
IsClientInGame(client))
    {
        if(
GetEntProp(clientProp_Send"m_iObserverMode") == && GetEntPropEnt(clientProp_Send"m_hObserverTarget")>=0)
        {
            for(new 
i=0;i<MAX_CATEGORIES;++i)
                if(
ent == g_iHats[GetEntPropEnt(clientProp_Send"m_hObserverTarget")][i])
                    return 
Plugin_Handled;
        }
        if(
GetEntProp(clientProp_Send"m_iObserverMode") == 0)
        {
            for(new 
i=0;i<MAX_CATEGORIES;++i)
            {
                if (
ent == g_iHats[client][i])
                    return 
Plugin_Handled;
            }
        }
    }
    
    return 
Plugin_Continue;

bman87 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 07:40.


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