Code. Help! Created 17 years ago2006-10-06 14:18:03 UTC by Unbreakable Unbreakable

Created 17 years ago2006-10-06 14:18:03 UTC by Unbreakable Unbreakable

Posted 17 years ago2006-10-06 14:18:03 UTC Post #198724
Ok, what I wanted to do was to make the crossbow scope have a nightvision lens, So the easiest way I thought of was to draw a green fade. This works great. But then I wanted to make everything bright. (Like what opposing force did with their NVG, they made the surrounding world brighter. And drew a green sprite over the screen, off course me, I'm using a green fade.)

Now but when I go to do this, In game I get an error that it can't change the gamma and brightness cvar. Here, I got two screenshots:
User posted image

User posted image


So please, can somebody help me, what am I missing!?
Unbreakable UnbreakableWindows 7.9 Rating!
Posted 17 years ago2006-10-06 14:32:26 UTC Post #198727
I don't think you'll get much help from here. There arn't many coding dudes on TWHL. Try the VERC or the Spirit forums, even though their responses may be crap.
The Mad Carrot The Mad CarrotMad Carrot
Posted 17 years ago2006-10-06 14:37:49 UTC Post #198731
ya. I posted at the spirit forums. Probably take forever. You'd think this site would have just as much coders as anywhere.. :

Hmm, just thought of something though, I'm going to try removing the gamma changes and see if it will work... brb

Edit, nah never worked, I get the same error for the brightness setting.

What about the Maxclients. Can anyone give me some information on that?
Unbreakable UnbreakableWindows 7.9 Rating!
Posted 17 years ago2006-10-06 16:56:39 UTC Post #198744
How big is the green sprite your using to cover the screen?
Posted 17 years ago2006-10-06 17:12:34 UTC Post #198745
I'm not using a sprite. Instead I'm using a colored fade.

I got to go to work atm but be back in 8 hrs
Unbreakable UnbreakableWindows 7.9 Rating!
Posted 17 years ago2006-10-06 18:24:28 UTC Post #198751
You've used
CLIENT_COMMAND((edict_t *)pev,
you have to use
CLIENT_COMMAND((edict_t *)m_pPlayer->pev,
or it will try to execute the command on the crossbow entity.
ChickenFist ChickenFist<Witty Title>
Posted 17 years ago2006-10-07 09:56:19 UTC Post #198789
aaah Thank-you, I'll give that a try in a bit. :D Got to get some sleep right now though just pulled an overnight shift. :
Ok that illiminated the error, however, it does'nt work. It should light up the world, but it does'nt.

CLIENT_COMMAND((edict_t *)m_pPlayer-&gt;pev, "gl_overbright 1n");

Does this only work for certain graphic cards?
Unbreakable UnbreakableWindows 7.9 Rating!
Posted 17 years ago2006-10-08 07:58:05 UTC Post #198924
Well, it should only work in OpenGL.
ChickenFist ChickenFist<Witty Title>
Posted 17 years ago2006-10-08 16:23:38 UTC Post #198974
ya but it doesn't.. :( I'm going to try putting in a dlight..
Unbreakable UnbreakableWindows 7.9 Rating!
You must be logged in to post a response.