Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

OJP Enhanced Models

Page: 1 of 2
 keshire
03-05-2004, 5:02 AM
#1
http://mediaservice.photoisland.com/auction/Mar/2004358146269133053897.jpg)

My to do list as far as adding holster tags for OJP.

Kyle
Human male CPC
Human female CPC

Any help would be appreciated. Please list here what you will be tackling code and model wise as well as suggestions.
 razorace
03-05-2004, 8:57 AM
#2
I guess I'll finish up the code side of things. I assume all the tags on the last model you sent are the tags you want, right?
 keshire
03-05-2004, 9:06 AM
#3
saber:first saber

saber2:dual saber

staff:any big saber, do it by wether or not their categorized as two handed.

Blaster:blaster, blaster_r, briar, demp2

launcher:concussion, disruptor, heavy repeater, merr_son, bowcaster

Golan:needs its own tag because the thing is so damn big.

Then organizing them to show by damage would be best.

So the sabers will always be seen when holstered overriding everything but the jetpack.
 keshire
03-05-2004, 10:03 AM
#4
My bad I forgot the way I'm organizing these.

Its:
saber resides on right side of hip by its lonesome

saber2/blaster reside on left side of hip

golan/staff/launcher all reside by/on the back. Which is where the jetpack is.

I don't have an extra tag for a double blaster should I incorporate one?

