Fake Vwep Attachment For Q1 MDL

Discuss programming topics for the various GPL'd game engine sources.
Post Reply
Baker
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Fake Vwep Attachment For Q1 MDL

Post by Baker »

Frame vertex 182 and 183 are two vertexes in the Q1 player model's non-weapon hand when he is using the axe.

Frame vertex 182 is where I'd like to do an attachment test (make him hold a bag or something, hehe).

I'm lacking imagination but any ideas on ...

1) how I can get the X, Y, Z values of vertex 182 and 183 from inside the engine for a current player frame.

I could then calculate the angles using the two points and theoretically render the gun at that location.

I may be able to mentally walk through this myself, but my 3D math skills are weak and slow and the Q1 model format's weirdnesses have so far frustrated me.

I'm thinking that should this work out that a fairly reasonable workaround standard might emerge (QC builtin) to allow more flexibility.

The Feral mod hardcoded all that stuff in the QC, which I don't see as necessary if you can just track vertexes or triangle positions and calculate angles.
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Post by Spike »

would need 3 verts to specify full angles.
DP has some vectorvectors builtin that should do it. basically picks perpendicular vectors.
Error
InsideQC Staff
Posts: 865
Joined: Fri Nov 05, 2004 5:15 am
Location: VA, USA
Contact:

Post by Error »

done:

http://projects.slipgateconstruct.com/i ... _framer%2F

download framer.rar. it assists you in the placement of weapon models on a player.mdl, then exports the offset origin and angle to a file. it's probably hard to understand, but it's all I came up with.

video of the actual mod that uses the exported info here:

http://www.youtube.com/watch?v=0TuohcmfDpA

it does have some problems.
Baker
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Post by Baker »

Error wrote:done:

http://projects.slipgateconstruct.com/i ... _framer%2F

download framer.rar. it assists you in the placement of weapon models on a player.mdl, then exports the offset origin and angle to a file. it's probably hard to understand, but it's all I came up with.

video of the actual mod that uses the exported info here:

http://www.youtube.com/watch?v=0TuohcmfDpA

it does have some problems.
I'm very intrigued by this. Any method that gets the job done works for me.

Thanks Error!
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
gnounc
Posts: 428
Joined: Mon Apr 06, 2009 6:26 am

Post by gnounc »

toldya there was interest.
Post Reply