Raised This Month: $ Target: $400
 0% 

[ H3LP ] Set view reset render?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-11-2017 , 10:28   [ H3LP ] Set view reset render?
Reply With Quote #1

Hello, I'm trying to change the player's rendering, however when I insert the camera 3rdperson in the player, the rendering resets, anyway... If I try to make the player transparent even after he has received this camera, the Addtofullpack continues getting the value that the camera inserted into rendering.

Code:
public teste(id) {     set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 0)     client_print(id, print_chat, "NO_CAMERA %d ES_RenderFx", entity_get_int(id, EV_INT_renderfx)) // 0     client_print(id, print_chat, "NO_CAMERA %d EV_INT_rendermode", entity_get_int(id, EV_INT_rendermode)) // 4     client_print(id, print_chat, "NO_CAMERA %.0f EV_FL_renderamt", entity_get_float(id, EV_FL_renderamt)) // 0     set_view(id, CAMERA_3RDPERSON)     set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 0)     client_print(id, print_chat, "CAMERA %d ES_RenderFx", entity_get_int(id, EV_INT_renderfx)) // 0     client_print(id, print_chat, "CAMERA %d EV_INT_rendermode", entity_get_int(id, EV_INT_rendermode)) // 4     client_print(id, print_chat, "CAMERA %.0f EV_FL_renderamt", entity_get_float(id, EV_FL_renderamt)) // 0 } public fw_AddToFullPack_Post(es_handle, e, ent, host, hostflags, player, pSet) {     if (player && ent == host && get_orig_retval())     {         client_print(host, print_chat, "ADDTOFULLPACK %d ES_RenderFx", entity_get_int(ent, EV_INT_renderfx)) // 0 OK!         client_print(host, print_chat, "ADDTOFULLPACK %d EV_INT_rendermode", entity_get_int(ent, EV_INT_rendermode)) // 2 why ????????         client_print(host, print_chat, "ADDTOFULLPACK %.0f EV_FL_renderamt", entity_get_float(ent, EV_FL_renderamt))// 100.0 why ??????         static Float:VecColor[3]         entity_get_vector(host, EV_VEC_rendercolor, VecColor)         set_es(es_handle, ES_RenderMode, entity_get_int(host, EV_INT_rendermode))         set_es(es_handle, ES_RenderAmt, entity_get_float(host, EV_FL_renderamt))         set_es(es_handle, ES_RenderColor, VecColor)         set_es(es_handle, ES_RenderFx, entity_get_int(host, EV_INT_renderfx))     } }
__________________








CrazY. 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 23:11.


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