The Weapon Shoot Position is the player's eyes IIRC.

http://svn.alliedmods.net/viewvc.cgi/hl2sdk/cl_dll/fx_tracer.cpp?root=sourcemm&view=markup

See GetTracerOrigin

garry

On 7/26/07, Janek Le_Vert <[EMAIL PROTECTED]> wrote:
Normally the bullet start at pPlayer->Weapon_ShootPosition() with
pOwner->GetAutoaimVector angles.
Tracer effect are using this inputs.
It is what I understood.

>From: "Garry Newman" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: Re: [hlcoders] Muzzle Origin in Third Person vs ViewModel
>Date: Thu, 26 Jul 2007 09:46:22 +0100
>
>The bullet start point is never really starts at the muzzle. It
>usually starts from the player's eye angles.
>
>The illusion of it being created from the muzzle is done by the tracer
>effect. The start position of the tracer is drawn coming from the
>viewmodel attachment if it was fired by the local player, if not it's
>drawn from the world model attachment.
>
>Is that what you mean? The tracer effect?
>
>garry
>
>On 7/26/07, Keeper <[EMAIL PROTECTED]> wrote:
>>I am currently working on a mod where we have new player models and
>>weapons.
>>The problem we are having is when I use the muzzle point on the weapons,
>>it
>>works great in viewmodel mode.  When we switch to third person or see
>>other
>>players on the server shoot, the bullets are not aligned properly with the
>>muzzle.
>>
>>Has anybody else come across this issue?  Being a coder, I have looked at
>>everything I know and have come to the conclusion that the viewmodel and
>>the
>>world model are not aligned properly.  But honestly, I'm at a loss for a
>>cause or a fix.
>>
>>Any insight would be appreciated!
>>
>>TIA,
>>Keeper
>>
>>
>>
>>_______________________________________________
>>To unsubscribe, edit your list preferences, or view the list archives,
>>please visit:
>>http://list.valvesoftware.com/mailman/listinfo/hlcoders
>>
>>
>
>_______________________________________________
>To unsubscribe, edit your list preferences, or view the list archives,
>please visit:
>http://list.valvesoftware.com/mailman/listinfo/hlcoders
>

_________________________________________________________________
Avec Windows Live OneCare éliminez tous les virus de votre PC !
http://www.windowslive.fr/liveonecare/default.asp


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to