Raised This Month: $ Target: $400
 0% 

How to see teammate in 75% when invisible ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zombieplague
Veteran Member
Join Date: Apr 2009
Old 10-11-2009 , 03:31   How to see teammate in 75% when invisible ?
Reply With Quote #1

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)
 }

zombieplague is offline
Jon
Veteran Member
Join Date: Dec 2007
Old 10-11-2009 , 05:45   Re: How to see teammate in 75% when invisible ?
Reply With Quote #2

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 );

Last edited by Jon; 10-11-2009 at 05:49.
Jon is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 10-11-2009 , 05:59   Re: How to see teammate in 75% when invisible ?
Reply With Quote #3

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.
zombieplague is offline
Jon
Veteran Member
Join Date: Dec 2007
Old 10-11-2009 , 06:02   Re: How to see teammate in 75% when invisible ?
Reply With Quote #4

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?
Jon is offline
vitorrd
Senior Member
Join Date: Jul 2009
Old 10-11-2009 , 06:19   Re: How to see teammate in 75% when invisible ?
Reply With Quote #5

Quote:
Originally Posted by Jon View Post
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.
vitorrd is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 10-11-2009 , 07:45   Re: How to see teammate in 75% when invisible ?
Reply With Quote #6

Ya i did but none of them work ?
zombieplague is offline
vitorrd
Senior Member
Join Date: Jul 2009
Old 10-11-2009 , 08:09   Re: How to see teammate in 75% when invisible ?
Reply With Quote #7

You should check the semiclip algorithms, they use AddToFullPack for partial invisibility.
vitorrd is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 10-12-2009 , 01:42   Re: How to see teammate in 75% when invisible ?
Reply With Quote #8

ya but i don't know how to do like only teammate can see ?
zombieplague is offline
vitorrd
Senior Member
Join Date: Jul 2009
Old 10-12-2009 , 08:27   Re: How to see teammate in 75% when invisible ?
Reply With Quote #9

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.
vitorrd is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 10-13-2009 , 22:12   Re: How to see teammate in 75% when invisible ?
Reply With Quote #10

Quote:
Originally Posted by vitorrd View Post
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.
zombieplague is offline
Old 10-15-2009, 20:09
zombieplague
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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