ttt_const.inc
Original include source with line numbers.
| 1 | #if defined _ttt_const_included |
| 2 | #endinput |
| 3 | #endif |
| 4 | #define _ttt_const_included |
| 5 | |
| 6 | #if AMXX_VERSION_NUM < 183 |
| 7 | #include "ttt_colorchat" |
| 8 | #define client_print_color ttt_client_print |
| 9 | #define print_team_default NORMAL |
| 10 | #define print_team_grey GREY |
| 11 | #define print_team_red RED |
| 12 | #define print_team_blue BLUE |
| 13 | #define print_team_green GREEN |
| 14 | |
| 15 | stock HamHook:RegisterHamPlayer(Ham:function, const Callback[], Post=0) |
| 16 | return RegisterHam(function, "player", Callback, Post); |
| 17 | |
| 18 | #if defined _fakemeta_included |
| 19 | #define write_coord_f(%0) engfunc(EngFunc_WriteCoord, %0) |
| 20 | stock message_begin_f(dest, msg_type, const Float:origin[3] = {0.0,0.0,0.0}, player=0) |
| 21 | engfunc(EngFunc_MessageBegin, dest, msg_type, origin, player); |
| 22 | #endif |
| 23 | #endif |
| 24 | |
| 25 | #define TTT_VERSION "2.5.2" |
| 26 | #define TTT_VERSION_INT 252 |
| 27 | #define TTT_AUTHOR "GuskiS" |
| 28 | #define TTT_TAG "^3[^4TTT^3]^1" |
| 29 | |
| 30 | #define TTT_DEADBODY "ttt_dead_body" |
| 31 | #define TTT_HPSTATION "ttt_hp_station" |
| 32 | #define TTT_DEATHSTATION "ttt_death_station" |
| 33 | #define TTT_C4_SUB "ttt_c4_subent" |
| 34 | |
| 35 | #define TTT_ITEMLENGHT 64 // Max length of items name. |
| 36 | #define TTT_FILELENGHT 64 // Max length of files name. |
| 37 | #define TTT_MAXSHOP 25 // Max items in shop. |
| 38 | #define TTT_MAXBACKPACK 20 // Max items in backpack. |
| 39 | #define TTT_SETTINGSFILE "ttt_mod.ini" |
| 40 | #define TTT_CONFIGFILE "ttt_mod.cfg" |
| 41 | #define TTT_ADMINACCESS ADMIN_BAN |
| 42 | |
| 43 | #pragma semicolon 1 |
| 44 | |
| 45 | stock const g_iTeamColors[][] = |
| 46 | { |
| 47 | {0, 255, 0}, |
| 48 | {255, 50, 0}, |
| 49 | {0, 50, 255}, |
| 50 | {0, 255, 0}, |
| 51 | {0, 255, 0}, |
| 52 | {0, 0, 0} |
| 53 | }; |
| 54 | |
| 55 | enum _:PLAYER_STATS |
| 56 | { |
| 57 | STATS_GWK, // Game winning kills |
| 58 | STATS_KILLS_I, // Kills as Innocent // Right ones |
| 59 | STATS_KILLS_D, // Kills as Detective |
| 60 | STATS_KILLS_T, // Kills as Traitor |
| 61 | STATS_RDM, // Team kills |
| 62 | STATS_INN, // Times innocent |
| 63 | STATS_DET, // Times detective |
| 64 | STATS_TRA, // Times traitor |
| 65 | STATS_BOMBP, // Bomb planted |
| 66 | STATS_BOMBE, // Bomb exploded |
| 67 | STATS_BOMBD, // Bomb defused |
| 68 | STATS_POINTS // Total points |
| 69 | } |
| 70 | |
| 71 | enum _:LOG_MESSAGES(<<= 1) |
| 72 | { |
| 73 | LOG_DEFAULT = 1, |
| 74 | LOG_ERROR, |
| 75 | LOG_GAMETYPE, |
| 76 | LOG_ITEM, |
| 77 | LOG_KILL, |
| 78 | LOG_DAMAGE, |
| 79 | LOG_MISC |
| 80 | } |
| 81 | |
| 82 | enum _:BODY_DATA |
| 83 | { |
| 84 | BODY_TIME, // DNA active time |
| 85 | BODY_KILLER, // ID who killed |
| 86 | BODY_TRACER, // ID who is tracing killer |
| 87 | BODY_ACTIVE, // Is actually tracing happening |
| 88 | BODY_ENTID, // Bodies entid |
| 89 | BODY_CALLD, // Does this body calls Detective to inspect it? |
| 90 | BODY_EXPLODED // It exploded :( |
| 91 | } |
| 92 | |
| 93 | enum _:SETUP_DATA |
| 94 | { |
| 95 | SETUP_ITEMID, // Item ID obviously |
| 96 | SETUP_ITEMENT, // Set up items entid |
| 97 | SETUP_ITEMTIME, // Time for DNA, I think |
| 98 | SETUP_ITEMOWNER, // Items owner ID |
| 99 | SETUP_ITEMTRACER, // Tracers ID |
| 100 | SETUP_ITEMACTIVE, // Is tracing active |
| 101 | SETUP_ITEMNAME[TTT_ITEMLENGHT] // Items name |
| 102 | } |
| 103 | |
| 104 | enum _:PLAYER_DATA |
| 105 | { |
| 106 | PD_KILLEDBY, // Killers ID |
| 107 | PD_KILLEDWEAP, // Weapons ID |
| 108 | PD_KILLEDTIME, // Some time, get_roundtime I guess |
| 109 | PD_KILLEDSTATE, // Killed state |
| 110 | PD_KILLEDDEATHS, // Players death count |
| 111 | PD_KILLCOUNT, // Players kill count |
| 112 | PD_IDENTIFIED, // Is he identified? |
| 113 | PD_KARMA, // Players karma, the one used in damge calculations |
| 114 | PD_KARMATEMP, // Temporary karma, the one actually being changed all the time |
| 115 | PD_CREDITS, // Players credits |
| 116 | PD_C4EXPLODED, // Did he explode C4 :O |
| 117 | PD_SCOREBOARD, // Holds info about scoreboard (1 means cant change) |
| 118 | PD_PLAYERSTATE, // Why the fuck is this last one? ;o |
| 119 | PD_KILLEDBYITEM, // If killed by item, stores that item ID |
| 120 | PD_HOLDINGITEM, // Is holding any item? |
| 121 | PD_ITEMSTATE, // If is holding item, what state this item has? |
| 122 | PD_HIDENAME, // Should his name be hidden? |
| 123 | PD_OTHERNAME, // Player ID to steal name from. |
| 124 | PD_FAKESTATE, // Fakes player state. |
| 125 | PD_LOYALTY, // Player loyalty. |
| 126 | PD_ITEM_SHARING // Share item with PLAYERID. |
| 127 | } |
| 128 | |
| 129 | enum _:PLAYER_CLASS |
| 130 | { |
| 131 | PC_NONE, |
| 132 | PC_TRAITOR, |
| 133 | PC_DETECTIVE, |
| 134 | PC_INNOCENT, |
| 135 | PC_DEAD, |
| 136 | PC_SPECIAL |
| 137 | } |
| 138 | |
| 139 | enum _:GAME_MODE |
| 140 | { |
| 141 | GAME_UNSET, |
| 142 | GAME_OFF, |
| 143 | GAME_PREPARING, |
| 144 | GAME_RESTARTING, |
| 145 | GAME_STARTED, |
| 146 | GAME_ENDED |
| 147 | } |
| 148 | |
| 149 | enum _:GLOBAL_INFO |
| 150 | { |
| 151 | GI_GAMEMODE |
| 152 | } |
| 153 | |
| 154 | enum _:PLAYER_DEATHS(+= 1) |
| 155 | { |
| 156 | DEATHS_SUICIDE = 3000, |
| 157 | DEATHS_GENERIC, |
| 158 | DEATHS_SLASH, |
| 159 | DEATHS_BURN, |
| 160 | DEATHS_FREEZE, |
| 161 | DEATHS_FALL, |
| 162 | DEATHS_BLAST, |
| 163 | DEATHS_SHOCK, |
| 164 | DEATHS_DROWN, |
| 165 | DEATHS_NERVEGAS, |
| 166 | DEATHS_POISON, |
| 167 | DEATHS_RADIATION, |
| 168 | DEATHS_ACID |
| 169 | } |
| 170 | |
| 171 | enum _:TTT_WARNINGS |
| 172 | { |
| 173 | WARN_SPECIAL, |
| 174 | WARN_INNOCENT, |
| 175 | WARN_CONTINUED, |
| 176 | WARN_BANNED, |
| 177 | WARN_PUNISH, |
| 178 | WARN_BADAIM |
| 179 | } |
| 180 | |
| 181 | enum _:BOMB_STATUS |
| 182 | { |
| 183 | BS_PLANTED, |
| 184 | BS_DEFUSED, |
| 185 | BS_FAILED, |
| 186 | BS_BOMBED |
| 187 | } |
| 188 | |
| 189 | enum _:PLAYER_LOYALTY |
| 190 | { |
| 191 | PL_NONE, |
| 192 | PL_PROVABLE, |
| 193 | PL_SUSPICIOUS, |
| 194 | PL_AVOIDABLE, |
| 195 | PL_TRAITOROUS |
| 196 | } |