Hey thanks Adam,
I'm assuming that's on the client yes?
I ask because I'm doing this via a CS:S Server Plugin so I don't have
access to the client code >.<
But with sv_cheats set to 1 it still doesn't work when executed from
the server which is the really weird part. I know some commands have a
new FCVAR_SERVER_CAN_EXECUTE flag but I thought that was just to do
with cl_restrict_server_commands being set to 1, I imagined all
commands were usable when it was set to 0...
And, when I was testing with the client I was using r_screenoverlay ""
to disable the fade, when I did r_screenoverlay instead of showing me
a blank value it told me it was disabled so I assumed that was the
correct way to disable it!
Thanks,
- Jay
Quoting "Adam \amckern\ Mckern" <[EMAIL PROTECTED]>:
Ok, try this (it will by pass cheats)
cvar->FindVar("r_screenoverlay")->SetValue("materials/vgui/hud/test/test");
I know that works with number values, as its the back
bone to primes motion blur - however, i have never
tested it with a text string before, try it, and let
me know if it works.
Dont forget to make a pure alpha texture to display at
your time out, becuase r_screenoverlay wont act very
nicely to haveing blank input
(cvar->FindVar("r_screenoverlay")->SetValue(""),
expecting it to clear the current screen overlay.
Adam
--- Jay Croghan <[EMAIL PROTECTED]> wrote:
Ok let me clear this up, when I said "I can
r_screenoverlay anything I
want using the client console" I meant I can use the
command to
overlay any texture that's currently precached.
It's a custom vmt and it's located in
materials/vgui/hud/test/test.vmt
materials/vgui/hud/test/test.vtf, and all of the
following commands
work fine.
r_screenoverlay materials/vgui/hud/test/test
r_screenoverlay materials/vgui/hud/test/test.vmt
r_screenoverlay "materials/vgui/hud/test/test"
r_screenoverlay "materials/vgui/hud/test/test.vmt"
What I was saying in my original email is that this
works successfully
if I type it into the client console, but if I use
engine->ServerCommand or helpers->ServerCommand it
doesn't work. If
sv_cheats is 0 or cl_restrict_server_commands is 1 I
get an error
telling me so.
- Jay
Quoting Wim Barelds <[EMAIL PROTECTED]>:
> --
> [ Picked text/plain from multipart/alternative ]
> Unless there are any messages I didn't get, no you
didn't. What you did say
> was that the configuration appears to have been
set up correctly. Is
> thisstandard game content (gcf) or custom content?
If custom, what is the
> location of this content, and what is the exact
command you're sending to
> the client? Why I ask this is because the command
starts looking inside the
> materials folder, as such the material folder
should not be included in the
> given path. IE:
"[modorgamename]/materials/vgui/black.vmt" would be:
> "vgui/black" (*r_screenoverlay "vgui/black"*).
>
> Hope this helps.
>
> On 2/20/07, Jay C. <[EMAIL PROTECTED]> wrote:
>>
>> I said in my email it was working in the client
console, the material
>> exists
>> and is precached...
>>
>> > -----Original Message-----
>> > From: Wim Barelds
[mailto:[EMAIL PROTECTED]
>> > Sent: 19 February 2007 22:54
>> > To: hlcoders@list.valvesoftware.com
>> > Subject: Re: [hlcoders] r_screenoverlay client
command.
>> >
>> > --
>> > [ Picked text/plain from multipart/alternative
]
>> > What r_screenoverlay does is it renders a
texture in your materials
>> folder
>> > on top in front of everything else, once
disabled
>> > the texture will be bugged and showing through
all other materials. If
>> > you try to use it for a none-existing texture,
nothing will happen,
>> > including no error messages anywhere.
>> >
>> >
>> > On 2/19/07, Jay Croghan <[EMAIL PROTECTED]> wrote:
>> > >
>> > > Evening folks,
>> > >
>> > > Was messing with r_screenoverlay and noticed
something strange.
>> > >
>> > > With sv_cheats 1 I can r_screenoverlay
anything I want using the
>> > > client console, but using a server command to
execute this for a
>> > > client with sv_cheats set to 1 and
cl_restrict_server_commands set to
>> > > 0 on the client doesn't do anything at all,
not even an error message
>> > > in either client or server console.
>> > >
>> > > Anybody know what's going on here ?
>> > >
>> > > Thanks,
>> > > - Jay
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
_______________________________________________
>> > > To unsubscribe, edit your list preferences,
or view the list archives,
>> > > please visit:
>> > >
http://list.valvesoftware.com/mailman/listinfo/hlcoders
>> > >
>> > >
>> >
>> >
>> > --
>> > ___________________________
>> > Wim 'TheUnknownFactor' Barelds
>> > [EMAIL PROTECTED]
>> > --
>> >
>> > _______________________________________________
>> > To unsubscribe, edit your list preferences, or
view the list archives,
>> > please visit:
>> >
http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>
>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or
view the list archives,
>> please visit:
>>
http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>
>>
>
>
> --
> ___________________________
> Wim 'TheUnknownFactor' Barelds
> [EMAIL PROTECTED]
> --
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or
view the list
> archives, please visit:
>
http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
_______________________________________________
To unsubscribe, edit your list preferences, or view
the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders
--------
Nigredo Studios http://www.nigredostudios.com
____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091
_______________________________________________
To unsubscribe, edit your list preferences, or view the list
archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders