PDA

View Full Version : HRP: Lefthand models?


soulmate
08-21-2008, 01:18 PM
Hi there, I know there is a HRP discussion thread where this question maybe belongs, but I think it would quickly slide into oblivion if I asked it there...so mercy me, please. Anyway, here's the question:
I'm lefthanded in real life, and wish I could be in duke life also :-)
So is there a way to make the weapon models lefthanded for duke? I thought about simply mirroring the models, shouldn't be too hard a task, but I don't have the right tools for that...any experts here who could help me with that? :cool:

DeeperThought
08-21-2008, 01:26 PM
Hi there, I know there is a HRP discussion thread where this question maybe belongs, but I think it would quickly slide into oblivion if I asked it there...so mercy me, please. Anyway, here's the question:
I'm lefthanded in real life, and wish I could be in duke life also :-)
So is there a way to make the weapon models lefthanded for duke? I thought about simply mirroring the models, shouldn't be too hard a task, but I don't have the right tools for that...any experts here who could help me with that? :cool:

There's a model def parameter, -flipped, which would be useful for that. However, I don't think it would be quite as simple as just adding that parameter to the hud defs for all the weapons. You would also have to adjust their positioning. Still easier than modifying the models themselves, though.

soulmate
08-21-2008, 02:46 PM
sounds interesting... where do I have to type that parameter down ?

XTHX2
08-21-2008, 02:49 PM
Probably in the HRP pack's definition file for weapon models, although it will be better if someone else helps you :p

DeeperThought
08-21-2008, 03:00 PM
sounds interesting... where do I have to type that parameter down ?

EXAMPLE:



model "highres/sprites/firstperson/2530_clip.md3" {
scale 1.9
skin { pal 0 file "highres/sprites/pickups/0040_pistolammo.jpg" }
frame { name "idle" tile0 2530 tile1 2531 }
hud { tile 2530 xadd -0.48 yadd 0.7 zadd -0.48 angadd -37 flipped }
}


That is one of the definitions that I use for the left pistol in Duke Plus's akimbo pistols. Those number will probably not be good for a single left pistol, but you see where to put the command at least.

Plagman
08-21-2008, 03:12 PM
You can't just flip the models of the HRP by adding those DEF lines, though. You'll also need to write some CON code to display the weapon sprites with an angle of 1024 and the y-flipping flag.

DeeperThought
08-21-2008, 03:33 PM
That's true, and in fact that makes it much more difficult, because it means that you have to cancel the hardcoded pistol display and recreate the left-handed version with rotatesprite and other commands.

Hey, I'm left-handed too, and it doesn't bother me that Duke is right-handed.

NightFright
08-21-2008, 03:59 PM
Problem is some models are not actually replacing the sprites, they are just displayed on top of them. This is sometimes used in a combined way, e.g. the chaingun: While the model covers the weapon sprite, you can still see the old muzzleflashes when you are firing. If you flip the weapon, those flashes would still be where they are while the model is too far on the left side. You might also see part of the old weapon sprite, then (unless it has been replaced by a practically invisible 1x1 replacement sprite via defs). You see, it's not as easy as it could/should be.

DeeperThought
08-21-2008, 04:01 PM
Problem is some models are not actually replacing the sprites, they are just displayed on top of them.

Which is yet another reason why CON code would be required.

blizzart
08-22-2008, 01:12 AM
Doesn´t the Commander uses left-hand weapon models in his Stargate TC?

The Commander
08-22-2008, 01:40 AM
Doesn´t the Commander uses left-hand weapon models in his Stargate TC?

Yes I do, but the models them selfs are left hand. Not right.

soulmate
08-22-2008, 09:47 AM
I tried that flipped parameter for the pistol, but it dnd't work..the gun still looked the same.
@commander: how did you make your lefthand models? I downloaded Milkshape3d and tried to mirror them..in the editor it worked, but in gmae it does not...the old weapon sprite will be drawn there :(

XTHX2
08-22-2008, 10:10 AM
the old weapon sprite will be drawn there

Sprite or model? It matters a lot since you might have screwed your def file for the model...

soulmate
08-22-2008, 11:46 AM
Sprite or model? It matters a lot since you might have screwed your def file for the model...

The SPRITE is drawn there..the old ugly shotgun sprite :D
The problem was when I wanted to export the mirrored model again, milkshape asked me for the .qc file for the model...I used the built-in compiler in milkshape but it dind't work...sorry, I am nood goog at modelling :D