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

[CSS] Add the hud capibilities!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mitchell
~lick~
Join Date: Mar 2010
Old 04-15-2012 , 10:58   [CSS] Add the hud capibilities!
Reply With Quote #1

Even though i added the clientschemes update to the client, and server, i am still unable to show the hud using:
PHP Code:
            new Handle:hHudText CreateHudSynchronizer();
            
SetHudTextParams(-1, -11.0255002550);
            
ShowSyncHudText(xhHudText"Mitch Was Here");
            
CloseHandle(hHudText); 
On the end i think its sourcemod, in the docs it says that its on supported games such as TF2, HL2MP, and SourceForts. Now what im asking is to add CSS to that list.
Mitchell is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-15-2012 , 11:04   Re: [CSS] Add the hud capibilities!
Reply With Quote #2

I don't think I've ever seen a CS:S server with that capability (without the use of third party software, like the ESEA client or Mumble).

Here's psychonic's reply to this issue: http://forums.alliedmods.net/showpos...8&postcount=14

So, I guess if your clients manually edit some (unknown by me) files locally, they won't see it - but if they edit the files then they'll be able to see it

After seeing Bacardi's reply, it will simply fail on CS:S
__________________
View my Plugins | Donate

Last edited by TnTSCS; 04-15-2012 at 11:15.
TnTSCS is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 04-15-2012 , 12:17   Re: [CSS] Add the hud capibilities!
Reply With Quote #3

Quote:
Originally Posted by TnTSCS View Post
Here's psychonic's reply to this issue: http://forums.alliedmods.net/showpos...8&postcount=14
Quote:
Originally Posted by Mitchell View Post
i added the clientschemes update to the client, and server, i am still unable to show the hud
andd...
Quote:
Originally Posted by Bacardi View Post
Quote:
Originally Posted by Mitchell View Post
the docs it says that its on supported games such as TF2, HL2MP, and SourceForts. Now what im asking is to add CSS to that list.
I already know about these issues.
Mitchell is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-15-2012 , 11:07   Re: [CSS] Add the hud capibilities!
Reply With Quote #4

ShowSyncHudText
Quote:
Originally Posted by ShowSyncHudText
Notes: Shows a synchronized HUD message to a client. As of this writing, only TF, HL2MP, and SourceForts support HUD Text.

Return: -1 on failure, anything else on success. This function fails if the mod does not support it.


*edit
Here some hud things.
https://developer.valvesoftware.com/wiki/HudLayout.res
__________________
Do not Private Message @me

Last edited by Bacardi; 04-15-2012 at 14:15.
Bacardi is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 04-15-2012 , 12:14   Re: [CSS] Add the hud capibilities!
Reply With Quote #5

CSS IS Supported though, but sourcemod blocks it because it thinks its not.
Mitchell is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 04-15-2012 , 12:56   Re: [CSS] Add the hud capibilities!
Reply With Quote #6

I got it working

Last edited by Mitchell; 04-15-2012 at 12:56.
Mitchell is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 04-15-2012 , 13:11   Re: [CSS] Add the hud capibilities!
Reply With Quote #7

Quote:
Originally Posted by Mitchell View Post
Oh wow, how did you do it?
minimoney1 is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 04-15-2012 , 13:26   Re: [CSS] Add the hud capibilities!
Reply With Quote #8

Quote:
Originally Posted by Mitchell View Post
I'm curious as well . Example please.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 04-15-2012 , 13:41   Re: [CSS] Add the hud capibilities!
Reply With Quote #9

IIRC its in https://forums.alliedmods.net/showthread.php?t=122946 or used to be. Its a simple usermessage. As for the changes needed to the clientschema.res (or w/e it is) look at the tf2 one. They flat out refused to add it for cs:s
Dr!fter is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 04-15-2012 , 13:43   Re: [CSS] Add the hud capibilities!
Reply With Quote #10

orrrr:
PHP Code:

new Colorz;

public 
OnPluginStart()
{
    
CreateTimer(0.1Timer_Update_TIMER_REPEAT);
    
Colorz 0;
}

public 
Action:Timer_Update(Handle:timer
{
    
    for (new 
1<= MaxClientsx++)
    {
        if (
IsClientInGame(x) && IsPlayerAlive(x))
        {
            if(
Colorz== 0)
                
SendMsg_HudMsg(x1, -1.0, -0.85255002550255025500.050.050.10.1"Mitch Was Here");
            if(
Colorz == 1)
                
SendMsg_HudMsg(x1, -1.0, -0.85025502550025525500.050.050.10.1"Mitch Was Here");
            if(
Colorz == 2)
                
SendMsg_HudMsg(x1, -1.0, -0.85002552552550025500.050.050.10.1"Mitch Was Here");
            
Colorz += 1;
            if(
Colorz 2)
                
Colorz 0;
            
        }
    }
}
// "HudMsg" message
stock SendMsg_HudMsg(clientchannel
                    
Float:xFloat:y
                    
aRclraGclraBclraTclr
                    
bRclrbGclrbBclrbTclr
                    
effect
                    
Float:fadeinFloat:fadeout
                    
Float:holdtimeFloat:fxtime
                    const 
String:szMsg[])
{
  new 
Handle:hBf;
  if (!
client)
     
hBf StartMessageAll("HudMsg");
  else 
hBf StartMessageOne("HudMsg"client);
  if (
hBf != INVALID_HANDLE)
  {
     
BfWriteByte(hBfchannel); //channel
     
BfWriteFloat(hBfx); // x ( -1 = center )
     
BfWriteFloat(hBfy); // y ( -1 = center )
     // second color
     
BfWriteByte(hBfaRclr); //r1
     
BfWriteByte(hBfaGclr); //g1
     
BfWriteByte(hBfaBclr); //b1
     
BfWriteByte(hBfaTclr); //a1 // transparent?
     // init color
     
BfWriteByte(hBfbRclr); //r2
     
BfWriteByte(hBfbGclr); //g2
     
BfWriteByte(hBfbBclr); //b2
     
BfWriteByte(hBfbTclr); //a2
     
BfWriteByte(hBfeffect); //effect (0 is fade in/fade out; 1 is flickery credits; 2 is write out)
     
BfWriteFloat(hBffadein); //fadeinTime (message fade in time - per character in effect 2)
     
BfWriteFloat(hBffadeout); //fadeoutTime
     
BfWriteFloat(hBfholdtime); //holdtime
     
BfWriteFloat(hBffxtime); //fxtime (effect type(2) used)
     
BfWriteString(hBfszMsg); //Message
     
EndMessage();
  }


Quote:
Originally Posted by Dr!fter View Post
They flat out refused to add it for cs:s
Do you have a topic where they said they refused to add it in?
Attached Files
File Type: txt clientscheme.res.txt (42.2 KB, 420 views)

Last edited by Mitchell; 04-15-2012 at 13:49.
Mitchell is offline
Reply


Thread Tools
Display Modes

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:23.


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