@amxts/core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +162 -0
- package/README.ru.md +162 -0
- package/amxmodx/base/include/amxconst.inc +594 -0
- package/amxmodx/base/include/amxmisc.inc +902 -0
- package/amxmodx/base/include/amxmodx.inc +3447 -0
- package/amxmodx/base/include/amxmodx_version.inc +20 -0
- package/amxmodx/base/include/cellarray.inc +525 -0
- package/amxmodx/base/include/cellstack.inc +166 -0
- package/amxmodx/base/include/celltrie.inc +412 -0
- package/amxmodx/base/include/core.inc +202 -0
- package/amxmodx/base/include/csstats.inc +298 -0
- package/amxmodx/base/include/csstats_const.inc +29 -0
- package/amxmodx/base/include/cstrike.inc +1287 -0
- package/amxmodx/base/include/cstrike_const.inc +521 -0
- package/amxmodx/base/include/csx.inc +259 -0
- package/amxmodx/base/include/cvars.inc +547 -0
- package/amxmodx/base/include/datapack.inc +161 -0
- package/amxmodx/base/include/dbi.inc +154 -0
- package/amxmodx/base/include/dodconst.inc +152 -0
- package/amxmodx/base/include/dodfun.inc +152 -0
- package/amxmodx/base/include/dodstats.inc +69 -0
- package/amxmodx/base/include/dodx.inc +161 -0
- package/amxmodx/base/include/engine.inc +1343 -0
- package/amxmodx/base/include/engine_const.inc +310 -0
- package/amxmodx/base/include/engine_stocks.inc +248 -0
- package/amxmodx/base/include/esf.inc +70 -0
- package/amxmodx/base/include/esf_const.inc +74 -0
- package/amxmodx/base/include/fakemeta.inc +1127 -0
- package/amxmodx/base/include/fakemeta_const.inc +793 -0
- package/amxmodx/base/include/fakemeta_stocks.inc +395 -0
- package/amxmodx/base/include/fakemeta_util.inc +882 -0
- package/amxmodx/base/include/file.inc +666 -0
- package/amxmodx/base/include/float.inc +422 -0
- package/amxmodx/base/include/fun.inc +333 -0
- package/amxmodx/base/include/gameconfig.inc +93 -0
- package/amxmodx/base/include/geoip.inc +264 -0
- package/amxmodx/base/include/ham_const.inc +4352 -0
- package/amxmodx/base/include/hamsandwich.inc +439 -0
- package/amxmodx/base/include/hlsdk_const.inc +808 -0
- package/amxmodx/base/include/json.inc +777 -0
- package/amxmodx/base/include/lang.inc +119 -0
- package/amxmodx/base/include/message_const.inc +1130 -0
- package/amxmodx/base/include/message_stocks.inc +161 -0
- package/amxmodx/base/include/messages.inc +604 -0
- package/amxmodx/base/include/newmenus.inc +387 -0
- package/amxmodx/base/include/ns.inc +754 -0
- package/amxmodx/base/include/ns_const.inc +196 -0
- package/amxmodx/base/include/nvault.inc +154 -0
- package/amxmodx/base/include/regex.inc +348 -0
- package/amxmodx/base/include/sockets.inc +183 -0
- package/amxmodx/base/include/sorting.inc +107 -0
- package/amxmodx/base/include/sqlx.inc +582 -0
- package/amxmodx/base/include/string.inc +786 -0
- package/amxmodx/base/include/string_const.inc +156 -0
- package/amxmodx/base/include/string_stocks.inc +325 -0
- package/amxmodx/base/include/textparse_ini.inc +214 -0
- package/amxmodx/base/include/textparse_smc.inc +261 -0
- package/amxmodx/base/include/tfcconst.inc +84 -0
- package/amxmodx/base/include/tfcstats.inc +62 -0
- package/amxmodx/base/include/tfcx.inc +148 -0
- package/amxmodx/base/include/time.inc +118 -0
- package/amxmodx/base/include/tsconst.inc +154 -0
- package/amxmodx/base/include/tsfun.inc +198 -0
- package/amxmodx/base/include/tsstats.inc +65 -0
- package/amxmodx/base/include/tsx.inc +88 -0
- package/amxmodx/base/include/vault.inc +60 -0
- package/amxmodx/base/include/vector.inc +131 -0
- package/amxmodx/base/include/xs.inc +1570 -0
- package/as/amxts.d.ts +153 -0
- package/as/constants.ts +4730 -0
- package/as/effects.ts +1449 -0
- package/as/entities.ts +5482 -0
- package/as/events.ts +3054 -0
- package/as/facade.ts +4639 -0
- package/as/flags.ts +299 -0
- package/as/fs.ts +287 -0
- package/as/hooks.ts +18536 -0
- package/as/kit.ts +25 -0
- package/as/lib/check.ts +86 -0
- package/as/modules/http.ts +184 -0
- package/as/natives.ts +11845 -0
- package/as/os.ts +30 -0
- package/as/promise.ts +1392 -0
- package/as/promise.types.d.ts +82 -0
- package/as/remote.ts +288 -0
- package/as/tsconfig.json +22 -0
- package/as/vector.ts +65 -0
- package/bin/amxts.mjs +10 -0
- package/includes/menu_core.inc +355 -0
- package/includes/order.txt +54 -0
- package/includes/sources.json +27 -0
- package/includes/universal_config.inc +355 -0
- package/lint/oxlint-plugin.mjs +77 -0
- package/node_modules/assemblyscript/LICENSE +201 -0
- package/node_modules/assemblyscript/NOTICE +93 -0
- package/node_modules/assemblyscript/package.json +63 -0
- package/node_modules/assemblyscript/std/README.md +6 -0
- package/node_modules/assemblyscript/std/assembly/array.ts +526 -0
- package/node_modules/assemblyscript/std/assembly/arraybuffer.ts +77 -0
- package/node_modules/assemblyscript/std/assembly/atomics.ts +127 -0
- package/node_modules/assemblyscript/std/assembly/bindings/asyncify.ts +16 -0
- package/node_modules/assemblyscript/std/assembly/bindings/dom.ts +291 -0
- package/node_modules/assemblyscript/std/assembly/bindings/node.ts +6 -0
- package/node_modules/assemblyscript/std/assembly/builtins.ts +2631 -0
- package/node_modules/assemblyscript/std/assembly/compat.ts +2 -0
- package/node_modules/assemblyscript/std/assembly/console.ts +42 -0
- package/node_modules/assemblyscript/std/assembly/crypto.ts +9 -0
- package/node_modules/assemblyscript/std/assembly/dataview.ts +181 -0
- package/node_modules/assemblyscript/std/assembly/date.ts +373 -0
- package/node_modules/assemblyscript/std/assembly/diagnostics.ts +11 -0
- package/node_modules/assemblyscript/std/assembly/error.ts +44 -0
- package/node_modules/assemblyscript/std/assembly/function.ts +38 -0
- package/node_modules/assemblyscript/std/assembly/index.d.ts +2822 -0
- package/node_modules/assemblyscript/std/assembly/iterator.ts +35 -0
- package/node_modules/assemblyscript/std/assembly/map.ts +260 -0
- package/node_modules/assemblyscript/std/assembly/math.ts +3289 -0
- package/node_modules/assemblyscript/std/assembly/memory.ts +123 -0
- package/node_modules/assemblyscript/std/assembly/number.ts +388 -0
- package/node_modules/assemblyscript/std/assembly/object.ts +36 -0
- package/node_modules/assemblyscript/std/assembly/performance.ts +9 -0
- package/node_modules/assemblyscript/std/assembly/polyfills.ts +27 -0
- package/node_modules/assemblyscript/std/assembly/process.ts +50 -0
- package/node_modules/assemblyscript/std/assembly/reference.ts +48 -0
- package/node_modules/assemblyscript/std/assembly/regexp.ts +12 -0
- package/node_modules/assemblyscript/std/assembly/rt/README.md +83 -0
- package/node_modules/assemblyscript/std/assembly/rt/common.ts +81 -0
- package/node_modules/assemblyscript/std/assembly/rt/index-incremental.ts +2 -0
- package/node_modules/assemblyscript/std/assembly/rt/index-minimal.ts +2 -0
- package/node_modules/assemblyscript/std/assembly/rt/index-stub.ts +1 -0
- package/node_modules/assemblyscript/std/assembly/rt/index.d.ts +37 -0
- package/node_modules/assemblyscript/std/assembly/rt/itcms.ts +419 -0
- package/node_modules/assemblyscript/std/assembly/rt/rtrace.ts +15 -0
- package/node_modules/assemblyscript/std/assembly/rt/stub.ts +133 -0
- package/node_modules/assemblyscript/std/assembly/rt/tcms.ts +254 -0
- package/node_modules/assemblyscript/std/assembly/rt/tlsf.ts +592 -0
- package/node_modules/assemblyscript/std/assembly/rt.ts +87 -0
- package/node_modules/assemblyscript/std/assembly/set.ts +220 -0
- package/node_modules/assemblyscript/std/assembly/shared/feature.ts +65 -0
- package/node_modules/assemblyscript/std/assembly/shared/runtime.ts +11 -0
- package/node_modules/assemblyscript/std/assembly/shared/target.ts +11 -0
- package/node_modules/assemblyscript/std/assembly/shared/tsconfig.json +11 -0
- package/node_modules/assemblyscript/std/assembly/shared/typeinfo.ts +72 -0
- package/node_modules/assemblyscript/std/assembly/staticarray.ts +401 -0
- package/node_modules/assemblyscript/std/assembly/string.ts +847 -0
- package/node_modules/assemblyscript/std/assembly/symbol.ts +114 -0
- package/node_modules/assemblyscript/std/assembly/table.ts +16 -0
- package/node_modules/assemblyscript/std/assembly/tsconfig.json +6 -0
- package/node_modules/assemblyscript/std/assembly/typedarray.ts +1945 -0
- package/node_modules/assemblyscript/std/assembly/uri.ts +17 -0
- package/node_modules/assemblyscript/std/assembly/util/bytes.ts +107 -0
- package/node_modules/assemblyscript/std/assembly/util/casemap.ts +497 -0
- package/node_modules/assemblyscript/std/assembly/util/error.ts +54 -0
- package/node_modules/assemblyscript/std/assembly/util/hash.ts +117 -0
- package/node_modules/assemblyscript/std/assembly/util/math.ts +1922 -0
- package/node_modules/assemblyscript/std/assembly/util/memory.ts +290 -0
- package/node_modules/assemblyscript/std/assembly/util/number.ts +873 -0
- package/node_modules/assemblyscript/std/assembly/util/sort.ts +313 -0
- package/node_modules/assemblyscript/std/assembly/util/string.ts +1202 -0
- package/node_modules/assemblyscript/std/assembly/util/uri.ts +275 -0
- package/node_modules/assemblyscript/std/assembly/vector.ts +4 -0
- package/node_modules/assemblyscript/std/assembly.json +16 -0
- package/node_modules/assemblyscript/std/portable/index.d.ts +462 -0
- package/node_modules/assemblyscript/std/portable/index.js +416 -0
- package/node_modules/assemblyscript/std/portable.json +11 -0
- package/node_modules/assemblyscript/std/types/assembly/index.d.ts +1 -0
- package/node_modules/assemblyscript/std/types/assembly/package.json +3 -0
- package/node_modules/assemblyscript/std/types/portable/index.d.ts +1 -0
- package/node_modules/assemblyscript/std/types/portable/package.json +3 -0
- package/node_modules/assemblyscript/tsconfig-base.json +13 -0
- package/package.json +112 -0
- package/runtime/deps/assemblyscript/LICENSE +201 -0
- package/runtime/deps/assemblyscript/NOTICE +93 -0
- package/runtime/deps/assemblyscript/bin/asc.js +35 -0
- package/runtime/deps/assemblyscript/dist/asc.js +25035 -0
- package/runtime/deps/assemblyscript/dist/assemblyscript.js +337 -0
- package/runtime/deps/assemblyscript/node_modules/binaryen/LICENSE +201 -0
- package/runtime/deps/assemblyscript/node_modules/binaryen/index.js +28905 -0
- package/runtime/deps/assemblyscript/node_modules/binaryen/package.json +50 -0
- package/runtime/deps/assemblyscript/node_modules/long/LICENSE +202 -0
- package/runtime/deps/assemblyscript/node_modules/long/index.js +1581 -0
- package/runtime/deps/assemblyscript/node_modules/long/package.json +58 -0
- package/runtime/deps/assemblyscript/package.json +114 -0
- package/runtime/host/amxts.inc +85 -0
- package/runtime/licenses/AMXX-LICENSE.txt +34 -0
- package/runtime/licenses/AssemblyScript-LICENSE +201 -0
- package/runtime/licenses/AssemblyScript-NOTICE +93 -0
- package/runtime/licenses/Binaryen-LICENSE +201 -0
- package/runtime/licenses/Bun-LICENSE.md +84 -0
- package/runtime/licenses/GPL-3.0.txt +674 -0
- package/runtime/licenses/LLVM-LICENSE.TXT +279 -0
- package/runtime/licenses/README.md +25 -0
- package/runtime/licenses/WAMR-LICENSE +219 -0
- package/runtime/natives.txt +1095 -0
- package/runtime/patches/README.md +59 -0
- package/runtime/patches/assemblyscript-0.28.20-amxts.patch +14174 -0
- package/runtime/patches/wamr-2.4.5-amxts.patch +364 -0
- package/scripts/apply-docs.ts +508 -0
- package/scripts/asc.ts +27 -0
- package/scripts/auto-imports.ts +258 -0
- package/scripts/build-wasm.ts +595 -0
- package/scripts/check.ts +93 -0
- package/scripts/compile-cache.ts +179 -0
- package/scripts/compile.ts +401 -0
- package/scripts/docker-server.ts +73 -0
- package/scripts/docs/as/amxts.ts +210 -0
- package/scripts/docs/as/effects.ts +1684 -0
- package/scripts/docs/as/facade.ts +3302 -0
- package/scripts/docs/as/fs.ts +173 -0
- package/scripts/docs/as/lib/check.ts +68 -0
- package/scripts/docs/as/modules/http.ts +66 -0
- package/scripts/docs/as/os.ts +16 -0
- package/scripts/docs/as/promise.ts +132 -0
- package/scripts/docs/as/promise.types.ts +63 -0
- package/scripts/docs/as/vector.ts +48 -0
- package/scripts/docs/entities.ts +2338 -0
- package/scripts/docs/events.ts +245 -0
- package/scripts/docs/game.ts +497 -0
- package/scripts/docs/messages.ts +148 -0
- package/scripts/file-contents.ts +74 -0
- package/scripts/includes.ts +134 -0
- package/scripts/player-fields.ts +866 -0
- package/scripts/plugin-cache.ts +92 -0
- package/scripts/plugin-natives.ts +1157 -0
- package/scripts/prebuilt.ts +268 -0
- package/scripts/prepare.ts +134 -0
- package/scripts/project.ts +973 -0
- package/scripts/run.ts +28 -0
- package/scripts/shared-modules.ts +906 -0
- package/scripts/system.ts +33 -0
- package/scripts/tracked-fs.ts +115 -0
- package/scripts/typed-configs.ts +788 -0
- package/scripts/ui.ts +77 -0
- package/src/cli-api.mjs +175 -0
- package/src/parser/include-parser.ts +506 -0
- package/src/system.mjs +155 -0
- package/src/testing/compile-cache.ts +31 -0
- package/src/testing/compile.ts +222 -0
- package/src/testing/coroutines.ts +191 -0
- package/src/testing/index.ts +39 -0
- package/src/testing/kits.ts +55 -0
- package/src/testing/memory.ts +125 -0
- package/src/testing/natives.ts +925 -0
- package/src/testing/server.ts +1874 -0
- package/src/testing/setup.ts +63 -0
- package/src/testing/tables.ts +139 -0
- package/src/types.ts +51 -0
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
// vim: set ts=4 sw=4 tw=99 noet:
|
|
2
|
+
//
|
|
3
|
+
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
|
|
4
|
+
// Copyright (C) The AMX Mod X Development Team.
|
|
5
|
+
//
|
|
6
|
+
// This software is licensed under the GNU General Public License, version 3 or higher.
|
|
7
|
+
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
|
|
8
|
+
// https://alliedmods.net/amxmodx-license
|
|
9
|
+
|
|
10
|
+
//
|
|
11
|
+
// Engine Constants
|
|
12
|
+
//
|
|
13
|
+
|
|
14
|
+
#if defined _engine_const_included
|
|
15
|
+
#endinput
|
|
16
|
+
#endif
|
|
17
|
+
#define _engine_const_included
|
|
18
|
+
|
|
19
|
+
#include <hlsdk_const>
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Flags for the [set|get]_speak() natives.
|
|
23
|
+
*
|
|
24
|
+
* @note These do not correspond to any HLSDK constants and are only relevant to
|
|
25
|
+
* the custom functionality provided by the engine module.
|
|
26
|
+
*/
|
|
27
|
+
#define SPEAK_NORMAL 0 // Normal behavior, client follows alltalk rules
|
|
28
|
+
#define SPEAK_MUTED 1 // Client can not talk
|
|
29
|
+
#define SPEAK_ALL 2 // Client can talk to every other client
|
|
30
|
+
#define SPEAK_LISTENALL 4 // Client can listen to every other client
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* View types for the set_view() native.
|
|
34
|
+
*
|
|
35
|
+
* @note These do not correspond to any HLSDK constants and are only relevant to
|
|
36
|
+
* the custom functionality provided by the engine module.
|
|
37
|
+
*/
|
|
38
|
+
#define CAMERA_NONE 0
|
|
39
|
+
#define CAMERA_3RDPERSON 1
|
|
40
|
+
#define CAMERA_UPLEFT 2
|
|
41
|
+
#define CAMERA_TOPDOWN 3
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @section Entvar constants used with entity_[get|set]_* functions.
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Integers, use with entity_[get|set]_int()
|
|
49
|
+
*/
|
|
50
|
+
enum {
|
|
51
|
+
EV_INT_gamestate = 0,
|
|
52
|
+
EV_INT_oldbuttons,
|
|
53
|
+
EV_INT_groupinfo,
|
|
54
|
+
EV_INT_iuser1,
|
|
55
|
+
EV_INT_iuser2,
|
|
56
|
+
EV_INT_iuser3,
|
|
57
|
+
EV_INT_iuser4,
|
|
58
|
+
EV_INT_weaponanim,
|
|
59
|
+
EV_INT_pushmsec,
|
|
60
|
+
EV_INT_bInDuck,
|
|
61
|
+
EV_INT_flTimeStepSound,
|
|
62
|
+
EV_INT_flSwimTime,
|
|
63
|
+
EV_INT_flDuckTime,
|
|
64
|
+
EV_INT_iStepLeft,
|
|
65
|
+
EV_INT_movetype,
|
|
66
|
+
EV_INT_solid,
|
|
67
|
+
EV_INT_skin,
|
|
68
|
+
EV_INT_body,
|
|
69
|
+
EV_INT_effects,
|
|
70
|
+
EV_INT_light_level,
|
|
71
|
+
EV_INT_sequence,
|
|
72
|
+
EV_INT_gaitsequence,
|
|
73
|
+
EV_INT_modelindex,
|
|
74
|
+
EV_INT_playerclass,
|
|
75
|
+
EV_INT_waterlevel,
|
|
76
|
+
EV_INT_watertype,
|
|
77
|
+
EV_INT_spawnflags,
|
|
78
|
+
EV_INT_flags,
|
|
79
|
+
EV_INT_colormap,
|
|
80
|
+
EV_INT_team,
|
|
81
|
+
EV_INT_fixangle,
|
|
82
|
+
EV_INT_weapons,
|
|
83
|
+
EV_INT_rendermode,
|
|
84
|
+
EV_INT_renderfx,
|
|
85
|
+
EV_INT_button,
|
|
86
|
+
EV_INT_impulse,
|
|
87
|
+
EV_INT_deadflag,
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Floats, use with entity_[get|set]_float()
|
|
92
|
+
*/
|
|
93
|
+
enum {
|
|
94
|
+
EV_FL_impacttime = 0,
|
|
95
|
+
EV_FL_starttime,
|
|
96
|
+
EV_FL_idealpitch,
|
|
97
|
+
EV_FL_pitch_speed,
|
|
98
|
+
EV_FL_ideal_yaw,
|
|
99
|
+
EV_FL_yaw_speed,
|
|
100
|
+
EV_FL_ltime,
|
|
101
|
+
EV_FL_nextthink,
|
|
102
|
+
EV_FL_gravity,
|
|
103
|
+
EV_FL_friction,
|
|
104
|
+
EV_FL_frame,
|
|
105
|
+
EV_FL_animtime,
|
|
106
|
+
EV_FL_framerate,
|
|
107
|
+
EV_FL_health,
|
|
108
|
+
EV_FL_frags,
|
|
109
|
+
EV_FL_takedamage,
|
|
110
|
+
EV_FL_max_health,
|
|
111
|
+
EV_FL_teleport_time,
|
|
112
|
+
EV_FL_armortype,
|
|
113
|
+
EV_FL_armorvalue,
|
|
114
|
+
EV_FL_dmg_take,
|
|
115
|
+
EV_FL_dmg_save,
|
|
116
|
+
EV_FL_dmg,
|
|
117
|
+
EV_FL_dmgtime,
|
|
118
|
+
EV_FL_speed,
|
|
119
|
+
EV_FL_air_finished,
|
|
120
|
+
EV_FL_pain_finished,
|
|
121
|
+
EV_FL_radsuit_finished,
|
|
122
|
+
EV_FL_scale,
|
|
123
|
+
EV_FL_renderamt,
|
|
124
|
+
EV_FL_maxspeed,
|
|
125
|
+
EV_FL_fov,
|
|
126
|
+
EV_FL_flFallVelocity,
|
|
127
|
+
EV_FL_fuser1,
|
|
128
|
+
EV_FL_fuser2,
|
|
129
|
+
EV_FL_fuser3,
|
|
130
|
+
EV_FL_fuser4,
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Vectors, use with entity_[get|set]_vector()
|
|
135
|
+
*/
|
|
136
|
+
enum {
|
|
137
|
+
EV_VEC_origin = 0,
|
|
138
|
+
EV_VEC_oldorigin,
|
|
139
|
+
EV_VEC_velocity,
|
|
140
|
+
EV_VEC_basevelocity,
|
|
141
|
+
EV_VEC_clbasevelocity,
|
|
142
|
+
EV_VEC_movedir,
|
|
143
|
+
EV_VEC_angles,
|
|
144
|
+
EV_VEC_avelocity,
|
|
145
|
+
EV_VEC_punchangle,
|
|
146
|
+
EV_VEC_v_angle,
|
|
147
|
+
EV_VEC_endpos,
|
|
148
|
+
EV_VEC_startpos,
|
|
149
|
+
EV_VEC_absmin,
|
|
150
|
+
EV_VEC_absmax,
|
|
151
|
+
EV_VEC_mins,
|
|
152
|
+
EV_VEC_maxs,
|
|
153
|
+
EV_VEC_size,
|
|
154
|
+
EV_VEC_rendercolor,
|
|
155
|
+
EV_VEC_view_ofs,
|
|
156
|
+
EV_VEC_vuser1,
|
|
157
|
+
EV_VEC_vuser2,
|
|
158
|
+
EV_VEC_vuser3,
|
|
159
|
+
EV_VEC_vuser4,
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Edicts, use with entity_[get|set]_edict()
|
|
164
|
+
*/
|
|
165
|
+
enum {
|
|
166
|
+
EV_ENT_chain = 0,
|
|
167
|
+
EV_ENT_dmg_inflictor,
|
|
168
|
+
EV_ENT_enemy,
|
|
169
|
+
EV_ENT_aiment,
|
|
170
|
+
EV_ENT_owner,
|
|
171
|
+
EV_ENT_groundentity,
|
|
172
|
+
EV_ENT_pContainingEntity,
|
|
173
|
+
EV_ENT_euser1,
|
|
174
|
+
EV_ENT_euser2,
|
|
175
|
+
EV_ENT_euser3,
|
|
176
|
+
EV_ENT_euser4,
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Strings, use with entity_[get|set]_string()
|
|
181
|
+
*/
|
|
182
|
+
enum {
|
|
183
|
+
EV_SZ_classname = 0,
|
|
184
|
+
EV_SZ_globalname,
|
|
185
|
+
EV_SZ_model,
|
|
186
|
+
EV_SZ_target,
|
|
187
|
+
EV_SZ_targetname,
|
|
188
|
+
EV_SZ_netname,
|
|
189
|
+
EV_SZ_message,
|
|
190
|
+
EV_SZ_noise,
|
|
191
|
+
EV_SZ_noise1,
|
|
192
|
+
EV_SZ_noise2,
|
|
193
|
+
EV_SZ_noise3,
|
|
194
|
+
EV_SZ_viewmodel,
|
|
195
|
+
EV_SZ_weaponmodel,
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Bytearrays, use with entity_[get|set]_byte()
|
|
200
|
+
*/
|
|
201
|
+
enum {
|
|
202
|
+
EV_BYTE_controller1 = 0,
|
|
203
|
+
EV_BYTE_controller2,
|
|
204
|
+
EV_BYTE_controller3,
|
|
205
|
+
EV_BYTE_controller4,
|
|
206
|
+
EV_BYTE_blending1,
|
|
207
|
+
EV_BYTE_blending2,
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* @endsection
|
|
212
|
+
*/
|
|
213
|
+
|
|
214
|
+
#if defined _jghg_enums
|
|
215
|
+
#endinput
|
|
216
|
+
#endif
|
|
217
|
+
#define _jghg_enums
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Used by get_global_[edict/float/int/string/vector]()
|
|
221
|
+
*/
|
|
222
|
+
enum {
|
|
223
|
+
|
|
224
|
+
// Edict
|
|
225
|
+
GL_trace_ent = 0,
|
|
226
|
+
|
|
227
|
+
// Float
|
|
228
|
+
GL_coop,
|
|
229
|
+
GL_deathmatch,
|
|
230
|
+
GL_force_retouch,
|
|
231
|
+
GL_found_secrets,
|
|
232
|
+
GL_frametime,
|
|
233
|
+
GL_serverflags,
|
|
234
|
+
GL_teamplay,
|
|
235
|
+
GL_time,
|
|
236
|
+
GL_trace_allsolid,
|
|
237
|
+
GL_trace_fraction,
|
|
238
|
+
GL_trace_inopen,
|
|
239
|
+
GL_trace_inwater,
|
|
240
|
+
GL_trace_plane_dist,
|
|
241
|
+
GL_trace_startsolid,
|
|
242
|
+
|
|
243
|
+
// Int
|
|
244
|
+
GL_cdAudioTrack,
|
|
245
|
+
GL_maxClients,
|
|
246
|
+
GL_maxEntities,
|
|
247
|
+
GL_msg_entity,
|
|
248
|
+
GL_trace_flags,
|
|
249
|
+
GL_trace_hitgroup,
|
|
250
|
+
|
|
251
|
+
// String
|
|
252
|
+
GL_pStringBase,
|
|
253
|
+
GL_mapname,
|
|
254
|
+
GL_startspot,
|
|
255
|
+
|
|
256
|
+
// Vector
|
|
257
|
+
GL_trace_endpos,
|
|
258
|
+
GL_trace_plane_normal,
|
|
259
|
+
GL_v_forward,
|
|
260
|
+
GL_v_right,
|
|
261
|
+
GL_v_up,
|
|
262
|
+
GL_vecLandmarkOffset,
|
|
263
|
+
|
|
264
|
+
// Void (not supported)
|
|
265
|
+
GL_pSaveData
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Used by [get/set]_usercmd()
|
|
271
|
+
*/
|
|
272
|
+
enum
|
|
273
|
+
{
|
|
274
|
+
usercmd_float_start,
|
|
275
|
+
usercmd_forwardmove, // Float
|
|
276
|
+
usercmd_sidemove, // Float
|
|
277
|
+
usercmd_upmove, // Float
|
|
278
|
+
usercmd_float_end,
|
|
279
|
+
usercmd_int_start,
|
|
280
|
+
usercmd_lerp_msec, // short
|
|
281
|
+
usercmd_msec, // byte
|
|
282
|
+
usercmd_lightlevel, // byte
|
|
283
|
+
usercmd_buttons, // unsigned short
|
|
284
|
+
usercmd_impulse, // byte
|
|
285
|
+
usercmd_weaponselect, // byte
|
|
286
|
+
usercmd_impact_index, // int
|
|
287
|
+
usercmd_int_end,
|
|
288
|
+
usercmd_vec_start,
|
|
289
|
+
usercmd_viewangles, // Vector
|
|
290
|
+
usercmd_impact_position, // vec
|
|
291
|
+
usercmd_vec_end
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Used by the traceresult()
|
|
296
|
+
*/
|
|
297
|
+
enum
|
|
298
|
+
{
|
|
299
|
+
TR_AllSolid, // (int) if true, plane is not valid
|
|
300
|
+
TR_StartSolid, // (int) if true, the initial point was in a solid area
|
|
301
|
+
TR_InOpen, // (int)
|
|
302
|
+
TR_InWater, // (int)
|
|
303
|
+
TR_Fraction, // (float) time completed, 1.0 = didn't hit anything
|
|
304
|
+
TR_EndPos, // (vector) final position
|
|
305
|
+
TR_PlaneDist, // (float)
|
|
306
|
+
TR_PlaneNormal, // (vector) surface normal at impact
|
|
307
|
+
TR_Hit, // (entity) entity the surface is on
|
|
308
|
+
TR_Hitgroup // (int) 0 == generic, non zero is specific body part
|
|
309
|
+
};
|
|
310
|
+
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
// vim: set ts=4 sw=4 tw=99 noet:
|
|
2
|
+
//
|
|
3
|
+
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
|
|
4
|
+
// Copyright (C) The AMX Mod X Development Team.
|
|
5
|
+
// Special thanks to AssKicR, Freecode, and T(+)rget.
|
|
6
|
+
//
|
|
7
|
+
// This software is licensed under the GNU General Public License, version 3 or higher.
|
|
8
|
+
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
|
|
9
|
+
// https://alliedmods.net/amxmodx-license
|
|
10
|
+
|
|
11
|
+
//
|
|
12
|
+
// Engine Stocks
|
|
13
|
+
//
|
|
14
|
+
|
|
15
|
+
#if defined _engine_stocks_included
|
|
16
|
+
#endinput
|
|
17
|
+
#endif
|
|
18
|
+
#define _engine_stocks_included
|
|
19
|
+
|
|
20
|
+
#if !defined _amxmodx_included
|
|
21
|
+
#include <amxmodx>
|
|
22
|
+
#endif
|
|
23
|
+
|
|
24
|
+
#if !defined _engine_included
|
|
25
|
+
#include <engine>
|
|
26
|
+
#endif
|
|
27
|
+
|
|
28
|
+
stock fakedamage(idvictim,const szClassname[],Float:takedmgdamage,damagetype)
|
|
29
|
+
{
|
|
30
|
+
new entity = create_entity("trigger_hurt");
|
|
31
|
+
if (entity)
|
|
32
|
+
{
|
|
33
|
+
DispatchKeyValue(entity,"classname","trigger_hurt");
|
|
34
|
+
new szDamage[16];
|
|
35
|
+
// Takedamages only do half damage per attack (damage is damage per second, and it's triggered in 0.5 second intervals).
|
|
36
|
+
// Compensate for that.
|
|
37
|
+
format(szDamage,15,"%f",takedmgdamage * 2);
|
|
38
|
+
DispatchKeyValue(entity,"dmg",szDamage);
|
|
39
|
+
format(szDamage,15,"%i",damagetype);
|
|
40
|
+
DispatchKeyValue(entity,"damagetype",szDamage);
|
|
41
|
+
DispatchKeyValue(entity,"origin","8192 8192 8192");
|
|
42
|
+
DispatchSpawn(entity);
|
|
43
|
+
entity_set_string(entity, EV_SZ_classname, szClassname);
|
|
44
|
+
fake_touch(entity,idvictim);
|
|
45
|
+
remove_entity(entity);
|
|
46
|
+
return 1;
|
|
47
|
+
}
|
|
48
|
+
return 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
//wrapper for find_ent_by_class
|
|
52
|
+
stock find_ent(iStart, const szClassname[])
|
|
53
|
+
{
|
|
54
|
+
return find_ent_by_class(iStart, szClassname);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Get the Button(s) user is pressing */
|
|
58
|
+
stock get_user_button(id)
|
|
59
|
+
{
|
|
60
|
+
return entity_get_int(id, EV_INT_button);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
stock get_user_oldbutton(id)
|
|
64
|
+
{
|
|
65
|
+
return entity_get_int(id, EV_INT_oldbuttons);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Get flags an entity is flagged with */
|
|
69
|
+
stock get_entity_flags(ent)
|
|
70
|
+
{
|
|
71
|
+
return entity_get_int(ent, EV_INT_flags);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Get the distance between two entities */
|
|
75
|
+
stock get_entity_distance(ent1, ent2)
|
|
76
|
+
{
|
|
77
|
+
return floatround(entity_range(ent1, ent2));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Get grenade thrown by this user */
|
|
81
|
+
stock get_grenade(id)
|
|
82
|
+
{
|
|
83
|
+
new iGrenade = find_ent_by_class(-1, "grenade");
|
|
84
|
+
while(iGrenade > 0)
|
|
85
|
+
{
|
|
86
|
+
if(entity_get_edict(iGrenade, EV_ENT_owner) == id)
|
|
87
|
+
return iGrenade;
|
|
88
|
+
|
|
89
|
+
iGrenade = find_ent_by_class(iGrenade, "grenade");
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Get origin of a brush entity */
|
|
96
|
+
stock get_brush_entity_origin(ent, Float:orig[3])
|
|
97
|
+
{
|
|
98
|
+
new Float:Min[3], Float:Max[3];
|
|
99
|
+
|
|
100
|
+
entity_get_vector(ent, EV_VEC_origin, orig);
|
|
101
|
+
entity_get_vector(ent, EV_VEC_mins, Min);
|
|
102
|
+
entity_get_vector(ent, EV_VEC_maxs, Max);
|
|
103
|
+
|
|
104
|
+
orig[0] += (Min[0] + Max[0]) * 0.5;
|
|
105
|
+
orig[1] += (Min[1] + Max[1]) * 0.5;
|
|
106
|
+
orig[2] += (Min[2] + Max[2]) * 0.5;
|
|
107
|
+
|
|
108
|
+
return 1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Remove entity by name */
|
|
112
|
+
stock remove_entity_name(const eName[])
|
|
113
|
+
{
|
|
114
|
+
new iEntity = find_ent_by_class(-1, eName);
|
|
115
|
+
while (iEntity > 0)
|
|
116
|
+
{
|
|
117
|
+
remove_entity(iEntity);
|
|
118
|
+
iEntity = find_ent_by_class(-1, eName);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
return 1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* Get the contents of the point a user is aiming at */
|
|
125
|
+
stock ViewContents(id)
|
|
126
|
+
{
|
|
127
|
+
new origin[3], Float:Orig[3];
|
|
128
|
+
get_user_origin(id, origin, Origin_AimEndEyes);
|
|
129
|
+
Orig[0] = float(origin[0]);
|
|
130
|
+
Orig[1] = float(origin[1]);
|
|
131
|
+
Orig[2] = float(origin[2]);
|
|
132
|
+
|
|
133
|
+
return point_contents(Orig);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
stock get_speed(ent)
|
|
137
|
+
{
|
|
138
|
+
new Float:Vel[3];
|
|
139
|
+
entity_get_vector(ent, EV_VEC_velocity, Vel);
|
|
140
|
+
|
|
141
|
+
return floatround(vector_length(Vel));
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/* Set rendering of an entity */
|
|
145
|
+
stock set_rendering(index, fx=kRenderFxNone, r=255, g=255, b=255, render=kRenderNormal, amount=16)
|
|
146
|
+
{
|
|
147
|
+
entity_set_int(index,EV_INT_renderfx,fx);
|
|
148
|
+
new Float:RenderColor[3];
|
|
149
|
+
RenderColor[0] = float(r);
|
|
150
|
+
RenderColor[1] = float(g);
|
|
151
|
+
RenderColor[2] = float(b);
|
|
152
|
+
entity_set_vector(index,EV_VEC_rendercolor,RenderColor);
|
|
153
|
+
entity_set_int(index,EV_INT_rendermode,render);
|
|
154
|
+
entity_set_float(index,EV_FL_renderamt,float(amount));
|
|
155
|
+
|
|
156
|
+
return 1;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* Set flags on an entity */
|
|
160
|
+
stock set_entity_flags(ent,flag,onoff)
|
|
161
|
+
{
|
|
162
|
+
new iFlags = entity_get_int(ent, EV_INT_flags);
|
|
163
|
+
if(iFlags & flag)
|
|
164
|
+
{
|
|
165
|
+
if(onoff == 1) return 2;
|
|
166
|
+
iFlags &= ~flag;
|
|
167
|
+
}
|
|
168
|
+
else
|
|
169
|
+
{
|
|
170
|
+
if(onoff == 0) return 2;
|
|
171
|
+
iFlags |= flag;
|
|
172
|
+
}
|
|
173
|
+
entity_set_int(ent, EV_INT_flags, iFlags);
|
|
174
|
+
return 1;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* If visible = 1, entity will be set to be visible, else invisible. */
|
|
178
|
+
stock set_entity_visibility(entity, visible = 1)
|
|
179
|
+
{
|
|
180
|
+
entity_set_int(entity, EV_INT_effects, visible == 1 ? entity_get_int(entity, EV_INT_effects) & ~EF_NODRAW : entity_get_int(entity, EV_INT_effects) | EF_NODRAW);
|
|
181
|
+
|
|
182
|
+
return 1;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* Returns 1 if entity is visible. */
|
|
186
|
+
stock get_entity_visibility(entity)
|
|
187
|
+
{
|
|
188
|
+
return !(entity_get_int(entity, EV_INT_effects) & EF_NODRAW);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
stock set_user_velocity(entity, const Float:vec[3])
|
|
192
|
+
{
|
|
193
|
+
return entity_set_vector(entity, EV_VEC_velocity, vec);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
stock get_user_velocity(entity, Float:vec[3])
|
|
197
|
+
{
|
|
198
|
+
return entity_get_vector(entity, EV_VEC_velocity, vec);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* Backwards compatible */
|
|
202
|
+
/* Hurts/Kills players in a sphere, like an explosion, Multiplier determines damage. */
|
|
203
|
+
stock RadiusDamage(const Float:fExplodeAt[3], iDamageMultiplier, iRadiusMultiplier)
|
|
204
|
+
{
|
|
205
|
+
return radius_damage(fExplodeAt, iDamageMultiplier, iRadiusMultiplier);
|
|
206
|
+
}
|
|
207
|
+
/* Gives you a velocity in the direction a player is looking, iVelocity is the multiplier. */
|
|
208
|
+
stock VelocityByAim(iIndex,iVelocity, Float:vRetValue[3])
|
|
209
|
+
{
|
|
210
|
+
return velocity_by_aim(iIndex,iVelocity,vRetValue);
|
|
211
|
+
}
|
|
212
|
+
/* Will return the contents of a point (inside map? in sky? outside map? etc.). */
|
|
213
|
+
stock PointContents(const Float:fCheckAt[3])
|
|
214
|
+
{
|
|
215
|
+
return point_contents(fCheckAt);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
stock set_size(index, const Float:mins[3], const Float:maxs[3])
|
|
219
|
+
{
|
|
220
|
+
return entity_set_size(index,mins,maxs);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
//by Twilight Suzuka, request addition at29428
|
|
224
|
+
//"Lifted from HLSDK"
|
|
225
|
+
stock IsInWorld( ent )
|
|
226
|
+
{
|
|
227
|
+
new Float:origin[3];
|
|
228
|
+
entity_get_vector(ent,EV_VEC_origin,origin);
|
|
229
|
+
|
|
230
|
+
if (origin[0] >= 4096.0) return 0;
|
|
231
|
+
if (origin[1] >= 4096.0) return 0;
|
|
232
|
+
if (origin[2] >= 4096.0) return 0;
|
|
233
|
+
if (origin[0] <= -4096.0) return 0;
|
|
234
|
+
if (origin[1] <= -4096.0) return 0;
|
|
235
|
+
if (origin[2] <= -4096.0) return 0;
|
|
236
|
+
|
|
237
|
+
new Float:velocity[3];
|
|
238
|
+
entity_get_vector(ent,EV_VEC_velocity,velocity);
|
|
239
|
+
|
|
240
|
+
if (velocity[0] >= 2000) return 0;
|
|
241
|
+
if (velocity[1] >= 2000) return 0;
|
|
242
|
+
if (velocity[2] >= 2000) return 0;
|
|
243
|
+
if (velocity[0] <= -2000) return 0;
|
|
244
|
+
if (velocity[1] <= -2000) return 0;
|
|
245
|
+
if (velocity[2] <= -2000) return 0;
|
|
246
|
+
|
|
247
|
+
return 1;
|
|
248
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/***********************************************
|
|
2
|
+
|
|
3
|
+
[ Corona-Bytes.NET ] EvolutionX Core Plugin
|
|
4
|
+
|
|
5
|
+
(c) Corona - Bytes .NET coders :: coders@corona-bytes.net
|
|
6
|
+
|
|
7
|
+
> 2005 Corona Bytes :: http://www.corona-bytes.net
|
|
8
|
+
|
|
9
|
+
***********************************************/
|
|
10
|
+
|
|
11
|
+
#if defined __EVOLUTION_CORE__
|
|
12
|
+
#endinput
|
|
13
|
+
#endif
|
|
14
|
+
#define __EVOLUTION_CORE__
|
|
15
|
+
|
|
16
|
+
#pragma library EvolutionXCore
|
|
17
|
+
|
|
18
|
+
native setClientPL ( Client, PowerLevel );
|
|
19
|
+
native getClientPL ( Client );
|
|
20
|
+
native setClientACPL ( Client, ActualPowerLevel );
|
|
21
|
+
native getClientACPL ( Client );
|
|
22
|
+
native setClientADPL ( Client, AfterDeathPowerLevel );
|
|
23
|
+
native getClientADPL ( Client );
|
|
24
|
+
native setClientSPL ( Client, PowerLevel );
|
|
25
|
+
native setClientPLtoADPL ( Client );
|
|
26
|
+
|
|
27
|
+
native setClientKI ( Client, Ki );
|
|
28
|
+
native getClientKI ( Client );
|
|
29
|
+
|
|
30
|
+
native setClientHP ( Client, Health );
|
|
31
|
+
native getClientHP ( Client );
|
|
32
|
+
native setClientMHP ( Client, MaximumHealth );
|
|
33
|
+
native getClientMHP ( Client );
|
|
34
|
+
|
|
35
|
+
native setClientSPEED ( Client, Speed );
|
|
36
|
+
native getClientSPEED ( Client );
|
|
37
|
+
native setClientSWOOPSPEED ( Client, SwoopSpeed );
|
|
38
|
+
native getClientSWOOPSPEED ( Client );
|
|
39
|
+
|
|
40
|
+
native setClientPROTECT ( Client, bool:Enable = true );
|
|
41
|
+
native getClientPROTECT ( Client );
|
|
42
|
+
|
|
43
|
+
native setClientFROZEN ( Client, bool:Enable = true );
|
|
44
|
+
native getClientFROZEN ( Client );
|
|
45
|
+
|
|
46
|
+
native setClientGOD ( Client, bool:Enable = true );
|
|
47
|
+
native getClientGOD ( Client );
|
|
48
|
+
|
|
49
|
+
native getClientFLY ( Client );
|
|
50
|
+
|
|
51
|
+
native setClientHiddenTURBO ( Client, bool:Enable = true );
|
|
52
|
+
native getClientTURBO ( Client );
|
|
53
|
+
|
|
54
|
+
native getClientBLOCK ( Client );
|
|
55
|
+
|
|
56
|
+
native setClientHiddenPOWERUP ( Client, bool:Enable = true );
|
|
57
|
+
native getClientPOWERUP ( Client );
|
|
58
|
+
|
|
59
|
+
native getClientSWOOPING ( Client );
|
|
60
|
+
native getClientATKSHOOT ( Client );
|
|
61
|
+
native getClientATKCHARGE ( Client );
|
|
62
|
+
native getClientMELEE ( Client );
|
|
63
|
+
native getClientTHROWAWAY ( Client );
|
|
64
|
+
native getClientTHROW ( Client );
|
|
65
|
+
native getClientWALLGND ( Client );
|
|
66
|
+
native getClientINFREEFALL ( Client );
|
|
67
|
+
native getClientBEAMJUMP ( Client );
|
|
68
|
+
|
|
69
|
+
// kills a player without score/death msg
|
|
70
|
+
native silentClientKILL ( Client );
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// vim: set ts=4 sw=4 tw=99 noet:
|
|
2
|
+
//
|
|
3
|
+
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
|
|
4
|
+
// Copyright (C) The AMX Mod X Development Team.
|
|
5
|
+
// Based on stocks and information provided by LynX.
|
|
6
|
+
//
|
|
7
|
+
// This software is licensed under the GNU General Public License, version 3 or higher.
|
|
8
|
+
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
|
|
9
|
+
// https://alliedmods.net/amxmodx-license
|
|
10
|
+
|
|
11
|
+
#if defined _esfconst_included
|
|
12
|
+
#endinput
|
|
13
|
+
#endif
|
|
14
|
+
#define _esfconst_included
|
|
15
|
+
|
|
16
|
+
enum
|
|
17
|
+
{
|
|
18
|
+
Character_Buu = 1,
|
|
19
|
+
Character_Goku = 2,
|
|
20
|
+
Character_Gohan = 3, //my favorite :)
|
|
21
|
+
Character_Krillin = 4,
|
|
22
|
+
Character_Frieza = 5,
|
|
23
|
+
Character_Piccolo = 6,
|
|
24
|
+
Character_Trunks = 7,
|
|
25
|
+
Character_Vegeta = 8,
|
|
26
|
+
Character_Cell = 9,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
enum
|
|
30
|
+
{
|
|
31
|
+
Explosion_Blue = 0,
|
|
32
|
+
Explosion_Green,
|
|
33
|
+
Explosion_Orange,
|
|
34
|
+
Explosion_Purple,
|
|
35
|
+
Explosion_Yellow,
|
|
36
|
+
Explosion_Red,
|
|
37
|
+
Explosion_White,
|
|
38
|
+
Explosions_Total,
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
enum
|
|
42
|
+
{
|
|
43
|
+
Attack_Kamehameha=1,
|
|
44
|
+
Attack_SpiritBomb,
|
|
45
|
+
Attack_GalletGun,
|
|
46
|
+
Attack_FinalFlash,
|
|
47
|
+
Attack_Renzoku,
|
|
48
|
+
Attack_Kametorpedo,
|
|
49
|
+
Attack_GenericBeam,
|
|
50
|
+
Attack_Throw,
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
enum
|
|
54
|
+
{
|
|
55
|
+
Direction_Left=1,
|
|
56
|
+
Direction_Right,
|
|
57
|
+
Direction_Up,
|
|
58
|
+
Direction_Down,
|
|
59
|
+
Direction_Forward,
|
|
60
|
+
Direction_Backward,
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
enum
|
|
64
|
+
{
|
|
65
|
+
Recovery_Kicked=1,
|
|
66
|
+
Recovery_Tumbled,
|
|
67
|
+
Recovery_Lying,
|
|
68
|
+
Recovery_Thrown,
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
#define ESF_CHARGING 1
|
|
72
|
+
#define ESF_CONTROLLING 2
|
|
73
|
+
#define ESF_SHOOTING 3
|
|
74
|
+
#define ESF_SHOT 4
|