Can we make these rag? (Doesn't a broken arm rag?)

Can we have them effected by push/pull and being hit?

*edit*
looked it up, broken limbs don't rag. Too bad.

*double edit since no ones around*
Think i found what I'm looking for...

================
CG_Rag_Trace

Variant on CG_Trace. Doesn't trace for ents because ragdoll engine trace code has no entity
trace access. Maybe correct this sometime, so bmodel col. at least works with ragdoll.
But I don't want to slow it down..
================

void CG_Rag_Trace( trace_t *result, const vec3_t start, const vec3_t mins, const vec3_t maxs, const vec3_t end,
int skipNumber, int mask ) {
trap_CM_BoxTrace ( result, start, end, mins, maxs, 0, mask);
result->entityNum = result->fraction != 1.0 ? ENTITYNUM_WORLD : ENTITYNUM_NONE;
}

//#define _RAG_BOLT_TESTING

#ifdef _RAG_BOLT_TESTING
void CG_TempTestFunction(centity_t *cent, vec3_t forcedAngles)
{
mdxaBone_t boltMatrix;
vec3_t tAngles;
vec3_t bOrg;
vec3_t bDir;
vec3_t uOrg;

VectorSet(tAngles, 0, cent->lerpAngles[YAW], 0);

trap_G2API_GetBoltMatrix(cent->ghoul2, 1, 0, &boltMatrix, tAngles, cent->lerpOrigin,
cg.time, cgs.gameModels, cent->modelScale);
BG_GiveMeVectorFromMatrix(&boltMatrix, ORIGIN, bOrg);
BG_GiveMeVectorFromMatrix(&boltMatrix, NEGATIVE_Y, bDir);

VectorMA(bOrg, 40, bDir, uOrg);

CG_TestLine(bOrg, uOrg, 50, 0x0000ff, 1);

cent->turAngles[YAW] = forcedAngles[YAW];
}
#endif

//list of valid ragdoll effectors
static const char *cg_effectorStringTable[] =
{ //commented out the ones I don't want dragging to affect
// "thoracic",
// "rhand",
"lhand",
"rtibia",
"ltibia",
"rtalus",
"ltalus",
// "rradiusX",
"lradiusX",
"rfemurX",
"lfemurX",
// "ceyebrow",
NULL //always terminate
};
 razorace
03-05-2004, 6:45 PM
#5
saber2 and blaster are on the same tag?
 Master_Keralys
03-05-2004, 7:12 PM
#6
How many weapons are you planning on displaying at a time? Or are you planning on displaying only the most recently holstered weaon? Since, after all, you've got the rocket launcher and the staff saber holstered in the same spot, and so forth.
 razorace
03-06-2004, 2:19 AM
#7
Only one weapon of each type would be displayed. Holster weapon display will be solely based on which weapon you're currently using and which weapons you already have.
 keshire
03-06-2004, 2:32 AM
#8
nope saber2 and blaster are at the same spot but not on the same tag. Otherwise the gun would be pointed forward instead of down. I have to rotate the tags so that they correspond with that weapons particular origin.

Also a new saber flag would be nice, so as to prevent them from being holstered. If your time is limited too much I can look into it.
 razorace
03-06-2004, 5:00 AM
#9
I agree a new saber flag would be best. I'll see if I can add that when I'm doing the rest of the system.

As for the blaster/saber holster bolts, I suggest that you seperate or only use one or the other. Having them both in the same area will result in both the models overlapping each other.
 keshire
03-06-2004, 9:59 AM
#10
MMM, next model...Perfectly weighted. Luckily I learned some tricks from an old artist friend who got me into Multimedia. The fingers aren't done and I may need to tweak the tags. But here are the pics.

http://mediaservice.photoisland.com/auction/Mar/2004362434637095088394.jpg)
http://mediaservice.photoisland.com/auction/Mar/2004362481415208214562.jpg)
http://mediaservice.photoisland.com/auction/Mar/2004362715864277987441.jpg)
 razorace
03-07-2004, 6:12 AM
#11
ok, got the saber staff and saber2 stuff coded.

How should I handle the two blaster slots? Should it just store the two highest level guns you have?
 LightNinja
03-07-2004, 11:22 AM
#12
where must each tag be weighted to what bone?
 LightNinja
03-07-2004, 11:45 AM
#13
and linked
 razorace
03-07-2004, 7:22 PM
#14
You can put the bolts anywhere you can as long as they are tag surfaces with the correct names.
 keshire
03-09-2004, 2:48 AM
#15
As well as weight them to any bone you'd like.

I went for the thorasic and femurXY's for the weights.
 keshire
03-09-2004, 7:05 AM
#16
http://mediaservice.photoisland.com/auction/Mar/2004393478342260865377.jpg)

I have the Max4.2 file, xsi, and model zipped up for any that want it to help with their own models.

I also gave it too Razor Ace to up to the OJP repository.

Uses: bolt_holster
saber
saber2
staff
blaster
blaster2 (for dual blaster mods)
launcher
Golan (because its so big and would clip if attached to the launcher tag)
 keshire
03-10-2004, 7:33 AM
#17
 Azrael666
03-10-2004, 6:11 PM
#18
Will this make it so that if you use two sabers but select to use a single saber style, one remains at your side instead of being deactivated in your left hand?

I see some have multiple weapons on, like saber or guns in hand and others holstered in the examples, will that be incorporated ingame? If so can we control what is visible, I dont want to walk around with the flechette ill never use on my back, but dont mind carrying the disintergrator rifle or pistol?
 razorace
03-10-2004, 9:31 PM
#19
Originally posted by Azrael666
Will this make it so that if you use two sabers but select to use a single saber style, one remains at your side instead of being deactivated in your left hand?

I see some have multiple weapons on, like saber or guns in hand and others holstered in the examples, will that be incorporated ingame? If so can we control what is visible, I dont want to walk around with the flechette ill never use on my back, but dont mind carrying the disintergrator rifle or pistol?

Right now, neither. However, both ideas might be something we can impliment in the future.
 LightNinja
03-11-2004, 12:26 PM
#20
Mmmh, i've added saber and saber2 to the rockettrooper model i converted to playable, but how i try them, with a mod?:confused:
 razorace
03-11-2004, 5:04 PM
#21
You're going to have to either compile the lastest version of the Basic Code or wait for us to release a beta of it for you.
 LightNinja
03-12-2004, 12:33 PM
#22
or send it to kesire?
 razorace
03-12-2004, 6:13 PM
#23
Originally posted by LightNinja
or send it to kesire?

eh? What do you mean?
 keshire
03-13-2004, 2:34 AM
#24
Send it to me to work on? No thank you, I've got enough on my plate as it is.
 razorace
03-13-2004, 7:01 AM
#25
Originally posted by keshire
Send it to me to work on? No thank you, I've got enough on my plate as it is.

exactly.
 LightNinja
03-13-2004, 9:01 AM
#26
eh? What do you mean?
Send it to me to work on? No thank you, I've got enough on my plate as it is.
Mmmh, i think you misunderstood me, i meant send him the model , the glm to try it ingame because he have the mod/code; not to finish it or to work more, just for try it and see if the new tags work good and all. But if you have to do more work than put the .pk3 in base i won't send it to you, sure.

Also, to make the new tags invisible in normal mp i have to surf them off?
 keshire
03-13-2004, 9:27 AM
#27
Mmmh, i think you misunderstood me, i meant send him the model , the glm to try it ingame because he have the mod/code; not to finish it or to work more, just for try it and see if the new tags work good and all. But if you have to do more work than put the .pk3 in base i won't send it to you, sure.

k, here's the way to check how they'll move and look in-game.

open your model in modview
under tags
find the holster tags
right-click, bolt model
search for a suitable weapon model

wala, that is how it'll look in-game.

Also tags never show up in-game no matter how many you add. So no you won't have to mess with the skin file or surfaces.
 LightNinja
03-13-2004, 9:46 AM
#28
better ill wait you to release your .xsi example :p
 keshire
03-13-2004, 10:18 AM
#29
Post an email, I have it for whoever wants it. MAX 4.2, XSI, and GLM choose your poison.

It'll have to wait till monday though because I'm on my way out of work.
 LightNinja
03-13-2004, 11:35 AM
#30
danadn1507@lycos.com
If 3dsmax 5 sp 1 can open 4.2.maxes send me the max. but if not the xsi
 LightNinja
03-18-2004, 7:49 PM
#31
Originally posted by keshire
It'll have to wait till monday though because I'm on my way out of work.
Did you send it? well anyway im still waiting
 Vouksh
03-20-2004, 6:01 AM
#32
ok i have 3ds max 6, milkshape 3d, and gmax. i ATTEMPTED to add 1 tag for the saber holster called *saber1 and its ALL screwed up. can i email some one my .glm file, and they just put a saber staff on the back (diagonal) and a saber tag on each side, then put it at least into a .md3? it would be SO kool of you to do so. i tried doing it myself, but like i said, i wasn't pretty.

if you can tell me, step by step, how to do it, that would be even better (im a hands on type person) so please help me any way possible.

btw my e-mail is jack1989@earthlink.net
 Noxrepere
03-23-2004, 9:22 PM
#33
Keshire you said you were reweighting the models to add the tags.

This mod here seems to have somehow adjusted something so that the weapons appear on the back without any reweighting.

Ninja Mod (http://www.jk2files.com/file.info?ID=24214)

Maybe the same thing could be applied to the existing models so that you won't have to reweight all of them.

I'm not really familiar with the code or anything, so these ideas might not work, but I thought I'd give these suggestion incase they are feasible.

Maybe it could be set up so that the weapons display in a manner similar to this mod by default. The first saber and second saber could default to their respective places on the hips as well as the saber staff on the back.

What weapons are enabled to display by default would need to be decided. You wouldn't want all possible models displaying at the same time similar to the models you've already set up.

Then have the code possibly check the models for the new tags you've created. So basically it will put the sabers on the hips and staff on the back by default, but if someone making their model wants to have the sabers (and other weapons) positioned somewhere specific, they would apply the new tags and they would override the default positions. (That's kind of the part that I don't know whether it's possible or not.)

This way old models wouldn't neccesarily have to be reweighted unless you wanted to do some specific tag placement with them (i.e. the Chewbacca you reweighted having the bowcaster on his back rather than the saber staff.)

Also, you've mentioned the problems with having swords and other weapons showing up on the hips because of clipping issues.
Since that's pretty much only a problem that you would have with weapons that are large and most likely bounce off of surfaces, would it be possible to have the code scan the ".sab" file for the weapon for the line that determines whether or not the weapon bounces off of surfaces. Then set it up so that if it's a pass through weapon (lightsabers) it appears on the hips and if it will bounce off surfaces it will appear on the back.

Again, I'm not familiar with the code or anything so I don't know if that's even possible or if that would require access to the engine code.:(

I think that was the basics of my idea. I'm interested to see whether or not any part of that would be applicable. It seems that it would definately lighten the work load, as well as enable the visible weapons on older custom models where the authors may not go back to add the proper tags.
 razorace
03-24-2004, 2:28 AM
#34
Yeah, we already had that idea, it's just that it would take a lot more coding work (with a bunch of yucky vector math) on my part and I am a bit sick of messing with it after doing the sections that I already did.

I already talked to the coder for ninja mod about his code and he said that he lost his. I beleive him.

So, basically, you're stuck with the current system unless you find another coder to do it or wait for me to finish it when I feel like it.

Sorry, it's just that if I spent all my time doing what other people requested, I'd never have any time to work on anything that I want to work on....or sleep/eat/etc.
 Noxrepere
03-24-2004, 4:27 AM
#35
Yeah, I understand where you're coming from. :)

It would be nice to see it someday, but it's just a cosmetic detail anyways so I can understand wanting to focus in on some more important issues and features.

Like I said, I am not very familiar with the code at all so I had/have no real idea how much work it really would be to get something like that up and running.

Maybe someone will be able to pick it up sometime.

Thanks for your response.:)
 LightNinja
