AlliedModders

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

Mr.Noobie 08-26-2009 03:15

Invisible
 
Is it possible to let player to see their teammate at 70% when they are invisible. ?

But enemy can't see.

hleV 08-26-2009 07:44

Re: Invisible
 
Yes.

Mr.Noobie 08-26-2009 09:46

Re: Invisible
 
Quote:

Originally Posted by hleV (Post 913413)
Yes.

How can help me ?

Mr.Noobie 08-29-2009 01:17

Re: Invisible
 
Sorry for the double posting.

Can someone show me how ?

hzqst 08-29-2009 02:23

Re: Invisible
 
PHP Code:

    set_es(es_handle,ES_RenderMode,kRenderTransTexture)
    
set_es(es_handle,ES_RenderAmt,0


Mr.Noobie 08-29-2009 02:56

Re: Invisible
 
Quote:

Originally Posted by hzqst (Post 916311)
PHP Code:

    set_es(es_handle,ES_RenderMode,kRenderTransTexture)
    
set_es(es_handle,ES_RenderAmt,0


How to use it ?

Like this :

PHP Code:

if ( user_aliveid ) & get_user_zombieid )
{
           ( 
es_handleES_RenderModekRenderTransTexture )
           
set_eses_handleES_RenderAmt70 )
 } 


hzqst 08-29-2009 05:14

Re: Invisible
 
PHP Code:

register_forward(FM_AddToFullPack,"fw_AddToFullPack_Post",1

PHP Code:

public fw_AddToFullPack_Post(es_handle,e,ent,host,hostflags,player,pSet){
 if(!
playerFMRES_IGNORED
//the code
//host = id
//ent = the entity you saw
 
return FMRES_IGNORED



Mr.Noobie 08-29-2009 05:34

Re: Invisible
 
Quote:

Originally Posted by hzqst (Post 916391)
PHP Code:

register_forward(FM_AddToFullPack,"fw_AddToFullPack_Post",1

PHP Code:

public fw_AddToFullPack_Post(es_handle,e,ent,host,hostflags,player,pSet){
 if(!
playerFMRES_IGNORED
//the code
//host = id
//ent = the entity you saw
 
return FMRES_IGNORED




I don't understand. :(

Here is the code:

PHP Code:

/*================================================================================
 
    -----------------------------------
    -*- [ZP] Class : asdsadadad -*-
    -----------------------------------
 
    ~~~~~~~~~~~~~~~
    - Description -
    ~~~~~~~~~~~~~~~
 
    asddasdsads.
 
================================================================================*/
#include <amxmodx>
#include <zombieplague>
#include <fun>
 
new g_zclass_asdsa
 
new const zclass_name[] = { "asdsa" }
new const 
zclass_info[] = { "asd" }
new const 
zclass_model[] = { "asd" }
new const 
zclass_clawmodel[] = { "v_knife_bloody.mdl" }
const 
zclass_health 1500
const zclass_speed 270
const Float:zclass_gravity 1.0
const Float:zclass_knockback 1.0
 
public plugin_init()
{
        
register_plugin"[ZP] Class : asd""1.0""asd" )
        
register_forwardFM_AddToFullPack"fw_AddToFullPack_Post")  
}
 
public 
plugin_precache()
{
 
g_zclass_asdsa zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback)
}
 
public 
zp_user_infected_postidinfector )
{
 if ( 
zp_get_user_zombie_classid ) == g_zclass_asdsa )
 {
             
set_user_renderingidkRenderFxGlowShell000kRenderTransAlpha)
 }
}

public 
fw_AddToFullPack_Postes_handleeent,hosthostflagsplayerpSet )
{
    if ( !
player FMRES_IGNORED
    
es_handleES_RenderModekRenderTransTexture )
    
set_eses_handleES_RenderAmt70 )
    return 
FMRES_IGNORED


Like this ?

Mr.Noobie 08-29-2009 22:24

Re: Invisible
 
Help please.

hzqst 08-29-2009 22:55

Re: Invisible
 
PHP Code:

public fw_AddToFullPack_Postes_handleeent,hosthostflagsplayerpSet )
{
    if ( !
player FMRES_IGNORED
    
if(get_user_team(host) == get_user_team(ent) && get_user_zombie(ent)){
      ( 
es_handleES_RenderModekRenderTransTexture )
      
set_eses_handleES_RenderAmt70 )
    }
    return 
FMRES_IGNORED




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

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