AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   TE_FIZZ (https://forums.alliedmods.net/showthread.php?t=216338)

.Dare Devil. 05-19-2013 16:53

TE_FIZZ
 
Why this message wont do anything?
PHP Code:

message_begin(MSG_PVSSVC_PARTICLE, { 0,0,})
write_byte(TE_FIZZ)
write_short(ent// ive tried with brush entity and player entity, wont work...
write_short(g_sprite2// this g_sprite2 is fine because it works with ohter messages
write_byte(5// ive tried many values here
message_end() 

And as always, thanks!

Arkshine 05-19-2013 18:26

Re: TE_FIZZ
 
This message works for sure since used for bubble effect.

Code:

void CBubbling::FizzThink( void )
{
        MESSAGE_BEGIN( MSG_PAS, SVC_TEMPENTITY, VecBModelOrigin(pev) );
                WRITE_BYTE( TE_FIZZ );
                WRITE_SHORT( (short)ENTINDEX( edict() ) );
                WRITE_SHORT( (short)m_bubbleModel );
                WRITE_BYTE( m_density );
        MESSAGE_END();

        if ( m_frequency > 19 )
                pev->nextthink = gpGlobals->time + 0.5;
        else
                pev->nextthink = gpGlobals->time + 2.5 - (0.1 * m_frequency);
}

So, you should try instead on normal entity and/or with PAS. Last param is dentity.

.Dare Devil. 05-20-2013 07:17

Re: TE_FIZZ
 
Quote:

Originally Posted by Arkshine (Post 1954765)
This message works for sure since used for bubble effect.

Code:

void CBubbling::FizzThink( void )
{
        MESSAGE_BEGIN( MSG_PAS, SVC_TEMPENTITY, VecBModelOrigin(pev) );
                WRITE_BYTE( TE_FIZZ );
                WRITE_SHORT( (short)ENTINDEX( edict() ) );
                WRITE_SHORT( (short)m_bubbleModel );
                WRITE_BYTE( m_density );
        MESSAGE_END();

        if ( m_frequency > 19 )
                pev->nextthink = gpGlobals->time + 0.5;
        else
                pev->nextthink = gpGlobals->time + 2.5 - (0.1 * m_frequency);
}

So, you should try instead on normal entity and/or with PAS. Last param is dentity.

Thanks, i'll try this!


All times are GMT -4. The time now is 16:22.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.