AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to see teammate in 75% when invisible ? (https://forums.alliedmods.net/showthread.php?t=106048)

zombieplague 10-11-2009 03:31

How to see teammate in 75% when invisible ?
 
How to see teammate in 75% when they are invisible ?

PHP Code:

#include <amxmodx>
#include <zombieplague>
#include <fakemeta>
#include <fun>
 
new g_zclass_fzombie
 
new const zclass_name[] = { "Invisible Zombie" }
new const 
zclass_info[] = { "Invisible" }
new const 
zclass_model[] = { "zombie_source" }
new const 
zclass_clawmodel[] = { "v_knife_zombie.mdl" }
const 
zclass_health 1700
const zclass_speed 350
const Float:zclass_gravity 1.0
const Float:zclass_knockback 1.0
 
public plugin_init()
{
        
register_plugin("[ZP] Class : Fast Zombie""1.0""Zombieplague")

 
public 
plugin_precache()
{
 
g_zclass_fzombie zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback)
}
 
public 
zp_user_infected_post(idinfector)
{
 if (
zp_get_user_zombie_class(id) == g_zclass_fzombie)
 {
               
set_user_renderingidkRenderFxGlowShell000kRenderTransAlpha)
 }



Jon 10-11-2009 05:45

Re: How to see teammate in 75% when invisible ?
 
If your team mate is invisible then you can't see him, that is what "invisible" is for.

set_user_rendering( iClient, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 192 );

zombieplague 10-11-2009 05:59

Re: How to see teammate in 75% when invisible ?
 
But i saw some server when own teammates invisibile you can see them.

If i use set_user_rendering( iClient, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 192 );

But enemy also can see ?

I want it like in wolfteam Ghost Wolf.

Jon 10-11-2009 06:02

Re: How to see teammate in 75% when invisible ?
 
I don't like to guess, so let me get this straight: You want to be 100% visible to the enemy (or invisible?) and 75% visible to team mates?

vitorrd 10-11-2009 06:19

Re: How to see teammate in 75% when invisible ?
 
Quote:

Originally Posted by Jon (Post 958413)
I don't like to guess, so let me get this straight: You want to be 100% visible to the enemy (or invisible?) and 75% visible to team mates?

He wants team mates to be able to see him while enemies would not.
What you're looking for, I believe, is FM_AddToFullPack, search the forums and you'll find examples about it.

zombieplague 10-11-2009 07:45

Re: How to see teammate in 75% when invisible ?
 
Ya i did but none of them work ?

vitorrd 10-11-2009 08:09

Re: How to see teammate in 75% when invisible ?
 
You should check the semiclip algorithms, they use AddToFullPack for partial invisibility.

zombieplague 10-12-2009 01:42

Re: How to see teammate in 75% when invisible ?
 
ya but i don't know how to do like only teammate can see ?

vitorrd 10-12-2009 08:27

Re: How to see teammate in 75% when invisible ?
 
As I said, semiclip algorithms use exactly what you're looking for (team transparency). You should check the forums on it, really, there are so many codes using AddToFullPack. Just try it and then you post here if you can't get it.

zombieplague 10-13-2009 22:12

Re: How to see teammate in 75% when invisible ?
 
Quote:

Originally Posted by vitorrd (Post 959684)
As I said, semiclip algorithms use exactly what you're looking for (team transparency). You should check the forums on it, really, there are so many codes using AddToFullPack. Just try it and then you post here if you can't get it.

I try using this but it didn't work.

PHP Code:

register_forwardFM_AddToFullPack"fw_AddToFullPack_Post")

public 
fw_AddToFullPack_Postes_handleeenthosthostflagsplayerpSet ) { 
    if( 
player ) { 
            if( 
get_user_teamhost ) == get_user_teament ) ) { 
                
set_eses_handleES_RenderModekRenderTransTexture ); 
                
set_eses_handleES_RenderAmt70 ); 
            }  
    } 


It didn't work correctly it like even the human also have 70 invisible.


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

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