03-26-2004, 12:48 PM
#36
hehe, nice, just forget the knees, it is fixed
http://server5.uploadit.org/files/danadn-roc.jpg)
edit:doh, image code is off
 Vouksh
03-26-2004, 9:33 PM
#37
alright, i give up!!!!!! I've looked at like 20 different tutorials, and NONE HELPED! no matter what, carcass gives me an error, whether weighting, Heirharchy, or animations:swear:!!!!!! :freakout:

Chesire, can you send me the Max and the .glm? i could really use them right now. :compcry:
 razorace
03-27-2004, 1:36 AM
#38
I beleive Keshire sent me a xsi example that I'm suppose to put on the repository. I'll double check with him and see if I can get that up for you guys to check out.
 keshire
03-27-2004, 2:49 AM
#39
ya load that sucker up. The xsi is the important part. It keeps the tag names and is compatible with anything that can import xsi. The glm is just an in-game example. viewable with modview.

Also I'd recommend not using the JKA carcass. Its givin me nothing but problems. Use the older version from the JKO tools. I also never use assimilate, prefering command line myself.
 Vouksh
03-27-2004, 4:23 AM
#40
:( 3ds Max 6 doesnt have a compatible .xsi importer :( so the only real usefull thing is the .max file, so i can import my model, scale it, then export it to an xsi then run carcass on it. so if you could put the .max file up Razor, that would be awesome. as i said, i tried doing this myself, but to no avail

(it doesn't exactly help being only 15)
 keshire
03-27-2004, 4:33 AM
#41
Well I guess I can do some trouble shooting.

First your not actually naming it "*whatever" correct?

all tags should be "bolt_whatever". the "bolt_" part gets stripped when anything gets converted to glm.

Otherwise what errors are you having exactly?
 Vouksh
03-27-2004, 5:18 PM
#42
heh, i wasn't naming it "bolt_saber" or "bolt_staff" i was naming them "*staff" or "*holster_staff" heh.

but it keeps saying that a part is not weighted, but when i go into 3Dmax it shows it is when i go to the "edit Envelope" its weighting set to 1 for all verts.

and im basically a skinner but im trying my hand at modeling. i figured adding a few tags would be simple, but i found that modelling is all BUT simple

it makes me rate things just a little higher.
 Vouksh
04-02-2004, 5:27 AM
#43
I gave up on the Player Model thing. not 4 me. but i am a (not very good) saber modeler.

ok so can you guys add a saber style (like SABER_SINGLE or SABER_STAFF) called SABER_CLAW? because I made some awesome Claws and on that Malak model they go through the leg. I would like to be able to use them properly in that way (putting them away).
 keshire
04-02-2004, 5:33 AM
#44
There already is a SABER_CLAW. But I don't think it works. Other than that, you'll have to wait until the code is expanded upon to prevent that.
 razorace
04-02-2004, 5:25 PM
#45
Yeah, the code isn't completed for the SABER_CLAW stuff.
 Noxrepere
04-12-2004, 6:14 AM
#46
I was trying the new tags on my model to see how everything looks and it's great.:) It's fun running around with extra weapons holstered everywhere.

One thing I noticed that looks kind of odd is having the EMP gun using the blaster tag. That gun is so much bigger than the blaster that it makes it really hard to place the tag. If I put the tag close enough to the body for the blaster to look natural, when I pick up the EMP it clips into the body.

Perhaps it should either have its own tag or join the group of the other guns.

I also had an occurance where the EMP appeared on both the blaster rifle tag and the blaster pistol tag. I don't know how it happened though, so I can't give any symptoms.:( Sorry.

Other than that though, it looks great.:D
 razorace
04-12-2004, 5:00 PM
#47
hmmm, well, we can probably fix that.
 LightNinja
04-12-2004, 5:15 PM
#48
i hope you dont fix that because look at the screenshot i put before, i think that weapon is simple to place than the other.
 Noxrepere
04-12-2004, 9:22 PM
#49
Originally posted by LightNinja
i hope you dont fix that because look at the screenshot i put before, i think that weapon is simple to place than the other.

Are you talking about this picture?
http://server5.uploadit.org/files/danadn-roc.jpg)

Maybe ultimately it would be best to have separate tags for all the weapons so the modelers have full control over which weapons are displayed and they can leave weapons out that they don't want to display or that wouldn't display well.

I was just saying that on the model I was trying it on, I got the Blastech to display so that it looks like it's on the belt, but if it gets swapped with the EMP then it clips into the torso.

How did you have it positioned LightNinja? Where is the EMP in that picture anyways? I think I know where it is but I want to know for sure. :)
 The_G.I.
04-14-2004, 3:08 PM
#50
:fett: Will These be in the next OJp enhanced release?:bdroid2: :confused: :trooper: :mob: :speeder: :newbie:
Page: 1 of 2