Raised This Month: $ Target: $400
 0% 

Solved game_text l4d2 help


Post New Thread Reply   
 
Thread Tools Display Modes
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 05-01-2017 , 00:42   Re: game_text l4d2 help
Reply With Quote #11

Quote:
Originally Posted by Grey83 View Post
Emilio3, maybe it's just overlay?
You can make screenshot?
It's not overlay. By the way, Emilio, you can ask Accelerator74 for that as I know the server you're talking about and he's a part of it.
cravenge is offline
Emilio3
Member
Join Date: Aug 2013
Location: London UK
Old 05-01-2017 , 01:39   Re: game_text l4d2 help
Reply With Quote #12

Quote:
Originally Posted by Grey83 View Post
Emilio3, maybe it's just overlay?
You can make screenshot?
now to make because i dont know do with overlay and if i do with overlay the player need to download this overlays and put in the game to see

Last edited by Emilio3; 05-01-2017 at 01:57.
Emilio3 is offline
Emilio3
Member
Join Date: Aug 2013
Location: London UK
Old 05-01-2017 , 01:47   Re: game_text l4d2 help
Reply With Quote #13

Quote:
Originally Posted by cravenge View Post
It's not overlay. By the way, Emilio, you can ask Accelerator74 for that as I know the server you're talking about and he's a part of it.
cravenge i know who is accelerator74 server core but i thinks this guys not tell me the way to do and yes is in this server where are i see in l4d2 i have too one code to the speakers in server but print in centertext when the player speaking and this guys the some code print in down right if any know the way to print in top down please in l4d2, im gratefull with him
thius is the code

PHP Code:
#include <sourcemod>

forward OnClientSpeaking(client);

public 
Extension:__ext_voice 
{
    
name "VoiceHook",
    
file "VoiceHook.ext",
    
autoload 1,
    
required 1,
}

bool ClientSpeaking[MAXPLAYERS+1];
int iCount;
char SpeakingPlayers[128];

public 
void OnPluginStart()
{
    
CreateTimer(0.7UpdateSpeaking_TIMER_REPEAT);
}

public 
OnClientSpeaking(client)
{
    
ClientSpeaking[client] = true;
}

public 
Action UpdateSpeaking(Handle timer)
{
    
iCount 0;
    
SpeakingPlayers[0] = '\0';
    for (
int i 1<= MaxClientsi++)
    {
        if (
ClientSpeaking[i])
        {
            if (!
IsClientInGame(i)) continue;
            
            
Format(SpeakingPlayerssizeof(SpeakingPlayers), "%s\n%N"SpeakingPlayersi);
            
iCount++;
        }
        
ClientSpeaking[i] = false;
    }
    if (
iCount 0)
    {
        for (
int i 1<= MaxClientsi++)
        {
            
PrintCenterText(i"Players Speaking:%s"SpeakingPlayers);
        }
    }


Last edited by Emilio3; 05-01-2017 at 02:00.
Emilio3 is offline
Aceleracion
Member
Join Date: Jul 2017
Location: Ecuador
Old 11-09-2017 , 02:38   Re: game_text l4d2 help
Reply With Quote #14

I would also like to know how to put a text on the right side of the screen. As it is in the image:

https://www.dropbox.com/s/ni5t3kbd18...erver_text.jpg

Typography and letter color is similar to the text that appears in a game of scavenge mode:

https://www.dropbox.com/s/0bsark7zrt...venge_text.jpg

In itself it looks like a HUD text but it is not compatible with L4D2
__________________
by Aceleración
To succeed in your goals, use your true potential

Last edited by Aceleracion; 11-09-2017 at 02:40.
Aceleracion is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 11-09-2017 , 03:30  
Reply With Quote #15

Quote:
Originally Posted by Aceleracion View Post
I would also like to know how to put a text on the right side of the screen.
It's KeyHintText as I know
__________________
Grey83 is offline
Vit_amin
Senior Member
Join Date: Dec 2015
Location: Russian Federation
Old 11-10-2017 , 02:55   Re: game_text l4d2 help
Reply With Quote #16

It's VScript HUD
Vit_amin is offline
Aceleracion
Member
Join Date: Jul 2017
Location: Ecuador
Old 11-10-2017 , 18:13   Re: game_text l4d2 help
Reply With Quote #17

Quote:
Originally Posted by Vit_amin View Post
If it could be, I have not reviewed that but i will do it with VScript HUD. Thanks in advance. If I'm successful, will publish a Left 4 Dead 2 plugin related to that
__________________
by Aceleración
To succeed in your goals, use your true potential

Last edited by Aceleracion; 11-10-2017 at 20:06.
Aceleracion is offline
Aceleracion
Member
Join Date: Jul 2017
Location: Ecuador
Old 11-13-2017 , 16:53   Re: game_text l4d2 help
Reply With Quote #18

Resolved.
Hud Server Logo (Static): https://forums.alliedmods.net/showthread.php?t=302730
__________________
by Aceleración
To succeed in your goals, use your true potential
Aceleracion is offline
Emilio3
Member
Join Date: Aug 2013
Location: London UK
Old 11-26-2017 , 10:37   Re: game_text l4d2 help
Reply With Quote #19

Quote:
Originally Posted by Aceleracion View Post
Resolved.
Hud Server Logo (Static): https://forums.alliedmods.net/showthread.php?t=302730
YES MAN better its working thank so much. but now to put not static down right because i need when speaker the player in server
Emilio3 is offline
Aceleracion
Member
Join Date: Jul 2017
Location: Ecuador
Old 11-26-2017 , 18:43   Re: game_text l4d2 help
Reply With Quote #20

Quote:
Originally Posted by Emilio3 View Post
YES MAN better its working thank so much. but now to put not static down right because i need when speaker the player in server
You could do with VScripts what you want, if you know how to program in Squirrel.

More information: https://developer.valvesoftware.com/wiki/L4D2_Vscripts

Another way would be to modify the file to be an entity script. Then when the player is talking, modify the line of code that contains the data item "dataval", putting the name of the player, and then do a quick reload of the script.
__________________
by Aceleración
To succeed in your goals, use your true potential

Last edited by Aceleracion; 11-26-2017 at 18:54.
Aceleracion 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 21:40.


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