Raised This Month: $ Target: $400
 0% 

Help with invisibility


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 05-25-2016 , 21:15   Help with invisibility
Reply With Quote #1

My guys, i dont know why i get this bug, when the player is on the ground and stop running/walking, he stay invisibility, but when him use the wallhang, the invisibility dont show, why?

Screenshot: http://imgur.com/J5BoPTf

Sorry, the screen is fcking small, i cant open my paint :@
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 05-25-2016 at 21:16.
EFFx is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 05-26-2016 , 11:47   Re: Help with invisibility
Reply With Quote #2

A smaller picture would be useful.
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-26-2016 , 14:53   Re: Help with invisibility
Reply With Quote #3

or a code
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 05-26-2016 , 14:56   Re: Help with invisibility
Reply With Quote #4

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
A smaller picture would be useful.
Quote:
Originally Posted by Napoleon_be View Post
or a code
Someone can help?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 05-26-2016 at 14:57.
EFFx is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 05-26-2016 , 15:04   Re: Help with invisibility
Reply With Quote #5

Not without the code.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 05-26-2016 , 15:43   Re: Help with invisibility
Reply With Quote #6

Invis:
PHP Code:

new const g_szClassname[ ] = "invisibility"
new Float:g_t_time
new iEnt

public plugin_init()
{
 
iEnt engfuncEngFunc_CreateNamedEntityengfuncEngFunc_AllocString"info_target" ) );
 
 if( 
pev_validiEnt ) )
 {
  
set_peviEntpev_classnameg_szClassname );
  
global_getglb_timeg_t_time );
  
set_peviEntpev_nextthinkg_t_time 0.1 );
  
register_thinkg_szClassname"think_Invisibility" );
 } 
 else 
 {
  
set_task0.1"think_Invisibility", .flags="b" )
 }

PHP Code:

public think_InvisibilityEnt )
{
 if( 
Ent != iEnt )
  return 
FMRES_IGNORED;
  
 
g_t_time += 0.1;
 
entity_set_floatEntEV_FL_nextthinkg_t_time );
 
//set_pev( Ent, pev_nextthink, g_t_time );
 //entity_set_float( Ent, EV_FL_nextthink, get_gametime( ) + 0.1 );
 
 
new iAliveiWeapon;
 for( new 
1<= g_iMaxPlayersi++ )
 {
  
iWeapon get_user_weapon);
  
iAlive is_user_alive);
  
  if( 
iAlive )
  {
   if( ( 
iWeapon == CSW_KNIFE || iWeapon == CSW_SMOKEGRENADE || iWeapon == CSW_TMP) && get_user_team) == )
   {
    new 
Float:fVec], iSpeed;
    
entity_get_vectoriEV_VEC_velocityfVec );
    
iSpeed floatroundvector_lengthfVec ) );
    
    if( 
iSpeed 255 )
    {
      
set_user_renderingikRenderFxNone000kRenderTransAlphaiSpeed );
    } 
    else 
    {
     
set_user_renderingikRenderFxNone000kRenderNormal);
    }
   } 
   else 
   {
    
set_user_renderingikRenderFxNone000kRenderNormal);
   }
  }
 }
 
 return 
FMRES_IGNORED;

And the wallhang is here:
Attached Files
File Type: sma Get Plugin or Get Source (WallHang.sma - 411 views - 4.4 KB)
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 05-26-2016 at 15:49.
EFFx is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 05-26-2016 , 19:55   Re: Help with invisibility
Reply With Quote #7

Anyone?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 05-31-2016 , 08:43   Re: Help with invisibility
Reply With Quote #8

PHP Code:

public think_InvisibilityEnt )
{
 if( 
Ent != iEnt )
  return 
FMRES_IGNORED;
  
 
g_t_time += 0.1;
 
entity_set_floatEntEV_FL_nextthinkg_t_time );
 
//set_pev( Ent, pev_nextthink, g_t_time );
 //entity_set_float( Ent, EV_FL_nextthink, get_gametime( ) + 0.1 );
 
 
new iWeapon;
 for( new 
1<= g_iMaxPlayersi++ )
 { 
  if( 
is_user_alive(i) )
  {

     
iWeapon get_user_weapon);
    if( ( 
iWeapon == CSW_KNIFE || iWeapon == CSW_SMOKEGRENADE || iWeapon == CSW_TMP) && get_user_team) == )
   {
    new 
Float:fVec], Float:iSpeed;
    
entity_get_vectoriEV_VEC_velocityfVec );
    
iSpeed vector_lengthfVec);
      
set_user_renderingikRenderFxNone000kRenderTransAlphaiSpeed 255 floatround(iSpeed 2) : 255 );
   
 }
 }
}
 return 
FMRES_IGNORED;


Last edited by siriusmd99; 05-31-2016 at 08:48.
siriusmd99 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 05-31-2016 , 16:50   Re: Help with invisibility
Reply With Quote #9

Is only when i'm using wallhang, but when i'm at the ground, the invisibility work, idk why.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 06-01-2016 , 03:20   Re: Help with invisibility
Reply With Quote #10

Just check when wallhang gets activated, if so, set_user_rendering() as in your invis code. That should do it imo.

I'm not sure, but i think everytime you hit the wall and keep hanging, this causes the set_user_rendering to reset everytime.
__________________

Last edited by Napoleon_be; 06-01-2016 at 03:22.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Reply



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 18:40.


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