AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [L4D2] Ultra realism (https://forums.alliedmods.net/showthread.php?t=130100)

ZombieHunterX 06-20-2010 10:09

[L4D2] Ultra realism
 
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)

DieTeetasse 06-21-2010 20:26

Re: [L4D2] Ultra realism
 
Do for every survivor at round start this:
PHP Code:

SetEntProp(clientProp_Send"m_iHideHUD"64); 


ZombieHunterX 06-22-2010 08:52

Re: [L4D2] Ultra realism
 
Quote:

Originally Posted by DieTeetasse (Post 1215890)
Do for every survivor at round start this:
PHP Code:

SetEntProp(clientProp_Send"m_iHideHUD"64); 


:oops: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:oops:)

JackieChan 06-22-2010 10:56

Re: [L4D2] Ultra realism
 
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 :(

ZombieHunterX 06-22-2010 11:02

Re: [L4D2] Ultra realism
 
:)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.

sirphr 06-28-2010 20:50

Re: [L4D2] Ultra realism
 
ZombieHunterX,

If you do make this plugin you mind posting it becasue i would love to add this to my servers! Thank you!

Washing605 07-04-2010 04:03

Re: [L4D2] Ultra realism
 
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 07-04-2010 09:48

Re: [L4D2] Ultra realism
 
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?

Washing605 07-06-2010 18:45

Re: [L4D2] Ultra realism
 
any one?

Silvers 08-08-2010 00:54

Re: [L4D2] Ultra realism
 
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!


All times are GMT -4. The time now is 16:42.

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