Force default weapon(s) - Printable Version +- Xonotic Forums (https://forums.xonotic.org) +-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3) +--- Forum: Xonotic - Server Administration (https://forums.xonotic.org/forumdisplay.php?fid=16) +--- Thread: Force default weapon(s) (/showthread.php?tid=4153) |
Force default weapon(s) - end user - 05-25-2013 What setting do I need to change to provide a default weapon on all maps on the server. I'd like to have the rifle as default and also provide the laser. Also need to set the amo to be unlimited. Eh sry uploaded the balanceXonotic file to a wrong dir although can't seem to find the setting for unlimited amo. RE: Force default weapon(s) - Mirio - 05-25-2013 You mean to have them on spawn? g_start_* It will list the options for ammo and weapons. g_start_weapon_rifle 1 g_start_ammo_nails 999 - I guess, don't know how to set unlimited ammo. RE: Force default weapon(s) - end user - 05-25-2013 (05-25-2013, 07:11 PM)Mirio Wrote: You mean to have them on spawn? Thanks figured it out. In server.cfg g_use_ammunition 0 "if set to 0 all weapons have unlimited ammunition" This was in defaultXonotic.cfg No sure if I did it right but I modified the balanceXonotic.cfg mutator_new_toys.cfg and just added this to my server.cfg file. exec balanceXonotic.cfg exec mutator_new_toys.cfg Lol got my Nexuiz Camping Rifle Freezetag all set. RE: Force default weapon(s) - Mario - 05-26-2013 You could cut down on the cvars by using this: g_weaponarena "laser rifle" It sets both unlimited ammo & the starting weapons to rifle and laser. You should save your changes to server.cfg rather than modifying & re-executing balanceXonotic.cfg and mutator_new_toys.cfg, easier to update. RE: Force default weapon(s) - end user - 05-26-2013 (05-26-2013, 01:10 AM)Mario Wrote: You could cut down on the cvars by using this: g_weaponarena "laser rifle" What I did was create new files and name the files to ft-balanceXonotic.cfg ft-mutator_new_toys.cfg then called them in the server.cfg file for the appropriate server. I didn't touch the original ones. RE: Force default weapon(s) - Mr. Bougo - 05-26-2013 Sure, but Mario said it's easier to only put the cvars you want to change in your server.cfg. If for some reason there is a change in the original balanceXonotic, you won't have it in your server if you update because it will be overridden by your old ft-balanceXonotic.cfg, even if you did not mean to change the default. That is why you should only set the values of cvars that you mean to change. Right now, you're just setting a ton of cvars that you don't mean to change from their default values, and you will have problems on the next update. RE: Force default weapon(s) - end user - 05-26-2013 Hey Thanks for the info. I'll migrate the setting to server.cfg. One more thing I need to remove weapon pickups but leave health/armor I found this g_pickup_items which allows me to disable all pickups but I just want to remove weapon pickups. RE: Force default weapon(s) - Mr. Bougo - 05-26-2013 There might be a better solution, but try the replacement cvars maybe? apropos replace Also, before asking questions, please use the apropos command with relevant keywords, it's great and you might discover other interesting things. apropos pickup RE: Force default weapon(s) - end user - 05-26-2013 (05-26-2013, 04:42 PM)Mr. Bougo Wrote: There might be a better solution, but try the replacement cvars maybe? I'll look into this thanks I create a ft.setting.cfg file where I put in all of the settings I needed to change. So i just exec it in my server.cfg file instead of all the other ones. One more thing. Using g_weaponarena "laser rifle" if I add in granadelauncher how do I force the rifle to be default. ATM the granadelauncher always get to be the default weapon RE: Force default weapon(s) - Mr. Bougo - 05-27-2013 What do you mean by "default"? The one that is selected when you spawn? That's something that is decided on the client's side. RE: Force default weapon(s) - end user - 05-27-2013 (05-27-2013, 12:40 AM)Mr. Bougo Wrote: What do you mean by "default"? The one that is selected when you spawn? That's something that is decided on the client's side. Currently I have laser and rifle. The players gets equipped with the rifle when they join and can change to laser if they want to. What i need is to enable the grenade launcher but still have the player be equipped with the Rifle on join and then have the option of laser and grenade launcher. RE: Force default weapon(s) - Mario - 05-27-2013 If you're running Git, I've created a branch which is a basic copy of the Nexuiz camping rifle arena mod. The branch name is Mario/rifle_arena (you can switch to it by typing this: ./all checkout Mario/rifle_arena && ./all update && ./all compile -r). You can enable it by adding this to server config: set g_riflearena 1 With this branch, you don't need to change g_weaponarena & the small health/armor shards still spawn. You can throw grenades with the hook key. RE: Force default weapon(s) - Mr. Bougo - 05-27-2013 (05-27-2013, 01:26 AM)end user Wrote:(05-27-2013, 12:40 AM)Mr. Bougo Wrote: What do you mean by "default"? The one that is selected when you spawn? That's something that is decided on the client's side. Then, as I said, that's a client-side option. Sorry. RE: Force default weapon(s) - end user - 05-27-2013 (05-27-2013, 02:06 AM)Mario Wrote: If you're running Git, I've created a branch which is a basic copy of the Nexuiz camping rifle arena mod. K so test it out a bit. The grande has some issues with animation see attached image. There's also no explosion animation. Not sure but when we chatted did you say the rifle primary/secondary shots are hard coded or can they be changed? RE: Force default weapon(s) - Mario - 05-28-2013 You'll need to provide a serverpackage for clients to download the grenade effects. This one should work: https://dl.dropboxusercontent.com/u/91010597/zzz-nades_v2.pk3 Some of the rifle settings are hardcoded to the same values as the Nexuiz mod, but this can be changed if needed. RE: Force default weapon(s) - end user - 05-28-2013 (05-28-2013, 01:00 AM)Mario Wrote: You'll need to provide a serverpackage for clients to download the grenade effects. Can I active the grenade without the g_rilfearena and then use my current server setting? |