AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Disable all effects on specified player (https://forums.alliedmods.net/showthread.php?t=216462)

AngeIII 05-21-2013 12:44

Disable all effects on specified player
 
My problem is that I need some methods to disable all effects on specified players

by "effects" I mean:
glows ( set_user_rendering(tempid, kRenderFxGlowShell, 255, 140, 0, kRenderNormal, 20) of fakemeta.. )

ligthing for example in de aztec ( maybe it is only cl_weather but I'm not sure ).

beampoints and any other effect called by:

Code:

stock Create_TE_Smoke(originSight[3], position[3], iSprite, scale, framerate){
    message_begin( MSG_PVS, SVC_TEMPENTITY, originSight )
    write_byte( TE_SMOKE )
    write_coord( position[0] )            // Position
    write_coord( position[1] )
    write_coord( position[2] )
    write_short( iSprite )                // Sprite index
    write_byte( scale )                    // scale * 10
    write_byte( framerate  )            // framerate
    message_end()
}

Code:

stock Create_TE_EXPLOSION( origin[3], origin2[3], iSprite, scale, frameRate, flags ){

    message_begin( MSG_PVS, SVC_TEMPENTITY, origin )
    write_byte( TE_EXPLOSION )
    write_coord( origin2[0] )            // position (X)
    write_coord( origin2[1] )            // position (Y)
    write_coord( origin2[2]    )            // position (Z)
    write_short( iSprite )                // sprite index
    write_byte( scale )                    // scale in 0.1's
    write_byte( frameRate )                // framerate
    write_byte( flags )                    // flags
    message_end()
}

and any other that called by message_begin ... except maybe for text messages (green,team,..)

maybe it is possible to doesn't show it at specified player.

like this
stop_effects(id)
{
//
message_end(id);
}
or
/* Message flags for set_msg_block() */
#define BLOCK_NOT 0
#define BLOCK_ONCE 1
#define BLOCK_SET 2

alonelive 05-26-2013 09:03

Re: Disable all effects on specified player
 
Interesting!
Is possible to do this with orpheu?

President 05-26-2013 09:08

Re: Disable all effects on specified player
 
FM_AddToFullPack

ConnorMcLeod 05-26-2013 09:27

Re: Disable all effects on specified player
 
dreams

AngeIII 05-26-2013 10:25

Re: Disable all effects on specified player
 
trying with nothing..
Code:

#include <amxmodx>
#include <amxmisc>

#include <fakemeta>

public plugin_init()
{
 register_forward(FM_AddToFullPack, "func_AddToFullPack", 1)
}
 
 
public func_AddToFullPack(es_handle, e, ent, host, hostflags, player, pSet)
{
 return FMRES_SUPERCEDE
}

as about dreams..

what if i will send message buy using msg_one
not msg_all.
and send it for each player, except defined?

President 05-26-2013 10:27

Re: Disable all effects on specified player
 
Quote:

Originally Posted by AngeIII (Post 1958752)
Code:

public func_AddToFullPack(es_handle, e, ent, host, hostflags, player, pSet)
{
 return FMRES_SUPERCEDE
}


WTF?

AngeIII 05-26-2013 10:29

Re: Disable all effects on specified player
 
and what is your advice to use it?

President 05-26-2013 13:32

Re: Disable all effects on specified player
 
PHP Code:

public func_AddToFullPack(es_handleeenthosthostflagsplayerpSet)
     if(
get_es(es_handleES_RenderFx) == kRenderFxGlowShell)
          
set_es(es_handleES_RenderFxkRenderFxNone);
          
// This will remove the glow of all entities 



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

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