VexdUM.inc
Original include source with line numbers.
| 1 | /* VexdUM backwards compatibility |
| 2 | * |
| 3 | * by the AMX Mod X Development Team |
| 4 | * |
| 5 | * This file is provided as is (no warranties). |
| 6 | */ |
| 7 | |
| 8 | |
| 9 | #if !defined _fakemeta_included |
| 10 | #include <fakemeta> |
| 11 | #endif |
| 12 | |
| 13 | #if !defined _engine_included |
| 14 | #include <engine> |
| 15 | #endif |
| 16 | |
| 17 | #if defined _vexd_bcompat_included |
| 18 | #endinput |
| 19 | #endif |
| 20 | #define _vexd_bcompat_included |
| 21 | |
| 22 | #include <VexdUM_const> |
| 23 | |
| 24 | native radius_damage(inflictor, Float:dmg, Float:orig[3], Float:rad, bit = DMG_BULLET, wpnName[]="", hs = 0); |
| 25 | native take_damage(victim, attacker, Float:orig[3], Float:dmg, bit = DMG_BULLET, wpnName[]="", hs = 0); |
| 26 | native set_user_model(id, const Model[]=""); |
| 27 | native entity_use(eUsed, eOther); |
| 28 | native get_num_ents(); |
| 29 | |
| 30 | native DispatchKeyValue(ent, szKey[], szValue[]); |
| 31 | |
| 32 | // Trace a line from Start(X, Y, Z) to End(X, Y, Z), will return the point hit in vReturn[3] |
| 33 | // Will return an entindex if an entity is hit. |
| 34 | native trace_line(ent, Float:vStart[3], Float:vEnd[3], Float:vReturn[3]); |
| 35 | |
| 36 | native traceline_get_int(iVar); |
| 37 | native traceline_set_int(iVar, iVal); |
| 38 | native Float:traceline_get_float(iVar); |
| 39 | native traceline_set_float(iVar, Float:fVal); |
| 40 | native traceline_get_vector(iVar, Float:vVal[3]); |
| 41 | native traceline_set_vector(iVar, Float:vVal[3]); |
| 42 | native traceline_get_edict(iVar); |
| 43 | native traceline_set_edict(iVar, iEnt); |
| 44 | |
| 45 | /* Wrapper around pfn_touch */ |
| 46 | forward entity_touch(entity1, entity2); |
| 47 | |
| 48 | /* Wrapper around pfn_think */ |
| 49 | forward entity_think(entity); |
| 50 | |
| 51 | /* Wrapper around pfn_spawn */ |
| 52 | forward entity_spawn(entity); |
| 53 | |
| 54 | /* Wrapper around client_PreThink */ |
| 55 | forward client_prethink(id); |
| 56 | |
| 57 | /* Wrapper around client_PostThink */ |
| 58 | forward client_postthink(id); |
| 59 | |
| 60 | //From AMX Mod: |
| 61 | // Called when an Emitting Sound is played Server-Side |
| 62 | forward emitsound(entity, const sample[]); |
| 63 | |
| 64 | //From AMX Mod: |
| 65 | // Called when an Emitting Ambient Sound is played Server-Side |
| 66 | forward emitambientsound(entity, const sample[]); |
| 67 | |
| 68 | //From AMX Mod: |
| 69 | // Called when a model spawns |
| 70 | forward set_model(entity, const model[]); |
| 71 | |
| 72 | //From AMX Mod: |
| 73 | // Called whatever an entity looks at |
| 74 | forward traceline(entity); |
| 75 | |
| 76 | //:TODO: ? |
| 77 | // Called when a monster is hurt by VexdUM damage natives |
| 78 | // forward monster_hurt(monster, attacker, damage); |
| 79 | |
| 80 | //From AMX Mod: |
| 81 | // Called when a keyvalue is set on a player |
| 82 | forward setclientkeyvalue(id, key[], value[]); |
| 83 | |
| 84 | //From AMX Mod: |
| 85 | // Called when an entity gets a keyvalue set on it from the engine. |
| 86 | // Use copy_keyvalue to get the keyvalue information |
| 87 | forward keyvalue(entity); |
| 88 | |
| 89 | #include <VexdUM_stock> |
| 90 | |