Debug it?
-------- Original-Nachricht --------
> Datum: Sat, 11 Oct 2008 00:00:03 +0100
> Von: "Luke Smith" <[EMAIL PROTECTED]>
> An: "Discussion of Half-Life Programming" <[email protected]>
> Betreff: Re: [hlcoders] Muzzle flash issue
> Hmm this is odd. The enemy's eject brass is working but not the player.
> Thing is that meens that its getting past
>
> bool bIsLocalPlayer = pPlayer && pPlayer == pOwner;
> if ( bIsLocalPlayer )
>
> otherwise it would go to the else and play the normal ejectbrass which
> the enemy is using so somehow its not actually sending out the effect. So
> I
> cant understand where its messing up. What does the dynamic_cast actually
> do?
>
> this part of the code currently looks like this:
>
>
>
> if ( bIsLocalPlayer )
>
> {
>
> //C_BaseCombatWeapon *pWeapon = GetActiveWeapon();
>
> C_BaseCombatWeapon *pWeapon = dynamic_cast< C_BaseCombatWeapon* >( this );
>
> if ( !pWeapon )
>
> break;
>
> if( pWeapon->GetAttachment( LookupAttachment( "1" ), attachOrigin,
> attachAngles ) )
>
> {
>
> tempents->EjectBrass( attachOrigin, attachAngles, GetAbsAngles(), atoi(
> options ) );
>
> }
>
> }
>
> Its not making any sense to me anyone have any ideas on this?
> _______________________________________________
> 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