> > > >

fm_fakedamage | fakemeta_util | AMX X Documentation

Includes

    1. Stocks
    1. Natives
    2. Forwards
    1. Natives
    2. Stocks
    1. Natives
    2. Stocks
    1. Natives
    1. Natives
    2. Stocks
    1. Natives
    1. Natives
    2. Forwards
    3. Stocks
    1. Natives
    2. Forwards
    1. Natives
    1. Natives
    1. Natives
    2. Stocks
    1. Natives
    2. Forwards
    1. Natives
    1. Natives
    2. Forwards
    1. Natives
    2. Forwards
    1. Stocks
    1. Natives
    1. Natives
    2. Stocks
    1. Stocks
    1. Stocks
    1. Natives
    1. Natives
    2. Forwards
    3. Stocks
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    2. Stocks
    1. Natives
    1. Natives
    1. Stocks
    1. Natives
    1. Natives
    1. Natives
    2. Forwards
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    2. Forwards
    1. Natives
    2. Stocks
    1. Natives
    1. Natives
    1. Natives
    2. Stocks
    1. Natives
    1. Stocks
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    2. Forwards
    3. Stocks
    1. Stocks
    1. Natives
    2. Forwards
    3. Stocks
    1. Natives
    1. Natives
    2. Forwards
    3. Stocks
    1. Natives
    1. Natives
    2. Stocks
    1. Stocks

fm_fakedamage

Syntax
									stock fm_fakedamage(victim, const classname[], Float:takedmgdamage, damagetype) {
									new class[] = "trigger_hurt";
     new entity = fm_create_entity(class);
     if (!entity)
          return 0;

     new value[16];
     float_to_str(takedmgdamage * 2, value, sizeof value - 1);
     fm_set_kvd(entity, "dmg", value, class);

     num_to_str(damagetype, value, sizeof value - 1);
     fm_set_kvd(entity, "damagetype", value, class);

     fm_set_kvd(entity, "origin", "8192 8192 8192", class);
     fm_DispatchSpawn(entity);

     set_pev(entity, pev_classname, classname);
     fm_fake_touch(entity, victim);
     fm_remove_entity(entity);

     return 1;
}
								
Variable Description
No arguments

Description
Engine_stocks functions
> > > >