Replacing weapons using mapinfo

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

Replacing weapons using mapinfo

Postby Dokujisan » Wed Sep 09, 2009 5:50 pm

I found some information about this before, but it was incomplete information.

For maps that have the new weapons in them, I would like to replace the new weapons with traditional weapons. Can I get complete information on doing this?
Dokujisan
Forum addon
 
Posts: 1199
Joined: Sat Oct 07, 2006 4:31 pm
Location: Louisville, Kentucky

Postby merlijn » Wed Sep 09, 2009 9:18 pm

the magic cvars are in g_weaponreplace_*. You may set these globally in your server.cfg, or modify the mapinfo for it to be map specific. Adding multiple arguments will randomly pick one from the list.

Example:
g_weaponreplace_electro "crylink electro electro"
g_weaponreplace_crylink "crylink crylink electro"

As you might expect, this changes the spawnpoints 1/3rd of the time to the other weapon.
Before posting a reply, please read about the bikeshed
merlijn
Advanced member
 
Posts: 84
Joined: Tue Oct 21, 2008 10:18 am

Postby Dokujisan » Wed Sep 09, 2009 10:32 pm

thank you

what are the official names of the weapons for those cvars?
Dokujisan
Forum addon
 
Posts: 1199
Joined: Sat Oct 07, 2006 4:31 pm
Location: Louisville, Kentucky

Postby Dokujisan » Wed Sep 09, 2009 10:59 pm

I think this is the reason I didn't figure it out before. The examples given were the easy weapon names :-) I could guess some of them, but not all of them, and not the new weapons.
Dokujisan
Forum addon
 
Posts: 1199
Joined: Sat Oct 07, 2006 4:31 pm
Location: Louisville, Kentucky

Postby merlijn » Thu Sep 10, 2009 7:41 am

Dokujisan wrote:thank you

what are the official names of the weapons for those cvars?


http://toolz.nexuizninjaz.com/cvar/inde ... ponreplace :roll:
Before posting a reply, please read about the bikeshed
merlijn
Advanced member
 
Posts: 84
Joined: Tue Oct 21, 2008 10:18 am

Postby Dokujisan » Fri Sep 11, 2009 7:08 pm

What about that new fireball weapon?
Dokujisan
Forum addon
 
Posts: 1199
Joined: Sat Oct 07, 2006 4:31 pm
Location: Louisville, Kentucky

Postby Mr. Bougo » Sun Sep 13, 2009 7:34 am

You can have more control over individual weapon items using a .ent file, too.
Just run the map, dump a .ent file using sv_saveentfile, and edit it (it appears in ~/.nexuiz/data/maps/ or ~/.nexuiz/data/data/maps, I forgot which...). It then just needs to be placed in your new pk3 revision alongside the bsp :)

The syntax is pretty intuitive...
Meh.
Mr. Bougo
Keyboard killer
 
Posts: 760
Joined: Mon Sep 10, 2007 3:29 pm

Postby Dokujisan » Mon Sep 14, 2009 5:10 am

cool, thanks.
Dokujisan
Forum addon
 
Posts: 1199
Joined: Sat Oct 07, 2006 4:31 pm
Location: Louisville, Kentucky


Return to Nexuiz - General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron