Raised This Month: $ Target: $400
 0% 

Can't spectate invisible player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alien
Senior Member
Join Date: Aug 2005
Location: London || Slovakia
Old 10-15-2007 , 21:49   Can't spectate invisible player
Reply With Quote #1

Once again, I have a problem I'm not able to solve. I'm using set_entity_visibility to make players invisible and vice versa. What I don't uderstand is why someone can't spectate invisible player?

As soon as someone being spectated becomes invisible, the spectator will loose focus and will gain Free Look.

Do you think there's a way this could be solved by?

What I was thinking about:

1) Player will become invisible
2) All spectators will be check for iuser2 equal to that player
3) It will be stored ... and ... well I don't know ... restored on next frame?

I have noone to try with at this time ... but I'll appreciate any suggestions!!!
Thank you.
__________________
alien is offline
Send a message via ICQ to alien
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 10-16-2007 , 12:02   Re: Can't spectate invisible player
Reply With Quote #2

Use this instead then.
Code:
Invisible: set_user_rendering(index, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0); Visible: set_user_rendering(index, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255);
[ --<-@ ] Black Rose is offline
alien
Senior Member
Join Date: Aug 2005
Location: London || Slovakia
Old 10-16-2007 , 13:49   Re: Can't spectate invisible player
Reply With Quote #3

Thank you, Black Rose ... but I was trying to avoid set_user_rendering. But it's probably the only option.

EDIT: Actually, would this affect FPS somehow?
__________________
alien is offline
Send a message via ICQ to alien
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 10-16-2007 , 13:57   Re: Can't spectate invisible player
Reply With Quote #4

Quote:
Originally Posted by alien View Post
Thank you, Black Rose ... but I was trying to avoid set_user_rendering. But it's probably the only option.

EDIT: Actually, would this affect FPS somehow?
No (if u make them invisible)
__________________

Last edited by M249-M4A1; 10-16-2007 at 13:59.
M249-M4A1 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-16-2007 , 14:18   Re: Can't spectate invisible player
Reply With Quote #5

fun :
Code:
set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0)

fakemeta
Code:
set_pev(id, pev_renderfx, kRenderFxGlowShell) set_pev(id, pev_rendercolor, {0.0, 0.0, 0.0} ) set_pev(id, pev_rendermode, kRenderTransAlpha) set_pev(id, pev_renderamt, 0.0)
ConnorMcLeod is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 10-16-2007 , 20:33   Re: Can't spectate invisible player
Reply With Quote #6

you would have to use PreThink because glow dissappears on CurWeapon and other stuff
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-17-2007 , 04:04   Re: Can't spectate invisible player
Reply With Quote #7

Quote:
Originally Posted by kp_uparrow View Post
you would have to use PreThink because glow dissappears on CurWeapon and other stuff
uh ?
ConnorMcLeod is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 10-17-2007 , 14:25   Re: Can't spectate invisible player
Reply With Quote #8

Quote:
Originally Posted by kp_uparrow View Post
you would have to use PreThink because glow dissappears on CurWeapon and other stuff
Don't ever mention PreThink again... You gave yourself the answer...

CurWeapon and ResetHUD should be enough.
[ --<-@ ] Black Rose is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 10-17-2007 , 05:41   Re: Can't spectate invisible player
Reply With Quote #9

That's [connorr's way] how (U)WC3 does it ... I'm pretty sure that hangs around ;-)
purple_pixie is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-17-2007 , 06:25   Re: Can't spectate invisible player
Reply With Quote #10

Glow will disappear only if there are others plugins using glow. So, whatever fun or fakemeta way, it won't disappear.
__________________
Arkshine is offline
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 01:12.


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