Results 1 to 4 of 4

Thread: setting a cvar with "set" or without

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    If some var is already set as a cvar, it doesnt need set.
    If it is not, cod will auto-assume its a command, thus it needs set.

    This way you can fuck with players that do /quit a lot, by setclientcvar("quit","hehehe");. The client then would need to do /cmd quit in order to actually quit the game.

    After the first set command of a cvar, future operations will not require the "set" prefix.

  2. The Following User Says Thank You to IzNoGoD For This Useful Post:

    kung foo man (30th January 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •