I have also replace all the mins/maxs with origin and no go ....

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Yacketta,
Ronald
Sent: Saturday, January 05, 2002 2:08 PM
To: [EMAIL PROTECTED]
Subject: RE: [hlcoders] Items.cpp (MyTouch)


Ok,

I am definatly missing something here...

I have the following In the code

                MESSAGE_BEGIN( MSG_PVS, SVC_TEMPENTITY, pev->origin );
                        WRITE_BYTE( TE_BOX);
                        WRITE_COORD( pev->mins.x );
                        WRITE_COORD( pev->mins.y );
                        WRITE_COORD( pev->mins.z );
                        WRITE_COORD( pev->maxs.x );
                        WRITE_COORD( pev->maxs.y );
                        WRITE_COORD( pev->maxs.z );
                        WRITE_SHORT( 25 );
                        WRITE_BYTE( 62  ); 
                        WRITE_BYTE( 33  ); 
                        WRITE_BYTE( 211 );
                MESSAGE_END();

                MESSAGE_BEGIN( MSG_PVS, SVC_TEMPENTITY, pev->origin );
                        WRITE_BYTE( TE_SMOKE );
                        WRITE_COORD( pev->origin.x );
                        WRITE_COORD( pev->origin.y );
                        WRITE_COORD( pev->origin.z );
                        WRITE_SHORT( g_sModelIndexSmoke );
                        WRITE_BYTE( 100 ); // scale * 10
                        WRITE_BYTE( 10  ); // framerate
                MESSAGE_END();


The TE_SMOKE is working fine, but I do not see the TE_BOX at all :(

-Ron

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Yacketta,
Ronald
Sent: Saturday, January 05, 2002 1:54 PM
To: [EMAIL PROTECTED]
Subject: RE: [hlcoders] Items.cpp (MyTouch)


Ok, I took the example from other code in the SDK that shows the use Of
the MESSAGE_BEGIN with TE_'s as such..

MESSAGE_BEGIN( MSG_PVS, SVC_TEMPENTITY, pev->origin );


I wil give your way a whirl right now.. Thanxs for the help!!!!!!!!


-Ron


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Adrian Finol
Sent: Saturday, January 05, 2002 1:47 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [hlcoders] Items.cpp (MyTouch)


 Actually, I just noticed, you're sending the TE to pev->origin. Thats
whats crashing you. Should be only pev.

- Adrian


-----Original Message-----
From: Adrian Finol [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 05, 2002 12:40 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [hlcoders] Items.cpp (MyTouch)


 Of course. BBoxes are vectors. You want something like this:

                MESSAGE_BEGIN( MSG_PVS, SVC_TEMPENTITY, pev->origin );
                        WRITE_BYTE( TE_BOX);
                        WRITE_COORD( mins.x );
                        WRITE_COORD( mins.y );
                        WRITE_COORD( mins.z );
                        WRITE_COORD( maxs.x );
                        WRITE_COORD( maxs.y );
                        WRITE_COORD( maxs.Z );
                        WRITE_SHORT( 25 );
                        WRITE_BYTE( 255  ); 
                        WRITE_BYTE( 255  ); 
                        WRITE_BYTE( 255 );
                MESSAGE_END();


- Adrian


-----Original Message-----
From: Yacketta, Ronald [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 05, 2002 12:33 PM
To: [EMAIL PROTECTED]
Subject: RE: [hlcoders] Items.cpp (MyTouch)


Found it ;)

But it crashes...


                MESSAGE_BEGIN( MSG_PVS, SVC_TEMPENTITY, pev->origin );
                        WRITE_BYTE( TE_BOX);
                        WRITE_COORD( pev->origin.x );
                        WRITE_COORD( pev->origin.x);
                        WRITE_SHORT( 25 );
                        WRITE_BYTE( 255  ); 
                        WRITE_BYTE( 255  ); 
                        WRITE_BYTE( 255 );
                MESSAGE_END();

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Yacketta,
Ronald
Sent: Saturday, January 05, 2002 12:48 PM
To: [EMAIL PROTECTED]
Subject: RE: [hlcoders] Items.cpp (MyTouch)


Lad you know what your talking about.. I sure in the heck don't ;)

-Ron

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Adrian Finol
Sent: Saturday, January 05, 2002 7:53 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [hlcoders] Items.cpp (MyTouch)


#define TE_BOX                          31
// coord, coord, coord          boxmins
// coord, coord, coord          boxmaxs
// short life in 0.1 s
// 3 bytes r, g, b

Use that TempEnt on the server.

- Adrian


-----Original Message-----
From: Yacketta, Ronald [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 05, 2002 6:34 AM
To: [EMAIL PROTECTED]
Subject: RE: [hlcoders] Items.cpp (MyTouch)


Thanxs folks!

Another question, I am looking to physically display the FB's
UTIL_SetSize() in the game under
DEBUG conditions. What could I use to display this? Maybe a triapi? Not
sure...

-Ron

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Reedbeta
Sent: Friday, January 04, 2002 9:11 PM
To: [EMAIL PROTECTED]
Subject: Re: [hlcoders] Items.cpp (MyTouch)


> If you are using UTIL_FindEntityByClassname() for "player"....

Or if you're using any other method of locating players.  The point is,
subtract the grenade's origin from the player's origin and take the
length of the resulting vector.

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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