Raised This Month: $ Target: $400
 0% 

Solved AddToFullPack - Solid Prediction


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 08-03-2017 , 17:36   AddToFullPack - Solid Prediction
Reply With Quote #1

Hello

I run a metamod plugin that allows semiclipping however it doesn't alter the client collision prediction.

I'm building a simple amxx plugin, however it crashes (Segfault)

What am I doing wrong?

Code:
#include <amxmodx> #include <fakemeta> #include <engine> public plugin_init() {     register_plugin("Semiclip Prediction","1.0","Gabe Iggy")     register_forward(FM_AddToFullPack,"test") } //struct entity_state_s *state, int e, edict_t *ent, edict_t *host, int hostflags, int player, unsigned char *pSet public test(ent_state,e,edict_t_ent,edict_t_host,hostflags,player,pSet) {       if(player)     {         if(0 < e <= get_maxplayers())         {             if(0 < pev(edict_t_host, pev_groundentity) <= get_maxplayers())                 set_es(e, ES_Solid, 1)             else                 set_es(e, ES_Solid, 0)             return FMRES_OVERRIDE;         }     }         return FMRES_IGNORED; }
__________________

Last edited by gabuch2; 08-04-2017 at 20:37.
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 23:11.


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