Nice Job My friend
But you dont need the engine include if you have included fakemeta
Instead of this:
Code:
create_entity("info_target");
You can use this
Code:
engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"));
2-Instead of this:
Code:
entity_set_int(ent, EV_INT_rendermode, 1)
You can use this:
Code:
set_pev(ent, pev_rendermode, 1)
Same goes for entity_set_vector/entity_get_vector/VelocityByAim
3-Instead of this :
Code:
attach_view(id, ent)
You can use FM's attach view function
And last
Instead of using Prethink to detect if the player pressed the fire key you can simply use FM_CmdStart forward and then check thier buttons through get_uc( UC_Handle, UC_Buttons) since it will be more effiecient and easy !!
Hope that you implement my suggestions in ur plugin
__________________