Неверный раздел форума
C++:
/*########### Цвета Мин и лазерных лучей ###########*/
#define WEAPON_NAME "\yЛазерная Мина"
#define WEAPON_COST 10
// Цвет мины и лазера людей
new const
Red_Hum = 125,
Green_Hum = 0,
Blue_Hum = 250;
// Цвет мины и лазера зомби
new const
Red_Zomb = 0,
Green_Zomb = 255,
Blue_Zomb = 0;
/*####### Цвета Мин и лазерных лучей (конец) #######*/
enum CsTeams {
CS_TEAM_UNASSIGNED = 0,
CS_TEAM_T = 1,
CS_TEAM_CT = 2,
CS_TEAM_SPECTATOR = 3
};
enum tripmine_e {
TRIPMINE_IDLE1 = 0,
TRIPMINE_IDLE2,
TRIPMINE_ARM1,
TRIPMINE_ARM2,
TRIPMINE_FIDGET,
TRIPMINE_HOLSTER,
TRIPMINE_DRAW,
TRIPMINE_WORLD,
TRIPMINE_GROUND,
};
enum
{
POWERUP_THINK,
BEAMBREAK_THINK,
EXPLOSE_THINK
};
enum
{
POWERUP_SOUND,
ACTIVATE_SOUND,
STOP_SOUND
};
new const
ENT_MODELS[] = "models/zombie_plague/v_laser_mine.mdl",
ENT_SOUND1[] = "weapons/mine_deploy.wav",
ENT_SOUND2[] = "weapons/mine_charge.wav",
ENT_SOUND3[] = "weapons/mine_activate.wav",
ENT_SOUND4[] = "items/suitchargeok1.wav",
ENT_SOUND5[] = "items/gunpickup2.wav",
ENT_SOUND6[] = "debris/bustglass1.wav",
ENT_SOUND7[] = "debris/bustglass2.wav",
ENT_SPRITE1[] = "sprites/shockwave.spr",
ENT_SPRITE2[] = "sprites/lm_explode.spr";
new const
ENT_CLASS_NAME[] = "lasermine",
ENT_CLASS_NAME3[] = "func_breakable",
gSnarkClassName[] = "wpn_snark", // Для совместимости с плагином "Snark"
barnacle_class[] = "barnacle", // Для совместимости с плагином "Barnacle"
weapon_box[] = "weaponbox";
warning 201: redefinition of constant/macro (symbol "CsTeams")