Raised This Month: $ Target: $400
 0% 

Forcing a player with a different groupinfo to render (AddToFullPack)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 01-22-2019 , 16:14   Re: Forcing a player with a different groupinfo to render (AddToFullPack)
Reply With Quote #6

Quote:
Originally Posted by KliPPy View Post
You will change it only for a single call (AddToFullPack), it won't affect any other code. Collision is not processed in AddToFullPack so it won't matter for collision. At least give it a try and see the results for yourself, it may work.
You were right, now it renders the players, however, every time I pass through one of them I get a small "bump", cancelling my speed. Probably because I changed the groupinfo in the pre hook.

Final Code
Code:
public semiclip_pre(ent_state,e,edict_t_ent,edict_t_host,hostflags,player,pSet) {       if(player)     {         g_iGroupInfoBuffer[edict_t_ent] = pev(edict_t_ent, pev_groupinfo);         set_pev(edict_t_ent, pev_groupinfo, pev(edict_t_host, pev_groupinfo));     }         return FMRES_IGNORED; } public semiclip_post(ent_state,e,edict_t_ent,edict_t_host,hostflags,player,pSet) {       if(player)     {         if(pev(edict_t_host, pev_groundentity) == edict_t_ent)             set_es(ent_state, ES_Solid, 1);         else             set_es(ent_state, ES_Solid, 0);         set_pev(edict_t_ent, pev_groupinfo, g_iGroupInfoBuffer[edict_t_ent]);     }         return FMRES_IGNORED; }

I guess it's enough for now as a workaround, I don't know if that's fixable.

Thank you.
__________________

Last edited by gabuch2; 01-22-2019 at 16:14.
gabuch2 is offline
 



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 07:35.


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