Results 1 to 15 of 34

Threaded View

  1. #1
    dheir's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Florida
    Posts
    376
    Reputation
    13
    Thanks
    230
    My Mood
    Amused

    laserlight all players.

    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.
    Last edited by dheir; 08-15-2010 at 04:54 PM.

Similar Threads

  1. [Solved] Wait until all players have spawned
    By TechnoX in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 3
    Last Post: 06-11-2011, 05:08 PM
  2. bind keys for all players
    By ChrisR20XX in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 2
    Last Post: 11-29-2010, 01:32 PM
  3. [Info] Blank_Zone RECRUTING ALL PLAYERs
    By virusikPL in forum CrossFire Clan Recruitment & Advertising
    Replies: 0
    Last Post: 11-05-2010, 05:51 PM
  4. [Release] Blank_Zone ECRUTING ALL PLAYERS
    By virusikPL in forum CrossFire Clan Recruitment & Advertising
    Replies: 3
    Last Post: 10-31-2010, 03:05 AM
  5. Replies: 13
    Last Post: 04-19-2009, 12:56 PM