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 282 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
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
    • S3VDITOundefined Offline
      S3VDITOundefined Offline
      S3VDITO
      replied to Meet-Your-Maker 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

      • Login

      • Don't have an account? Register

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