Community made patches and improvements

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Postby MirceaKitsune » Thu Apr 09, 2009 12:46 pm

divVerent wrote:Yes, and in these modes, your mutator totally breaks the game:

LMS - no weapons at all any more
MinstaGib - no weapons at all any more

Name any other such mode where your mutator works...


I already set it to be disabled for LMS and will disable it for ministanex as well (forgot about minsta, will try to fix that today).

I was rather referring to other mods or configurations where people have set g_start_weapon cvars differently. The mutator is meant to disable all spawn weapons, so if someone set g_start_weapon_uzi to 1 for instance it would only disable the laser and shotgun and people would still be spawned with the uzi.
MirceaKitsune
Keyboard killer
 
Posts: 593
Joined: Thu Aug 14, 2008 6:48 am
Location: Romania - Bucharest

Postby MirceaKitsune » Thu Apr 09, 2009 9:26 pm

Alright, updated the patch on sourceforge and fixed the problem with the minstagib. Also added a check for g_weaponarena so if an arena is (hackishly) enabled too it wins over the mutator. I also moved the if() statement in the code because I made a big mistake putting it where it was previously, should be correct now.
MirceaKitsune
Keyboard killer
 
Posts: 593
Joined: Thu Aug 14, 2008 6:48 am
Location: Romania - Bucharest

Postby MirceaKitsune » Mon Apr 13, 2009 10:42 pm

Made another patch which contains two menu changes and a cvar tweak. These are:

- Removed the crosshair_color_override cvar and turned it into value 2 for crosshair_per_weapon, and changed the per-weapon crosshairs settings into radio buttons which looks nicer. Setting crosshair_per_weapon to 0 means no per-weapon crosshairs, 1 means per weapon crosshair styles and 2 means per weapon crosshair styles and colors.

- Split mutators in two categories: Gameplay mutators and Weapon / item mutators. Gameplay mutators are the mutators affecting the player and world, while weapon & item mutators are mutators related to weapons and items.

Patch location here.
MirceaKitsune
Keyboard killer
 
Posts: 593
Joined: Thu Aug 14, 2008 6:48 am
Location: Romania - Bucharest

Postby michal.fabik » Sun Apr 19, 2009 10:00 am

Hello,
I tried to implement cl_mouseAccel (mouse acceleration depending on how fast you move the mouse) as it appears in Q3A - I got so used to it I can't really play Nexuiz with any reasonable skill. The state of it so far:
* I named the cvar "cl_mouseaccel" - I'm not sure if that complies with Nexuiz cvar naming policy (are abbreviations allowed?, should I use camel case? etc.) but I figured people would be looking for it under the name they know it by from other games.
* It works. (In principle, that is.)
* it's way too sensitive - usable values are around 0.001 and even then you'll probably have to decrease your sensitivity quite a bit.
* The lower the value is, the jerkier the movement.
* m_filter has to be on for it to work. Setting cl_mouseaccel to a non-zero value and turning m_filter off after that does not change the value of cl_mouseaccel but it does cancel the effect of it. However, setting m_filter back to 1 doesn't have any effect at all (other than turning the mouse filter on, of course). I was unable to figure out what causes this behaviour - I used openarena source as reference and only altered the corresponding parts of the Nexuiz source I could identify - just around 4 LOC really.

the altered cl_input.c file is here, just grep it for cl_mouseaccel to see the changes. If you can improve it or point me in the right direction, I'd really appreciate it, thanks.
michal.fabik
Newbie
 
Posts: 9
Joined: Sat Feb 28, 2009 10:30 pm

Postby divVerent » Sun Apr 19, 2009 10:23 am

Can you make a diff of this, and put it on some pastebin?
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby michal.fabik » Sun Apr 19, 2009 11:17 am

michal.fabik
Newbie
 
Posts: 9
Joined: Sat Feb 28, 2009 10:30 pm

Postby michal.fabik » Sun Apr 19, 2009 11:41 am

Also, would it be a problem to make r_fullbright saveable? I use it to get a decent framerate since I'm playing on a laptop and I think I'm not the only one. It's a pain in the arse to open the console and type r_fullbright 1 every time I start Nexuiz. I know I could use a .cfg file of some sort but it's really just a matter of changing 0 to CVAR_SAVE in gl_rmain.c. (Sorry, if that's a bad idea for some reason.)
michal.fabik
Newbie
 
Posts: 9
Joined: Sat Feb 28, 2009 10:30 pm

Postby esteel » Sun Apr 19, 2009 12:17 pm

You can always make a variable saved by doing:
seta VARIABLE $VARIABLE
or more general:
seta variable newvalue
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby Max Tael » Mon Apr 27, 2009 3:25 pm

A minor alteration that adds more explicit announcement sounds for CTF's red and blue flags:

http://sourceforge.net/tracker/?func=detail&aid=2782190&group_id=81584&atid=563409
Max Tael
Newbie
 
Posts: 1
Joined: Fri Apr 17, 2009 11:31 pm

Postby divVerent » Mon Apr 27, 2009 3:40 pm

I don't really agree with a mouse acceleration that can just be on or off... note that doubling cl_mouseaccel or doubling sensitivity do exactly the same, and cl_mouseaccel 0.0001 and cl_mouseaccel 0 are very different.

The formulas used for this are clearly flawed - but I have no constructive idea on how to do it better.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

PreviousNext

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron