Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. MW3 Modding Support & Discussion
  3. Question on setting client vars

Question on setting client vars

Scheduled Pinned Locked Moved MW3 Modding Support & Discussion
2 Posts 2 Posters 740 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Meet-Your-Makerundefined Offline
    Meet-Your-Makerundefined Offline
    Meet-Your-Maker
    VIP
    wrote on last edited by
    #1

    hey bud, quick question. any way to set client dvars? i tried gsc.setclientdvar but crashes the server. tried player.setdvar and player.setcleintdvar with no luck. biggest problem being that these dvars are cheat protected. and i really dont wanna keep sv_cheats on, on the server side. not a good idea haha

    S3VDITOundefined 1 Reply Last reply
    1
    • Meet-Your-Makerundefined Meet-Your-Maker

      hey bud, quick question. any way to set client dvars? i tried gsc.setclientdvar but crashes the server. tried player.setdvar and player.setcleintdvar with no luck. biggest problem being that these dvars are cheat protected. and i really dont wanna keep sv_cheats on, on the server side. not a good idea haha

      S3VDITOundefined Offline
      S3VDITOundefined Offline
      S3VDITO
      wrote on last edited by S3VDITO
      #2

      Meet-Your-Maker

      For client

      player.setClientDvar("dvar_name", "value");
      

      or

      player.setClientDvars("dvar_name1", "value1", "dvar_name2", "value2"); // but you can add over 2 dvars
      

      but i cant call setclientdvar on plutonium IW5 =(

      For server(global dvar)

      gsc.setDvar("dvar_name", "value");
      

      I wrote small code for changing protected dvars and got hight jump 😃

      level.onNotify("prematch_done", fun(args){
      	gsc.setDvar("sv_cheats", "1");
      	gsc.setDvar("jump_disableFallDamage", "1");
      	gsc.setDvar("jump_height", "500");
      	
              // down better to remove or commented...
      	setTimeout(fun() { gsc.setDvar("sv_cheats", "0"); }, 500);
      	
      });
      

      EDITS:
      Hm... thats dont work on server without password...

      1 Reply Last reply
      1

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Donate