Nexuiz classbased-mod code finally available

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

Nexuiz classbased-mod code finally available

Postby Psychcf » Sat Apr 04, 2009 9:49 pm

Many people have been requesting that I update the classbased mod that I wrote for nexuiz so that it would work with the current version in trunk. I've gotten the code into a git repository, and so you can see all the changes I've made.

Here's a link to the repository: http://github.com/psychcf/nexuiz-classbased/tree/master

You can use the download link on that page to get the code if you don't want to hassle with git.

Since I was using a checked-out copy of nexuiz from SVN originally, I wasn't able to have individual commits. The changes I've made up to this point can be seen in this commit.

I still need to write some custom weapons for each class, such as a healing gun for the medic, landmines for the engineer, etc. The mod itself is a mutator, and can be used with any gametype.

If you want to help out, you can clone the repository on github and send me a pull request, or send me a patch with the changes (the first method is preferred).

The build.sh script doesn't do anything out of the ordinary, I just put it there for convenience. You can build the source however you like.

Let me know what you guys think.

EDIT: you can now download a pk3 of the mod here:
http://github.com/psychcf/nexuiz-classbased/downloads
Last edited by Psychcf on Sun Apr 05, 2009 8:00 pm, edited 1 time in total.
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby tundramagi » Sun Apr 05, 2009 3:21 pm

How do we install it.
Is it going to be added to nexuiz svn? (being a mutator and thus being pretty harmless :) )

Landmines sound fun.
tundramagi
Forum addon
 
Posts: 974
Joined: Sun Jan 04, 2009 4:53 pm

Postby Psychcf » Sun Apr 05, 2009 7:59 pm

I just threw up a pk3 now, you can download it here:

http://github.com/psychcf/nexuiz-classbased/downloads

it only works with the 2.5 version of nexuiz, so make sure you've updated before trying it out.
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby [-z-] » Sun Apr 05, 2009 10:06 pm

it loaded the pk3 just fine but nothing seems different, I tried a DM match and CTF match, nothing about class-based. What am I doing wrong?
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

Postby Psychcf » Sun Apr 05, 2009 11:17 pm

[-z-] wrote:it loaded the pk3 just fine but nothing seems different, I tried a DM match and CTF match, nothing about class-based. What am I doing wrong?


Did you set the classbased modifier in the modifier menu? you can do that, or set g_classbased to 1 on the console.

I found a bug today; if you play single player with the mod then it shows the team select dialog every time before you start. I'll have to figure out what's going on there.
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby [-z-] » Sun Apr 05, 2009 11:29 pm

okay, that works... but no matter which class I chose I seem to have the same player model, weapon set and ammo/health/armor.
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

Postby Psychcf » Mon Apr 06, 2009 12:10 am

[-z-] wrote:okay, that works... but no matter which class I chose I seem to have the same player model, weapon set and ammo/health/armor.


hmm, that's strange. I'll take a look at it some time soon.
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby tundramagi » Wed Apr 08, 2009 8:07 am

Yep, same problem here. It's a shame, this seems like a good idea for a mutator!

I notice that it says if (class == "medic")

I know that in perl to compare a string to a string stored in a variable you're supposed to do "eq", as == is a numerical comparison, perhaps it is similar in QC?

Or maybe you'd have to do if (string(class) == "medic") ? I don't know :P
(Taking stabs in the dark as to what QC wants for string comparisons).
tundramagi
Forum addon
 
Posts: 974
Joined: Sun Jan 04, 2009 4:53 pm

Postby esteel » Wed Apr 08, 2009 8:25 am

tundramagi wrote:(Taking stabs in the dark as to what QC wants for string comparisons).

LOL those "dark stabs" COMPLETLY miss your target and are simply totally wrong.. Why confuse people if you admit yourself you have no clue about what you are talking AND are totally wrong at the same time?
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby tundramagi » Wed Apr 08, 2009 8:39 am

esteel wrote:
tundramagi wrote:(Taking stabs in the dark as to what QC wants for string comparisons).

LOL those "dark stabs" COMPLETLY miss your target and are simply totally wrong.. Why confuse people if you admit yourself you have no clue about what you are talking AND are totally wrong at the same time?


So someone will correct me and send them on the right direction to fixing their code :P (the classes don't work, as Z said (I tried it too) :( :( : ( )
What does qc use for string comparison?
tundramagi
Forum addon
 
Posts: 974
Joined: Sun Jan 04, 2009 4:53 pm

Next

Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest

cron