El contenido de esta página requiere una versión más reciente de Adobe Flash Player.

Obtener Adobe Flash Player

HL1 Client Message Effects

Powered by Drupal

See const.h (HL SDK) for arguments.

Examples:

Beam from edict to edict


            MESSAGE_BEGIN( MSG_BROADCAST, SVC_TEMPENTITY );
            WRITE_BYTE( TE_BEAMENTPOINT );
            WRITE_SHORT( ENTINDEX(pMonster) );
            WRITE_COORD( pEntity->v.owner->v.origin.x );
            WRITE_COORD( pEntity->v.owner->v.origin.y );
            WRITE_COORD( pEntity->v.owner->v.origin.z );
            WRITE_SHORT( g_sModelIndexLaser );
            WRITE_BYTE( 0 ); // frame start
            WRITE_BYTE( 10 ); // framerate
            WRITE_BYTE( 3 ); // life
            WRITE_BYTE( 20 );  // width
            WRITE_BYTE( 0 );   // noise
            WRITE_BYTE( 255 );   // r, g, b
            WRITE_BYTE( 255 );   // r, g, b
            WRITE_BYTE( 255 );   // r, g, b
            WRITE_BYTE( 255 );    // brightness
            WRITE_BYTE( 10 );        // speed
            MESSAGE_END();

Single sequence sprite

                            MESSAGE_BEGIN( MSG_BROADCAST, SVC_TEMPENTITY );
                            WRITE_BYTE( TE_SPRITE );
                            WRITE_COORD( pMonster->v.origin.x );
                            WRITE_COORD( pMonster->v.origin.y );
                            WRITE_COORD( pMonster->v.origin.z );
                            WRITE_SHORT( precached_models[6] );    //index
                            WRITE_BYTE( 10 ); // byte * 0.1
                            WRITE_BYTE( 150 ); // brightness
                            MESSAGE_END();

Green User tracer

            MESSAGE_BEGIN( MSG_BROADCAST, SVC_TEMPENTITY );
                WRITE_BYTE( TE_USERTRACER );
                WRITE_COORD(gunpos.x);
                WRITE_COORD(gunpos.y);
                WRITE_COORD(gunpos.z);
                WRITE_COORD(4*vpoint.x);
                WRITE_COORD(4*vpoint.y);
                WRITE_COORD(16);
                WRITE_BYTE( 10 );
                WRITE_BYTE( 2 );
                WRITE_BYTE( 5 );
            MESSAGE_END();