Raised This Month: $ Target: $400
 0% 

[L4D2] Ultra realism


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ZombieHunterX
Junior Member
Join Date: Jun 2010
Old 06-20-2010 , 10:09   [L4D2] Ultra realism
Reply With Quote #1

i got a question,i can hide the hud (cl_drawhud 0 and hidehud 64) but that is only client sided,so only i have no hud. is it possible to hide the hud for all the players who join my server. (me and my friends are already realism expert pro's,now we just want Ultra realism. but i just cant disable the hud for them.

(oh and hidehud 64 hides the health of the other players,if i use anything else then hidehud 64 i cant scroll through my inventory,somehow 64 is the only one that let me scroll through my inventory.)

video: http://www.youtube.com/watch?v=VYlD09EOSVE i want it to be like this (although i rather have a crosshair when i zoom in with the sniper)
ZombieHunterX is offline
DieTeetasse
Senior Member
Join Date: Jul 2009
Old 06-21-2010 , 20:26   Re: [L4D2] Ultra realism
Reply With Quote #2

Do for every survivor at round start this:
PHP Code:
SetEntProp(clientProp_Send"m_iHideHUD"64); 
__________________
DieTeetasse is offline
ZombieHunterX
Junior Member
Join Date: Jun 2010
Old 06-22-2010 , 08:52   Re: [L4D2] Ultra realism
Reply With Quote #3

Quote:
Originally Posted by DieTeetasse View Post
Do for every survivor at round start this:
PHP Code:
SetEntProp(clientProp_Send"m_iHideHUD"64); 
i understands it hides the hud but. im a total noob at scripting a plugin (dunno where to start,or how to make a .sp file)
ZombieHunterX is offline
JackieChan
AlliedModders Donor
Join Date: Nov 2009
Old 06-22-2010 , 10:56   Re: [L4D2] Ultra realism
Reply With Quote #4

You could take a look at this plugin since that seems to have what you need so you can edit it so it does it when the round starts.

Making a ".sp" is simply a matter of making a .txt file or something and renaming it to .sp then go about copy/pasting. Also, if you do plan on trying to make your own plugin out of it, make sure you pay careful attention to any errors the complier shows you and try to correct it accordingly.

I'd try to make it for you myself, but I'm leaving for a trip soon
JackieChan is offline
ZombieHunterX
Junior Member
Join Date: Jun 2010
Old 06-22-2010 , 11:02   Re: [L4D2] Ultra realism
Reply With Quote #5

now that i think about it,Hidehud 64 only hides the hp bar,cl_drawhud 0 only removes the weapon stats bar. so if you could combine them. maybe i can find a value that hides both health and weapon status. but the hidehud command is really messy,since most of the value's block the change weapon (mousewheel up/down) function.

Last edited by ZombieHunterX; 06-22-2010 at 12:06.
ZombieHunterX is offline
sirphr
Member
Join Date: Jun 2010
Location: Florida, USA
Old 06-28-2010 , 20:50   Re: [L4D2] Ultra realism
Reply With Quote #6

ZombieHunterX,

If you do make this plugin you mind posting it becasue i would love to add this to my servers! Thank you!
__________________
sirphr is offline
Washing605
New Member
Join Date: Jul 2010
Old 07-04-2010 , 04:03   Re: [L4D2] Ultra realism
Reply With Quote #7

So did anyone know how to make cl_drawhud work in sv_cheat 0?
I only make this work...
SetEntProp(client, Prop_Send, "m_iHideHUD", 64);
can anyone help me to combine both two?
Washing605 is offline
Washing605
New Member
Join Date: Jul 2010
Old 07-04-2010 , 09:48   Re: [L4D2] Ultra realism
Reply With Quote #8

public OnPluginStart()
{
RegConsoleCmd("sm_sr", SuperRealismOn, "SuperRealism");
}


public Action:SuperRealismOn(client, args)
{
SetEntProp(client, Prop_Send, "m_iHideHUD", 64);
CheatCommand(client, "cl_drawhud", "0");
return Plugin_Continue;
}
/* Execute Cheat Commads */
stock CheatCommand(client, const String:command[], const String:arguments[])
{
if (!client) return;
new admindata = GetUserFlagBits(client);
SetUserFlagBits(client, ADMFLAG_ROOT);
new flags = GetCommandFlags(command);
SetCommandFlags(command, flags & ~FCVAR_CHEAT);
ClientCommand(client, "%s %s", command, arguments);
SetCommandFlags(command, flags);
SetUserFlagBits(client, admindata);
}
=====================================
cl_drawhud 0
didnt work could any one help me to fix it?

Last edited by Washing605; 07-06-2010 at 18:45.
Washing605 is offline
Washing605
New Member
Join Date: Jul 2010
Old 07-06-2010 , 18:45   Re: [L4D2] Ultra realism
Reply With Quote #9

any one?
Washing605 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-08-2010 , 00:54   Re: [L4D2] Ultra realism
Reply With Quote #10

for (new i = 1; i <= GetMaxClients(); i++)
{

if (IsClientConnected(i) && IsClientInGame(i) && (!IsFakeClient(i)))
{
if (!i) return;
new admindata = GetUserFlagBits(i);
SetUserFlagBits(i, ADMFLAG_ROOT);
new flags = GetCommandFlags("cl_drawhud");
SetCommandFlags("cl_drawhud", flags & ~FCVAR_CHEAT);
ClientCommand(i, "%s %s", "cl_drawhud", "0");
SetCommandFlags("cl_drawhud", flags);
SetUserFlagBits(i, admindata);
{
{


I took your code and modified it for testing purposes, this shows how to get the clients ID ('client' in your example, 'i' in this one).

The problem is the client will receive an error message saying sv_cheats must be enabled blah. Not sure how to hide the weapon list / ammo but it would be very very nice!
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 09:12.


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