Weapon stay

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Weapon stay

Postby MirceaKitsune » Sun Sep 21, 2008 11:34 pm

Many FPS games like Nexuiz usually have a setting called Weapon stay for a game session. When enabled, picking up a weapon from where its placed on the map gives you that weapon with the default ammo but the weapon does not disappear from the pickup location and acts as an infinite supply, though you are not allowed to pick it up again if you already have it. If disabled weapons act the way they do now and when picked up they disappear then respawn again after some time.

This would be really helpful, not only because it's a classic feature that's missed out but also because in maps with many players, even if weapons respawn soon people still have to wonder around with the shotgun because they cannot find a better weapon until one appears back. So please, can you add the Weapon stay flag in the next release? At least as a mutator though that's normally a server setting when you make the server.

Note: To already highlight a possible glitch; When implementing this, make sure that a player cannot drop the weapon they already have, pick the weapon from the pickup place when Weapon stay is on then pickup the one they thrown again, thus being able to gain double ammo. In UT this is blocked by not allowing the weapon you throw to be picked up if you re-picked it from the pickup place when weapons stay.
MirceaKitsune
Keyboard killer
 
Posts: 593
Joined: Thu Aug 14, 2008 6:48 am
Location: Romania - Bucharest

Postby TVR [Public Terminal] » Mon Sep 22, 2008 2:12 am

As of current item placement and GPMs, weapon pickups are intended to function as ammo pickups as well.
TVR [Public Terminal]
Member
 
Posts: 27
Joined: Sat Dec 22, 2007 12:48 am

Postby [-z-] » Mon Sep 22, 2008 2:18 am

The cvar g_weapon_stay set to 1 or deathmatch set to 2 apparently does this.
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

Postby MirceaKitsune » Mon Sep 22, 2008 9:58 am

[-z-] wrote:The cvar g_weapon_stay set to 1 or deathmatch set to 2 apparently does this.


Thanks. Just so im sure cuz im still a bit of a newb with some console stuff, are these commands that you write in the ` console and they activate during gameplay, without needing a patch of sorts? If so it means weapon stay is already implemented, and it just needs a checkmark in the Create window when you make a server.

[EDIT] I tried writing g_weapon_stay = 1 in the console but it doesn't do anything. If I simply just write g_weapon_stay is tells me it's "= with [0]". Whats the correct console formula to set a flag to a certain value if "flag = 1" doesn't work?
MirceaKitsune
Keyboard killer
 
Posts: 593
Joined: Thu Aug 14, 2008 6:48 am
Location: Romania - Bucharest

Postby GreEn`mArine » Mon Sep 22, 2008 1:26 pm

don't write the = symbol

jsut write s.th. like set g_variable 1
IRC quote:
[kojn] I've been coming a bit more recently
[kojn] she took it the dirty way
GreEn`mArine
Forum addon
 
Posts: 1509
Joined: Tue Feb 28, 2006 9:33 pm
Location: Germany

Postby [-z-] » Mon Sep 22, 2008 1:52 pm

To keep changes you make, you can create a file called 'autoexec.cfg' in your Nexuiz/data folder. Any cmds or aliases in there will be loaded when the game starts up.
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

Postby MirceaKitsune » Mon Sep 22, 2008 2:32 pm

Thanks, now it works. I set g_weapon_stay to 1 and its the perfect and exact implementation of how it should be like. So I hope someone can put it as a server setting too in the next release, somewhere under the time & flag limits under the list on that page. Will play with it locally until then.

[EDIT] - I have actually found a bug in it; when weapon stay is on, a player cannot pick up any dropped weapon if they already have it. This also includes weapons players drop when they die, which should always be pickable unless you have maximum ammo.
MirceaKitsune
Keyboard killer
 
Posts: 593
Joined: Thu Aug 14, 2008 6:48 am
Location: Romania - Bucharest


Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron