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

Decals


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AnIHiL
Member
Join Date: Sep 2009
Old 02-12-2011 , 14:58   Decals
Reply With Quote #1

Is it possible to create decal in front of a player that will be connected to player and move with him (like parent properties)?

example:
Create big black decal in front of player and he wont see anything.
AnIHiL is offline
Send a message via MSN to AnIHiL
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 02-12-2011 , 15:04   Re: Decals
Reply With Quote #2

If you want to just make his screen black or colored you better use this:

stock bool:Client_ScreenFade(client, duration, mode, holdtime=-1, r=0, g=0, b=0, a=255, bool:reliable=true);
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
AnIHiL
Member
Join Date: Sep 2009
Old 02-12-2011 , 15:09   Re: Decals
Reply With Quote #3

Quote:
Originally Posted by berni View Post
If you want to just make his screen black or colored you better use this:

stock bool:Client_ScreenFade(client, duration, mode, holdtime=-1, r=0, g=0, b=0, a=255, bool:reliable=true);
I wrote it as example. I need to create many decals in front of player eyes that will move with him.

Anyone was testing this:
Code:
    "CTEBSPDecal"
    {
        "name"        "BSP Decal"
        "index"        "19"
        "SendTable"
        {
            "m_vecOrigin"        "vector"
            "m_nEntity"        "int"
            "m_nIndex"        "int"
        }
    }
    
    "CTEDecal"
    {
        "name"        "Entity Decal"
        "index"        "23"
        "SendTable"
        {
            "m_vecOrigin"        "vector"
            "m_vecStart"        "vector"
            "m_nEntity"        "int"
            "m_nHitbox"        "int"
            "m_nIndex"        "int"
        }
    }
    
    "CTEFootprintDecal"
    {
        "name"        "Footprint Decal"
        "index"        "29"
        "SendTable"
        {
            "m_vecOrigin"        "vector"
            "m_vecDirection"        "vector"
            "m_nEntity"        "int"
            "m_nIndex"        "int"
            "m_chMaterialType"        "int"
        }
    }
    
    "CTEPlayerDecal"
    {
        "name"        "Player Decal"
        "index"        "37"
        "SendTable"
        {
            "m_vecOrigin"        "vector"
            "m_nEntity"        "int"
            "m_nPlayer"        "int"
        }
    }
    
    "CTEProjectedDecal"
    {
        "name"        "Projected Decal"
        "index"        "38"
        "SendTable"
        {
            "m_vecOrigin"        "vector"
            "m_angRotation"        "vector"
            "m_flDistance"        "float"
            "m_nIndex"        "int"
        }
    }
    
    "CTEWorldDecal"
    {
        "name"        "World Decal"
        "index"        "44"
        "SendTable"
        {
            "m_vecOrigin"        "vector"
            "m_nIndex"        "int"
        }
    }
What's the difference between those TE ?
AnIHiL is offline
Send a message via MSN to AnIHiL
Monkeys
Veteran Member
Join Date: Jan 2010
Old 02-12-2011 , 15:44   Re: Decals
Reply With Quote #4

Many at once; or many, one at a time?

You could use overlays for the latter.
Sprites for the former.
__________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
Monkeys is offline
AnIHiL
Member
Join Date: Sep 2009
Old 02-12-2011 , 20:31   Re: Decals
Reply With Quote #5

Quote:
Originally Posted by Monkeys View Post
Many at once; or many, one at a time?

You could use overlays for the latter.
Sprites for the former.
I would like to make plugin that shows what key player pressed only WASD and mouse moves.

But I think those topics already have everything what I need:
http://forums.alliedmods.net/showthread.php?t=149750
http://forums.alliedmods.net/showthread.php?t=147958
http://forums.alliedmods.net/showthread.php?t=149758
AnIHiL is offline
Send a message via MSN to AnIHiL
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 02-14-2011 , 06:12   Re: Decals
Reply With Quote #6

You may just use this one?
__________________
Peace-Maker is offline
AnIHiL
Member
Join Date: Sep 2009
Old 02-14-2011 , 14:46   Re: Decals
Reply With Quote #7

Quote:
Originally Posted by Peace-Maker View Post
You may just use this one?
Thank you for link but I already have plugin that shows keys in chat but overlays looks better.
AnIHiL is offline
Send a message via MSN to AnIHiL
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 02-14-2011 , 16:16   Re: Decals
Reply With Quote #8

It's not in chat. It's in the hud hint area on the right.
__________________
Peace-Maker is offline
Martin
BANNED
Join Date: Mar 2009
Location: China
Old 04-12-2011 , 23:24   Re: Decals
Reply With Quote #9

Quote:
Originally Posted by AnIHiL View Post
I wrote it as example. I need to create many decals in front of player eyes that will move with him.

Anyone was testing this:
Code:
    "CTEBSPDecal"
    {
        "name"        "BSP Decal"
        "index"        "19"
        "SendTable"
        {
            "m_vecOrigin"        "vector"
            "m_nEntity"        "int"
            "m_nIndex"        "int"
        }
    }
 
    "CTEDecal"
    {
        "name"        "Entity Decal"
        "index"        "23"
        "SendTable"
        {
            "m_vecOrigin"        "vector"
            "m_vecStart"        "vector"
            "m_nEntity"        "int"
            "m_nHitbox"        "int"
            "m_nIndex"        "int"
        }
    }
 
    "CTEFootprintDecal"
    {
        "name"        "Footprint Decal"
        "index"        "29"
        "SendTable"
        {
            "m_vecOrigin"        "vector"
            "m_vecDirection"        "vector"
            "m_nEntity"        "int"
            "m_nIndex"        "int"
            "m_chMaterialType"        "int"
        }
    }
 
    "CTEPlayerDecal"
    {
        "name"        "Player Decal"
        "index"        "37"
        "SendTable"
        {
            "m_vecOrigin"        "vector"
            "m_nEntity"        "int"
            "m_nPlayer"        "int"
        }
    }
 
    "CTEProjectedDecal"
    {
        "name"        "Projected Decal"
        "index"        "38"
        "SendTable"
        {
            "m_vecOrigin"        "vector"
            "m_angRotation"        "vector"
            "m_flDistance"        "float"
            "m_nIndex"        "int"
        }
    }
 
    "CTEWorldDecal"
    {
        "name"        "World Decal"
        "index"        "44"
        "SendTable"
        {
            "m_vecOrigin"        "vector"
            "m_nIndex"        "int"
        }
    }
What's the difference between those TE ?
Where can you find this TEs ?? Do You have More ?? I need it
Martin is offline
Send a message via ICQ to Martin
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-13-2011 , 08:20   Re: Decals
Reply With Quote #10

Martin: http://lmgtfy.com/?q=sourcemod+temp+ents&l=1


__________________
Silvers 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 02:39.


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