720 {
721 float int_value = transform1.param3;
723 {
724 int_value = vector.Distance( transform1.param1, transform2.param1 ) / int_value;
725 }
726 PlayerBase p;
727 float pQuat[4];
728 int b_index;
729 if ( transform1.param6 > -1 )
730 {
732 if ( p )
733 {
734 b_index = p.GetBoneIndexByName( "LeftHand_Dummy" );
736 }
737 }
738 else
739 {
740 m_Camera1.SetPosition( transform1.param1 );
741 m_Camera1.SetOrientation( transform1.param2 );
743 }
744 m_Camera1.SetFOV( transform1.param4 * Math.DEG2RAD );
746
747 if ( transform2 )
748 {
749 if ( transform2.param6 > -1 )
750 {
751 pQuat[4];
753 if ( p )
754 {
755 b_index = p.GetBoneIndexByName( "LeftHand_Dummy" );
756 if ( b_index != -1 )
757 {
758 m_Camera2.SetPosition( p.GetBonePositionWS( b_index ) );
759
760 p.GetBoneRotationWS( b_index, pQuat);
761 vector v = Math3D.QuatToAngles( pQuat );
767 }
768 }
769 }
770 else
771 {
772 m_Camera2.SetPosition( transform2.param1 );
773 m_Camera2.SetOrientation( transform2.param2 );
774 }
775
776 m_Camera2.SetFOV( transform2.param4 * Math.DEG2RAD );
778 }
779
780 return int_value;
781 }
float fixAngle_180_180(float pAngle)
proto string ToString(bool beautify=true)
Vector to string.