Different gibs and blood for every character species

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Different gibs and blood for every character species

Postby MirceaKitsune » Sun Feb 01, 2009 5:16 pm

I thought it would be a good idea to make a topic for this feature alone given the fact it's a bit more complicated to implement but should be possible by now. I think we should focus on making different types of blood and gibs based on each character's species by now, so robots and aliens won't gib red meat chunks and bleed with red blood.

I looked into the code for some time but it's something too complicated to just open a text editor and implement, so I thought I should post what I believe and have noticed on the technical part here so maybe we can all get an idea on how this would be doable. I'm not saying this should be done the exact way I describe it here, it's just what I believe is best to follow from what I have examined.

First of all what I think it should do: There should be 3 gib and blood types in total. First one is the current red gibs which should be left as they are for all human characters. The second type should be a greenish-blue type of meat and blood for all types of aliens and lizards (something like this). Third type finally should be black oil for blood (something like this) and mechanical parts for gibs in the case of robots. The species of each player model that would specify which gibs / bloods apply to which character should be written in models\player\playername.txt in one of the lines there as "human", "alien" or "robot".

As far as my understanding goes, the gibing event must basically read the character type of the victim whenever it's called and spawn different gib models depending on what it sees. The blood code seems to be separate from gibs, so the blood effect spawners would need to read the character type separately in the same way and spawn different blood particles and decals depending on what character species they read in each case.

More into the code, the files I found of most interest are cl_player.qc and g_violence.qc in the server code, and gibs.qc in the client code (as gibing and blood are client side effects now). gibs.qc is the file where the gibs models are specified, so a new switch needs to be added here pointing to different gib models which can be called by the event that invokes gibing ("case 0x01" is the switch for the current gib types, that switch probably needs duplicating with new TossGib()s pointing to different models in each case). Each of these switches now would be used either from cl_player or g_violence where reading the character's species needs to occur and in each case use a different "case" from gibs.qc (the lines "if(sv_gentle) | e.state |= 0x80;" in g_violence.qc are probably a good example although I'm not sure).

Putting a reader for each gibing character's type is the biggest challenge. Different gib models and blood textures would need to be done as well of course. Also a new gib sound would need to be created for robots, since the current meaty "Splash!" can apply to gibing humans and aliens but for robots that would need to sound as someone smashing a computer against a wall.

I am of course willing to try and help with implementing this but can't do it by myself so I'd like to know what everyone else thinks and knows so far. You can post any partial code patches here and new gib models and textures as well if anyone makes any (as requested by the admins, try to use use the sourceforge project page for posting patches or modifications).
MirceaKitsune
Keyboard killer
 
Posts: 593
Joined: Thu Aug 14, 2008 6:48 am
Location: Romania - Bucharest

Postby mand1nga » Sun Feb 01, 2009 6:56 pm

I completely support this initiative, once/if someone makes the new gibs and/or sounds I can help with whatever is needed at code level.
mand1nga
Alien trapper
 
Posts: 321
Joined: Mon May 12, 2008 12:19 am

Postby MirceaKitsune » Sun Feb 01, 2009 9:10 pm

mand1nga wrote:I completely support this initiative, once/if someone makes the new gibs and/or sounds I can help with whatever is needed at code level.


Temporarily they can be tested with any compatible model or texture... I don't believe these will be a problem. Anyway I'll take a look at making new blood textures although for the gibs I'm not so sure how since it requires editing and re-saving the gib models to re-texture (since I initially had the idea that the gib models should always be the same, just differently textured in each case).
MirceaKitsune
Keyboard killer
 
Posts: 593
Joined: Thu Aug 14, 2008 6:48 am
Location: Romania - Bucharest

Postby Chubby » Sun Feb 01, 2009 9:20 pm

hell yeah!!
Chubby
Alien trapper
 
Posts: 483
Joined: Wed Mar 19, 2008 8:00 pm
Location: here

Postby MirceaKitsune » Sun Feb 01, 2009 9:34 pm

Alright, I wanted to take a look at modifying the blood but encountered something very odd; There doesn't appear to be any blood texture at all, while yet one is used in the game. I tried renaming the folders env, textures, gfx and even models but even without these there is a blood texture in the game. Where is the current one located? Is it a .tga file?
MirceaKitsune
Keyboard killer
 
Posts: 593
Joined: Thu Aug 14, 2008 6:48 am
Location: Romania - Bucharest

Postby morfar » Sun Feb 01, 2009 11:02 pm

This idea is older than Nexuiz 1.0 :P
We have unique sounds and taunts per race/sex. So why not blood and gibs.
morfar
Site Admin
 
Posts: 938
Joined: Tue Feb 28, 2006 6:08 pm
Location: The Island

Postby divVerent » Mon Feb 02, 2009 8:19 am

Because nobody made models/particles for them. Simple.
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 Taiyo.uk » Mon Feb 02, 2009 10:12 am

Totally wanted this feature since I started playing. I'll make some gib models and stuff if needed.

When I blow a robot up I expect oil, flames and sparks. I think that using player/team specific colours for the gibs could be a good idea.

I like the Unreal gibs where you can see recognisable bits of the other players anatomy flying around when you gib them.
Taiyo.uk
Alien trapper
 
Posts: 436
Joined: Mon Apr 17, 2006 8:48 pm
Location: Reading, IN-GER-LUND!!!

Postby MirceaKitsune » Mon Feb 02, 2009 11:37 am

divVerent wrote:Because nobody made models/particles for them. Simple.


I thought the real reason was the code being too complicated to get working... the gibs should be piece of cake to make I think. I wonder if I can edit md3 and mdl files directly with Blender... if I can I'll have the new gib models up and running quickly. As for blood I cannot find where the blood texture is located, if anyone knows where it is that would be of great help.

And team colored gibs would not be such a good idea I think. If someone is in the blue team then they'd gib blue which wouldn't be right. Probably a few spots on the gibs colored in the team's color but that could look ugly. The team colors are basically the color of the shirt / pants, while the gibs are the flesh / metal.
MirceaKitsune
Keyboard killer
 
Posts: 593
Joined: Thu Aug 14, 2008 6:48 am
Location: Romania - Bucharest

Postby Alien » Mon Feb 02, 2009 2:07 pm

He meant gibs with parts of clothes, paint, which would red/blue.
Alien
Forum addon
 
Posts: 1212
Joined: Tue Apr 22, 2008 7:12 am

Next

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron