Change settings for server only?

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Mon Aug 11, 2008 1:50 am

  • I wanna know if there's a way to have your settings work for you only? like if i edit a file, all the bots get the same settings as me...but i dont want that....
    Jay
    Newbie
     
    Posts: 2
    Joined: Mon Aug 11, 2008 1:17 am

Mon Aug 11, 2008 3:30 am

  • Jay wrote:I wanna know if there's a way to have your settings work for you only? like if i edit a file, all the bots get the same settings as me...but i dont want that....


    What file?

    What settings?
    User avatar
    [-z-]
    Site Admin and Nexuiz Ninja
     
    Posts: 1794
    Joined: Mon Nov 13, 2006 12:20 am
    Location: Florida

Mon Aug 11, 2008 3:36 am

  • the weapons file, i want to have a certain weapon but i dont want the bots to be able to use it
    Jay
    Newbie
     
    Posts: 2
    Joined: Mon Aug 11, 2008 1:17 am

Mon Aug 11, 2008 1:34 pm

  • You will need to edit havocbot.qc file and then compile all of server quakec stuff using fteqcc.

    Open havocbot.qc file and find void havocbot_chooseweapon() function at line 324.
    Scroll to the start of this function and find these two lines:
    Code: Select all
    if(self.enemy.classname!="player")
       {
          self.switchweapon = w_getbestweapon(self);
          return;
       }


    add this after those lines::
    Code: Select all
    if (self.switchweapon == WEP_NEX)
        {
          self.switchweapon = WEP_LASER;
          return;
        }


    where WEP_NEX is the weapon you want bots do not use, they will change to WEP_LASER instead.

    You can use:
      WEP_ROCKET_LAUNCHER
      WEP_NEX
      WEP_HAGAR
      WEP_GRENADE_LAUNCHER
      WEP_ELECTRO
      WEP_CRYLINK
      WEP_UZI
      WEP_SHOTGUN
      WEP_LASER

    fteqcc and gamesource can be found at Nexuiz/sources folder. Just paste fteqcc binary into server directory and compile. You'll need to put progs.dat and progs.lno into Nexuiz/data directory.
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am



Return to Nexuiz - Editing




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest