View Single Post
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 11-17-2022 , 17:52   Re: Help about detecting enemy players
Reply With Quote #4

Quote:
Originally Posted by Natsheh View Post
@MrPickles i still don't understand why are you still hardcoding ???
??????
What are you talking about? Did you know that this is replaced when compiled? Most of them don't know the name of the enumerations. To save time, instead of writing the name, I put the number because I already know the order of the enumeration, why are you chasing me and taking out things that have nothing to do with it:

engine_const.inc

PHP Code:
enum {
EV_VEC_origin 0,
         ...


neither the code nor the functionality change, in the end, even if you put EV_VEC_origin, it will be replaced by 0, it is only to save time, and the one who knows the order writes it

PHP Code:
static cell AMX_NATIVE_CALL entity_get_vector(AMX *amxcell *params)
{
    
int iEnt params[1];
    
int idx params[2];
    
cell *vRet MF_GetAmxAddr(amxparams[3]);
    
Vector vRetValue Vector(000);

    
CHECK_ENTITY_SIMPLE(iEnt);

    
edict_t *pEnt TypeConversion.id_to_edict(iEnt);

    switch (
idx// INTEGRAL
    
{
        case 
origin// START FROM 0
            
vRetValue pEnt->v.origin;
            break;

               ..... 
This shows how you speak without knowing, you become a hater for leaving yourself ignorant 4 times in a row, in really simple things
It makes me laugh how someone is surprised by that smallness, also treats it as if it were hardcoding XDD

Last edited by MrPickles; 11-17-2022 at 22:25.
MrPickles is offline