Still need help with this.... Anyone?
OK, So I'm working off the day and night mod right now, I want to do a few things to "improve" it, or at least what I think will improve it.
First thing I want to do is turn on laser sights when nighttime is toggled.
here are the things i have tried for the following:
note what im typing is an incomplete pseudo code.
I don't need help with syntax, just proper commands.
Code:
called_when_client_connects
self setClientDvar("sv_cheats", 1);
self setClientDvar("cg_laserlight", 1);
self setClientDvar("laserForceOn", 1);
Code:
called_when_night_is_toggled
self setClientDvar("sv_cheats", 1);
self setClientDvar("cg_laserlight", 1);
self setClientDvar("laserForceOn", 1);
Code:
called_when_day_is_toggled
self setClientDvar("cg_laserlight", 0);
self setClientDvar("laserForceOn", 0);
self setClientDvar("sv_cheats", 0);
When I am close to being done with my modifications I will probably see what the state of those dvars are, and only change if needed, for the sake of error proofing.
this only turns on laser sights for me, and no one else can see them, also i am only person with laser sights.
Is this possible to turn this on for all players?
Thanks for any help guys.