PDA

View Full Version : display weapons on body?


E.Mk
12-21-2004, 04:03 AM
Is it possible to display the weapons on the model's body?

LIke have a holster which will be part of the thigh mesh, but if you pick up a pistol and a shotgun, and choose to use the shotgun, the pistol would appear on the holster, and when you switch weapons, the shotgun would like, go over the shoulder, and the gun in the holster would disappear from the thigh(but appear in the hand)?

I want to try and create a some sort of a lone commando model... where the weapons you pick up would be visible on his body at all times, either in hand(s) when you are using them, or on your body if you have them but haven't equipped them.

The thing is that each weapon would go in a different place on the body(e.g. shotgun on the back over the shoulders, pistol on thigh, etc.

cursed
12-21-2004, 05:13 AM
Yeah, it's possible. You'd make each weapon a skinitem which you'd turn on and off based on which gun was in your hand.
Stratonace is incorporating a similar technique into Rogue Ops.

E.Mk
12-22-2004, 04:28 AM
You know, I always had the desire to have the weapons available on the body in games because there are times where you can carry around a shotgun the entire game.... but when a cutscene kicks in, the player(You) are either carrying the default weapon(usually a pistol) or is emptyhanded. I never would've thought that this was capable in Max Payne 2 until I started to see screenshots of Rogue Ops.

Just to recap... For every weapon, I should

Create the weapon

Create skin_item(for display purposes only)?

Now, will this affect the entire game, e.g. if an enemy also have 2-3 weapons, will they have the skin_item applied to them?

StratonAce
12-22-2004, 06:53 AM
I'm getting ready to head into work right now and have little time, but when I get home this evening I'll write something up for you. Well, if no one else has helped you by then. http://forums.3drealms.com/ubbthreads/images/graemlins/wink.gif

Rico
12-22-2004, 12:56 PM
I helped StratonAce implement this into Rogue Ops, I think I went into a lot of detail describing how to do it so here are the relevant links:

http://forums.3drealms.com/ubbthreads/sh...true#Post721885 (http://forums.3drealms.com/ubbthreads/showflat.php?Cat=0&Board=max2mods&Number=721885&Searchpage=2&Main=710434&Words=weapon+specific+weapon+switching&topic=&Search=true#Post721885) (StratonAce's question topic + answer)

My Journal with the original tutorial:

http://journals.maxpaynedev.com/user/Rico


Look for "weapon specific modeswitching" or something along those lines.

Hope that helps.