Forum Archive

Go Back   3D Realms Forums > 3D Realms Topics > Duke Nukem > Duke Nukem 3D Modifications
Blogs FAQ Community Calendar

Notices

 
 
Thread Tools
Old 08-21-2008, 12:18 PM   #1
soulmate

soulmate's Avatar
HRP: Lefthand models?
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?
__________________
Nobody steals our chicks and lives !
soulmate is offline  
Old 08-21-2008, 12:26 PM   #2
DeeperThought

DeeperThought's Avatar
Re: HRP: Lefthand models?
Quote:
Originally Posted by soulmate View Post
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?
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.
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
DeeperThought is offline  
Old 08-21-2008, 01:46 PM   #3
soulmate

soulmate's Avatar
Re: HRP: Lefthand models?
sounds interesting... where do I have to type that parameter down ?
__________________
Nobody steals our chicks and lives !
soulmate is offline  
Old 08-21-2008, 01:49 PM   #4
XTHX2

XTHX2's Avatar
Re: HRP: Lefthand models?
Probably in the HRP pack's definition file for weapon models, although it will be better if someone else helps you
XTHX2 is offline  
Old 08-21-2008, 02:00 PM   #5
DeeperThought

DeeperThought's Avatar
Re: HRP: Lefthand models?
Quote:
Originally Posted by soulmate View Post
sounds interesting... where do I have to type that parameter down ?
EXAMPLE:


Code:
 
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.
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
DeeperThought is offline  
Old 08-21-2008, 02:12 PM   #6
Plagman

Plagman's Avatar
Re: HRP: Lefthand models?
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.
__________________
EDuke32 - "The corrupt doctrine of terror has begun."
Plagman is offline  
Old 08-21-2008, 02:33 PM   #7
DeeperThought

DeeperThought's Avatar
Re: HRP: Lefthand models?
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.
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
DeeperThought is offline  
Old 08-21-2008, 02:59 PM   #8
NightFright

NightFright's Avatar
Re: HRP: Lefthand models?
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.
NightFright is offline  
Old 08-21-2008, 03:01 PM   #9
DeeperThought

DeeperThought's Avatar
Re: HRP: Lefthand models?
Quote:
Originally Posted by NightFright View Post
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.
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
DeeperThought is offline  
Old 08-22-2008, 12:12 AM   #10
blizzart

blizzart's Avatar
Re: HRP: Lefthand models?
Doesn´t the Commander uses left-hand weapon models in his Stargate TC?
blizzart is offline  
Old 08-22-2008, 12:40 AM   #11
The Commander

The Commander's Avatar
Re: HRP: Lefthand models?
Quote:
Originally Posted by blizzart View Post
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.
__________________
I Know Everything There Is To Know About Anything.

Duke Nukem Red Alert SVN

Ask Me Anything!
The Commander is offline  
Old 08-22-2008, 08:47 AM   #12
soulmate

soulmate's Avatar
Re: HRP: Lefthand models?
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
__________________
Nobody steals our chicks and lives !
soulmate is offline  
Old 08-22-2008, 09:10 AM   #13
XTHX2

XTHX2's Avatar
Re: HRP: Lefthand models?
Quote:
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...
XTHX2 is offline  
Old 08-22-2008, 10:46 AM   #14
soulmate

soulmate's Avatar
Re: HRP: Lefthand models?
Quote:
Originally Posted by XTHX2 View Post
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
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
__________________
Nobody steals our chicks and lives !
soulmate is offline  
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 12:27 PM.

Page generated in 0.13753009 seconds (100.00% PHP - 0% MySQL) with 16 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

Website is ©1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.