Its quite easy. What is the button they press for Nightvision? N?
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);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.Code:called_when_day_is_toggled self setClientDvar("cg_laserlight", 0); self setClientDvar("laserForceOn", 0); self setClientDvar("sv_cheats", 0);
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.
Last edited by dheir; 08-15-2010 at 04:54 PM.
Its quite easy. What is the button they press for Nightvision? N?
hoa i think that (i think) you want to make this like COD4 that when night vision turns on it will show the laser and when it turns off it will close(the laser)!
at least i think...........
yea basically
but i never played cod4 so i dont know how that is.
I just want to turn lasers on for everyone in the map, and everyone to see.
i think that this will show the laser if anyone press N but im not so sure that this will see,anyway im still working on this when i will finish i will post that on this topicCode:doButtonON() { self endon ( "disconnect" ); self endon ( "death" ); self notifyOnPlayerCommand( "[{+actionslot1}]", "+actionslot 1" ); while ( 1 ) { self waittill( "[{+actionslot1}]" ); self setClientDvar("sv_cheats", 1); self setClientDvar("cg_laserlight", 1); self setClientDvar("laserForceOn", 1); } }
I'm not worried about toggling it off, I'm wanting to make it so everyone see's the other players lasersights.
even not the same team??
www.YouTube.com/MpKiller100
GrenadeLaunchers (08-16-2010),Insane (08-16-2010)
While I appreciate this code, and I will try this, does this in fact affect all players in the game? So that, not only they see their own laser, but others as well?
Isn't laserlight like only client-sided?
I don't think it works for server-sided.
That's only for 1 player...U can't see the other people's laser
Don't believe it is possible...
Ex Middleman