|
楼主 |
发表于 2011-2-24 23:03:07
|
显示全部楼层
来自 中国–广东–广州
本帖最后由 点通粉丝 于 2011-2-24 23:12 编辑
L*Y*Y* 你QQ是多少...看来CS1.5版的僵尸服没什么人去搞的了,,我最近搞了一个防豆客平台的
大家有空一起完善一下- #include <amxmodx>
- #include <engine>
- #include <cstrike>
- #include <fun>
- #include <csdm>
- #include <fakemeta>
- #include <amxmisc>
- #include <float>
- ///////////quanjushuju///////////////
- // 自定义夜视彩色第二段开头部份代码//
- new const g_PLUGIN[] = "Custom NVG Color"
- new const g_VERSION[] = "0.3"
- new const g_AUTHOR[] = "SAMURAI"
- #define g_ALPHA 150
- new bool:NightVisionUse[33]
- new gmsgFade
- new pnable, pcolor, pnumdecay, pnumradius, pnumlife; //结尾//
- new g_reallytime = 20
- new g_countstart = 20
- new g_is_human_protected[33] = { 0 }
- new g_zombietime = 0
- new g_is_player_human[33] = { 0 }
- new g_is_player_zombie[33] = { 0 }
- new g_max_zombie_life
- new g_zombie_life[33] = { 1 }
- new g_meta_base_hp
- new g_meta_extr_hp
- new g_daug_base_hp
- new g_add_hp
- new g_StayTime = 0
- new g_countvoice[11][]=
- {"FeNgGe/FeNgGe_10.wav","FeNgGe/FeNgGe_09.wav","FeNgGe/FeNgGe_08.wav","FeNgGe/FeNgGe_07.wav","FeNgGe/FeNgGe_06.wav","FeNgGe/FeNgGe_05.wav","FeNgGe/FeNgGe_04.wav","FeNgGe/FeNgGe_03.wav","FeNgGe/FeNgGe_02.wav","FeNgGe/FeNgGe_01.wav","x/x_attack3.wav"}
- #define MAPNAME "de_dust2" //不管你开什么图都好.都会变回de_dust2//内定地图/
- #define ZOMBIE_SPEED 300.0 //僵尸行走速度.正常280/
- ////////equip///////////////////
- #define EQUIP_PRI (1<<0)
- #define EQUIP_SEC (1<<1)
- #define EQUIP_ARMOR (1<<2)
- #define PLUGIN "SKY" //月色黑夜天空代码开头第一段//
- #define VERSION "1.0"
- #define AUTHOR "CS-FG"
- #define max_suffix 6
- new g_suffix[max_suffix][3] = { "up", "dn", "ft", "bk", "lf", "rt" }
- new skyarray[22][16]={"backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley","backalley"} //月色黑夜天空代码开头第一段结尾部份//
- //菜单
- new g_SecMenu[] = "Zombie: Secondary Weapons"; // 菜单名
- new g_SecMenuID = -1; // 菜单ID
- new g_cSecondary; // 菜单回调
- new g_PrimMenu[] = "Zombie: Primary Weapons";
- new g_PrimMenuID = -1;
- new g_cPrimary;
- //武器选择
- new g_SecWeapons[33][18];
- new g_PrimWeapons[33][18];
- //配置武器储存持有人
- new g_BotPrim[MAX_WEAPONS][18];
- new g_iNumBotPrim;
- new g_BotSec[MAX_WEAPONS][18];
- new g_iNumBotSec;
- new g_Secondary[MAX_SECONDARY][18];
- new bool:g_DisabledSec[MAX_WEAPONS];
- new g_iNumSec;
- new g_Primary[MAX_PRIMARY][18];
- new bool:g_DisabledPrim[MAX_WEAPONS];
- new g_iNumPrim;
- //快速修复的菜单页面
- new g_MenuPages[33] = {0};
- ///////装备/////////////////////
- ////////////////////////////////////
- public plugin_init()
- {
- //改变手部模型代码第一段开头部份
- register_plugin("TeamKnives","1.0","Ywa-NL")
- register_event("CurWeapon", "weaponChange", "be", "1=1")
- register_cvar("amx_teamknives", "1")
- // 自定义夜视彩色第二段开头部份代码
- register_plugin(g_PLUGIN,g_VERSION,g_AUTHOR);
-
- register_concmd("nightvision","ToggleNVG")
-
- pnable = register_cvar("custom_nvg","1"); //1 =启用(默认)2 =禁用//
- pcolor = register_cvar("custom_nvg_rgb","255 105 180"); //设置夜视颜色,以RGB格式//
- pnumdecay = register_cvar("custom_nvg_decay","10"); // 设置光衰减率//
- pnumradius = register_cvar("custom_nvg_radius","100"); //夜视可看距离//
- pnumlife = register_cvar("custom_nvg_life","1"); //设置生命的光 默认值= 1
- register_event("ResetHUD","ev_new_round","be");
- gmsgFade = get_user_msgid("ScreenFade"); //自定义夜视彩色第二段结尾部份代码//
- register_plugin("Zombie Vince main","1.1.2","Vincent")
- set_task(1.0,"lightning_effects") //闪电部份代码//
-
- // 菜单和回调
- g_SecMenuID = menu_create(g_SecMenu, "m_SecHandler",0);
- g_PrimMenuID = menu_create(g_PrimMenu, "m_PrimHandler",0);
- g_cSecondary = menu_makecallback("c_Secondary");
- g_cPrimary = menu_makecallback("c_Primary");
-
-
- // 为了在武器菜单
- csdm_reg_cfg("secondary", "cfgSecondary");
- csdm_reg_cfg("primary", "cfgPrimary");
- csdm_reg_cfg("botprimary", "cfgBotPrim");
- csdm_reg_cfg("botsecondary", "cfgBotSec");
- //它的武器和Del下降
- register_clcmd("drop", "hook_drop")
- //保持正确的僵尸
- register_forward(FM_ClientUserInfoChanged,"fw_info")
- register_forward(FM_Touch,"fw_Touch")
- //register_forward(FM_GetGameDescription,"GameDesc")
- register_event("CurWeapon","event_cur_weapon","be", "1=1")
- register_event("Damage", "event_damage", "be", "2!0","3=0","4!0")
-
- g_meta_base_hp = register_cvar("zombie_meta_base_hp","8000") //母体僵尸基础HP。默认为2000
- g_meta_extr_hp = register_cvar("zombie_meta_extr_hp","500") //每多1名玩家,母体僵尸增加的额外HP。默认为400
- g_daug_base_hp = register_cvar("zombie_daug_base_hp","1800") //子体僵尸基础HP。默认为1500
- g_add_hp = register_cvar("zombie_add_hp","500") //僵尸每感染一个人类,增加的HP。默认为800
- g_max_zombie_life = register_cvar("zombie_max_life","8") //子体僵尸最大的重生次数。默认为1
- register_logevent("event_new_round", 2, "0=World triggered", "1=Round_Start")
-
- }
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|