Raised This Month: $32 Target: $400
 8% 

set_user_rendering


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 10-18-2018 , 16:51   set_user_rendering
Reply With Quote #1

Hello,

Im trying to find a way to cancel the rendering effect on a player when he respawns, so far I managed to do it after the player dies and then respawns, but could not find a way to cancel it while he respawns without dying. Any help appreciated.
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
E1_531G
Senior Member
Join Date: Dec 2017
Old 10-18-2018 , 17:26   Re: set_user_rendering
Reply With Quote #2

Ham_Spawn hooks a spawn with and without a death.

But your question is a bit weird.
Where does this effect come from? Delete it at that place.
__________________
My English is A0
E1_531G is offline
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 10-18-2018 , 21:17   Re: set_user_rendering
Reply With Quote #3

Im actually using set_user_origin to set him back to his spawn after hes finished something and thats when it happens.
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 10-19-2018 , 06:44   Re: set_user_rendering
Reply With Quote #4

Hook Spawn as E1_351G (Post) said and then change player variables: EV_INT_rendermode or pev_rendermode to kRenderNormal and EV_INT_renderfx or pev_renderfx to kRenderFxNone. Should work
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 10-19-2018 at 06:45.
Ghosted is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 10-19-2018 , 07:05   Re: set_user_rendering
Reply With Quote #5

Just use set_user_rendering(id) without any parameters.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 10-19-2018 , 08:19   Re: set_user_rendering
Reply With Quote #6

I have used all that, also without any parameters. It does work when a player spawns after death but it doesnt when he is already alive and gets teleported back to his original spawn.
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
<VeCo>
Veteran Member
Join Date: Jul 2009
Location: Bulgaria
Old 10-19-2018 , 11:24   Re: set_user_rendering
Reply With Quote #7

Quote:
Originally Posted by SomewhereLost View Post
I have used all that, also without any parameters. It does work when a player spawns after death but it doesnt when he is already alive and gets teleported back to his original spawn.
Restore his rendering in the same function you return him back to the base.. Setting origin doesn't affect rendering.
__________________
<VeCo> is offline
SomewhereLost
AlliedModders Donor
Join Date: Mar 2014
Location: Tomorrowland
Old 10-19-2018 , 13:21   Re: set_user_rendering
Reply With Quote #8

Quote:
Originally Posted by <VeCo> View Post
Restore his rendering in the same function you return him back to the base.. Setting origin doesn't affect rendering.
Yeah that one worked well. I thought there was any other way.
__________________
SomewhereLost is offline
Send a message via Skype™ to SomewhereLost
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 06:51.


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