找回密码
 立即注册

QQ登录

只需一步,快速开始

楼主: SiMen.K.

[分享] Kz_SiMen_stand-alone(Kz插件包 单机必备)

   火... [复制链接]

该用户从未签到

发表于 2010-6-11 09:20:43 | 显示全部楼层
插件不错

该用户从未签到

发表于 2010-6-12 22:33:49 | 显示全部楼层
好东西。好东西

该用户从未签到

发表于 2010-6-21 21:18:23 | 显示全部楼层
我用这个插件怎么跳不出蓝色的数据来哦

该用户从未签到

发表于 2010-6-21 22:09:37 | 显示全部楼层
我也用了这个插件,改了一下颜色,不知道怎么改回去了[img][/img],请教一下高人
kz_longjumps0000.jpg

该用户从未签到

发表于 2010-6-25 17:25:39 | 显示全部楼层
回复 9# SiMen.K.


    我只想要  助力跳和悬空跳的,插件麻烦K姐姐发一下

该用户从未签到

 楼主| 发表于 2010-6-25 23:37:08 | 显示全部楼层
本帖最后由 SiMen.K. 于 2010-6-25 23:38 编辑

回复 85# SiMen.Mango


   
  1. #include <amxmodx>
  2. #include <engine>

  3. #define PLUGIN "Jump Menu"
  4. #define VERSION "2.0"
  5. #define AUTHOR "v3x"

  6. #define MAX_PLAYERS 33

  7. static const CVAR_MAX_JUMPS[] = "amx_maxjumps";
  8. static const CVAR_WJ_STRENGTH[] = "walljump_strength";
  9. static const CVAR_WJ_NUM[] = "walljump_num";
  10. static const CVAR_WJ_TEAM[] = "walljump_team";

  11. new PCVAR_MAX_JUMPS;
  12. new PCVAR_WJ_STRENGTH;
  13. new PCVAR_WJ_NUM;
  14. new PCVAR_WJ_TEAM;

  15. new bool:caughtJump[MAX_PLAYERS];
  16. new bool:doWJump[MAX_PLAYERS];
  17. new Float:jumpVeloc[MAX_PLAYERS][3];
  18. new newButton[MAX_PLAYERS];
  19. new numJumps[MAX_PLAYERS];
  20. new team[MAX_PLAYERS];
  21. new wallteam;

  22. public plugin_init()
  23. {
  24. register_plugin(PLUGIN , VERSION , AUTHOR);

  25. register_clcmd("say /jumpmenu" , "ClCmd_JumpMenu");
  26. register_clcmd("jumpmenu" , "ClCmd_JumpMenu");

  27. if(!cvar_exists(CVAR_MAX_JUMPS))
  28. PCVAR_MAX_JUMPS = register_cvar(CVAR_MAX_JUMPS , "2");
  29. else
  30. PCVAR_MAX_JUMPS = -1;

  31. PCVAR_WJ_STRENGTH = register_cvar(CVAR_WJ_STRENGTH , "300.0");
  32. PCVAR_WJ_NUM = register_cvar(CVAR_WJ_NUM , "3");
  33. PCVAR_WJ_TEAM = register_cvar(CVAR_WJ_TEAM , "0");

  34. register_touch("player" , "worldspawn" , "Touch_World");
  35. register_touch("player" , "func_wall" , "Touch_World");
  36. register_touch("player" , "func_breakable" , "Touch_World");
  37. }

  38. enum
  39. {
  40. JUMP_REGULAR = 0,
  41. JUMP_MULTI,
  42. JUMP_BUNNY,
  43. JUMP_WALL
  44. }

  45. new g_iJumpType[33];
  46. new jumpnum[33];
  47. new bool:dojump[33];

  48. public client_putinserver(id)
  49. {
  50. g_iJumpType[id] = JUMP_MULTI;
  51. jumpnum[id] = 0;
  52. dojump[id] = false;
  53. }

  54. public client_disconnect(id)
  55. {
  56. jumpnum[id] = 0;
  57. dojump[id] = false;

  58. caughtJump[id] = false;
  59. doWJump[id] = false;
  60. for(new x = 0; x < 3; x++)
  61. jumpVeloc[id][x] = 0.0;
  62. newButton[id] = 0;
  63. numJumps[id] = 0;
  64. }

  65. public ClCmd_JumpMenu(id)
  66. {
  67. new menu = menu_create("Select your jump type:" , "menuHandler_Jump");

  68. menu_additem(menu , "Multi-jump" , "" , 0);
  69. menu_additem(menu , "Bunnyhop" , "" , 0);
  70. menu_additem(menu , "Wall Jump^n" , "" , 0);
  71. menu_additem(menu , "Regular" , "" , 0);

  72. menu_setprop(menu , MPROP_EXIT , MEXIT_ALL);

  73. menu_display(id , menu , 0);

  74. new arg[21];
  75. read_argv(0 , arg , 20);
  76. if(!contain(arg , "say"))
  77. return PLUGIN_CONTINUE;

  78. return PLUGIN_HANDLED;
  79. }

  80. public menuHandler_Jump(id , menu , item)
  81. {
  82. if(item == MENU_EXIT)
  83. {
  84. menu_destroy(menu);
  85. return PLUGIN_HANDLED;
  86. }

  87. new szCommand[6] , szName[64];
  88. new access , callback;

  89. menu_item_getinfo(menu , item , access , szCommand , 5 , szName , 63 , callback);

  90. if(equal(szName , "Multi-jump"))
  91. {
  92. client_print(id , print_chat , "[AMXX] Multi-jump enabled");
  93. g_iJumpType[id] = JUMP_MULTI;

  94. menu_destroy(menu); return PLUGIN_CONTINUE;
  95. }
  96. else if(equal(szName , "Bunnyhop"))
  97. {
  98. client_print(id , print_chat , "[AMXX] Bunnyhop enabled");
  99. g_iJumpType[id] = JUMP_BUNNY;

  100. menu_destroy(menu); return PLUGIN_CONTINUE;
  101. }
  102. else if(equal(szName , "Wall Jump^n"))
  103. {
  104. client_print(id , print_chat , "[AMXX] Walljump enabled");
  105. g_iJumpType[id] = JUMP_WALL;

  106. menu_destroy(menu); return PLUGIN_CONTINUE;
  107. }
  108. else
  109. {
  110. client_print(id , print_chat , "[AMXX] Regular jumping enabled");
  111. g_iJumpType[id] = JUMP_REGULAR;

  112. menu_destroy(menu); return PLUGIN_CONTINUE;
  113. }

  114. menu_destroy(menu);

  115. return PLUGIN_HANDLED;
  116. }

  117. public client_PreThink(id)
  118. {
  119. if(!is_user_alive(id) || !g_iJumpType[id])
  120. return PLUGIN_CONTINUE;

  121. if(g_iJumpType[id] == JUMP_BUNNY)
  122. {
  123. entity_set_float(id, EV_FL_fuser2, 0.0) // Disable slow down after jumping

  124. // Code from CBasePlayer::Jump (player.cpp) Make a player jump automatically
  125. if (entity_get_int(id, EV_INT_button) & 2) { // If holding jump
  126. new flags = entity_get_int(id, EV_INT_flags)

  127. if (flags & FL_WATERJUMP)
  128. return PLUGIN_CONTINUE
  129. if ( entity_get_int(id, EV_INT_waterlevel) >= 2 )
  130. return PLUGIN_CONTINUE
  131. if ( !(flags & FL_ONGROUND) )
  132. return PLUGIN_CONTINUE

  133. new Float:velocity[3]
  134. entity_get_vector(id, EV_VEC_velocity, velocity)
  135. velocity[2] += 250.0
  136. entity_set_vector(id, EV_VEC_velocity, velocity)

  137. entity_set_int(id, EV_INT_gaitsequence, 6) // Play the Jump Animation

  138. return PLUGIN_CONTINUE;
  139. }
  140. }
  141. else if(g_iJumpType[id] == JUMP_MULTI)
  142. {
  143. if((get_user_button(id) & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(get_user_oldbutton(id) & IN_JUMP))
  144. {
  145. if(jumpnum[id] < get_pcvar_num(PCVAR_MAX_JUMPS))
  146. {
  147. dojump[id] = true
  148. jumpnum[id]++
  149. return PLUGIN_CONTINUE
  150. }
  151. }
  152. if((get_user_button(id) & IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
  153. {
  154. jumpnum[id] = 0
  155. return PLUGIN_CONTINUE
  156. }
  157. }
  158. else if(g_iJumpType[id] == JUMP_WALL)
  159. {
  160. wallteam = get_pcvar_num(PCVAR_WJ_TEAM)
  161. team[id] = get_user_team(id)
  162. if(!wallteam || wallteam == team[id])
  163. {
  164. newButton[id] = get_user_button(id)
  165. new oldButton = get_user_oldbutton(id)
  166. new flags = get_entity_flags(id)

  167. //reset if we are on ground
  168. if(caughtJump[id] && (flags & FL_ONGROUND))
  169. {
  170. numJumps[id] = 0
  171. caughtJump[id] = false
  172. }

  173. //begin when we jump
  174. if((newButton[id] & IN_JUMP) && (flags & FL_ONGROUND) && !caughtJump[id] && !(oldButton & IN_JUMP) && !numJumps[id])
  175. {
  176. caughtJump[id] = true
  177. entity_get_vector(id,EV_VEC_velocity,jumpVeloc[id])
  178. jumpVeloc[id][2] = get_pcvar_float(PCVAR_WJ_STRENGTH)
  179. }
  180. }
  181. }
  182. return PLUGIN_CONTINUE;
  183. }

  184. public client_PostThink(id)
  185. {
  186. if((g_iJumpType[id] != JUMP_MULTI && g_iJumpType[id] != JUMP_WALL) || !is_user_alive(id))
  187. return PLUGIN_CONTINUE

  188. if(dojump[id])
  189. {
  190. new Float:velocity[3]
  191. entity_get_vector(id,EV_VEC_velocity,velocity)
  192. velocity[2] = random_float(265.0,285.0)
  193. entity_set_vector(id,EV_VEC_velocity,velocity)
  194. dojump[id] = false

  195. return PLUGIN_CONTINUE
  196. }
  197. //do velocity if we walljumped
  198. else if(doWJump[id])
  199. {
  200. entity_set_vector(id,EV_VEC_velocity,jumpVeloc[id])

  201. doWJump[id] = false

  202. if(numJumps[id] >= get_pcvar_num(PCVAR_WJ_NUM)) //reset if we ran out of jumps
  203. {
  204. numJumps[id] = 0
  205. caughtJump[id] = false
  206. }
  207. }
  208. return PLUGIN_CONTINUE
  209. }

  210. public Touch_World(id, world)
  211. {
  212. if(is_user_alive(id) && g_iJumpType[id] == JUMP_WALL)
  213. {
  214. //if we touch wall and have jump pressed, setup for jump
  215. if(caughtJump[id] && (newButton[id] & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND))
  216. {
  217. //reverse velocity
  218. for(new x=0;x<2;x++)
  219. jumpVeloc[id][x] *= -1.0

  220. numJumps[id]++
  221. doWJump[id] = true
  222. }
  223. }
  224. }
复制代码
  1. /*
  2. *   _______     _      _  __          __
  3. *  | _____/    | |    | | \ \   __   / /
  4. *  | |         | |    | |  | | /  \ | |
  5. *  | |         | |____| |  | |/ __ \| |
  6. *  | |   ___   | ______ |  |   /  \   |
  7. *  | |  |_  |  | |    | |  |  /    \  |
  8. *  | |    | |  | |    | |  | |      | |
  9. *  | |____| |  | |    | |  | |      | |
  10. *  |_______/   |_|    |_|  \_/      \_/
  11. *
  12. *CVARs:
  13. *longjump_on
  14. *1=on 0=off (Default: 1)
  15. *longjump_speed
  16. *speed at which you jump (Default: 500.0)
  17. *longjump_bhop
  18. *Bunny Hopping on - 1=on 0=off (Default: 0)
  19. *
  20. *  Last Edited: 01-05-08
  21. *
  22. *  ============
  23. *   Changelog:
  24. *  ============
  25. *
  26. *  v1.0
  27. *    -Initial Release
  28. *
  29. */
  30. #define VERSION "1.0"
  31. #include <chr_engine>
  32. new toggle_pcvar, speed_pcvar, gravity_pcvar, bhop_pcvar
  33. public plugin_init()
  34. {
  35. register_plugin("Long Jump + Bunny Hop","1.0","GHW_Chronic")
  36. toggle_pcvar = register_cvar("longjump_on","1")
  37. speed_pcvar = register_cvar("longjump_speed","500.0")
  38. gravity_pcvar = get_cvar_pointer("sv_gravity")
  39. bhop_pcvar = register_cvar("longjump_bhop","0")
  40. register_forward(FM_PlayerPreThink,"FM_PreThink")
  41. }
  42. public FM_PreThink(id)
  43. {
  44. if(get_pcvar_num(toggle_pcvar) && (pev(id,pev_button) & IN_JUMP) && (pev(id,pev_flags) & FL_ONGROUND))
  45. {
  46.   if(get_pcvar_num(bhop_pcvar) || !(pev(id,pev_oldbuttons) & IN_JUMP)) blah(id)
  47. }
  48. }
  49. public blah(id)
  50. {
  51. set_speed(id,get_pcvar_float(speed_pcvar),3)
  52. static Float:velocity[3]
  53. pev(id,pev_velocity,velocity)
  54. velocity[2] = get_pcvar_float(gravity_pcvar) / 3.0
  55. new button = pev(id,pev_button)
  56. if(button & IN_BACK)
  57. {
  58.   velocity[0] *= -1
  59.   velocity[1] *= -1
  60. }
  61. set_pev(id,pev_velocity,velocity)
  62. }
复制代码

该用户从未签到

 楼主| 发表于 2010-6-25 23:41:04 | 显示全部楼层
回复 84# 美女无敌

ljstats.ini

   
  1. ; .-==========================================-.
  2. ; |~~ Long Jump Stats - eXtreme Modification ~~|
  3. ; .-==========================================-.


  4. ; Enabled/Disables the plugin
  5. ; 0 = disabled
  6. ; 1 = enabled
  7. ; Cvar kz_ljs_enabled (default "1")
  8. 1

  9. ; Maximum possible lj (not 4 cj)
  10. ; Cvar kz_max_lj (default "260.0")
  11. 260.0

  12. ; 1337 lj (prints to all players)
  13. ; To disable, set it to -1
  14. ; Cvar kz_leet_lj (default "250.0")
  15. 250.0

  16. ; Professional lj (prints to all players)
  17. ; To disable, set it to -1
  18. ; Cvar kz_pro_lj (default "245.0")
  19. 245.0

  20. ; Good lj (prints to all players)
  21. ; To disable, set it to -1
  22. ; Cvar kz_good_lj (default "240.0")
  23. 240.0

  24. ; Minimal lj distance
  25. ; Cvar kz_min_lj (default "215.0")
  26. 215.0

  27. ; Difrence between longjump and countjump for good/pro/leet/max jump
  28. ; Cvar kz_cj_dif (default "10.0")
  29. 10.0

  30. ; Enables lj sounds
  31. ; 0 = disabled
  32. ; 1 = ultimate sounds
  33. ; 2 = distance in voice
  34. ; Cvar kz_lj_sounds (default "1")
  35. 1

  36. ; How dose plugin works
  37. ; 0 = no top and no colorchat
  38. ; 1 = prints good/pro/leet jumps
  39. ; 2 = enables top10
  40. ; 3 = prints good/pro/leet jumps and enables top10
  41. ; Cvar kz_lj_top (default "3")
  42. 3

  43. ; Do you want to save ljtop after mapchange?
  44. ; Cvar kz_ljs_topsave (default "1")
  45. 1

  46. ; How ranking will work?
  47. ; 0 = names
  48. ; 1 = steam ids
  49. ; 2 = ips
  50. ; Cvar kz_ljs_rank_by (default "0")
  51. 0

  52. ; Kz jumping color chat:
  53. ; 0 = normal
  54. ; 1 = red
  55. ; 2 = green
  56. ; 3 = blue
  57. ; 4 = silver
  58. ; 5 = team color

  59. ; Cvar kz_leet_lj_clr (default "1")
  60. 1
  61. ; Cvar kz_pro_lj_clr (default "2")
  62. 2
  63. ; Cvar kz_good_lj_clr (default "4")
  64. 4

  65. ; Cvar kz_leet_cj_clr (default "1")
  66. 1
  67. ; Cvar kz_pro_cj_clr (default "2")
  68. 2
  69. ; Cvar kz_good_cj_clr (default "4")
  70. 4

  71. ; Colors of /ljstats (rrr ggg bbb)
  72. ; Cvar kz_ljstats_red (default "0")
  73. 0
  74. ; Cvar kz_ljstats_green (default "255")
  75. 255
  76. ; Cvar kz_ljstats_blue ("159")
  77. 159

  78. ; LongJump Stats Laser Beam
  79. ; 0 = off
  80. ; 1 = normal
  81. ; 2 = uber beam
  82. ; Cvar kz_ljs_beam (default "2")
  83. 2

  84. ; Enables protection 4 legal kreedz settings
  85. ; Cvar kz_legal_settings (default "1")
  86. 1

  87. ; Is your server fast?
  88. ; 0 = slow
  89. ; 1 = normal
  90. ; 2 = realy good ( >10mb/s or localhost/lan server )
  91. ; Cvar kz_ljs_fastserver (default "2")
  92. 2

  93. ; Enables auto-setting 4 kz_ljs_fastserver cvar if it is 2
  94. ; Cvar kz_ljs_autoserver (default "1")
  95. 1

  96. ; What is enabled on client when he connects to a server?
  97. ; 0 = nothing
  98. ; a = colorchat
  99. ; b = ljstats
  100. ; c = speed
  101. ; Cvar kz_ljs_connectenabler (default "abc")
  102. abc

  103. ; Do you want cmds like /speed to be visible in the chat?
  104. ; Cvar kz_ljs_viscmds (default "1")
  105. 1

  106. ; Speedometer type
  107. ; 0 = show real speed and horizontal speed
  108. ; 1 = show real speed
  109. ; 2 = show horizontal speed
  110. ; Cvar kz_ljs_speedtype (default "0")
  111. 0
复制代码

该用户从未签到

发表于 2010-8-17 22:56:22 | 显示全部楼层
请问是实体的?

该用户从未签到

发表于 2010-10-16 20:50:01 | 显示全部楼层
感谢分享!

该用户从未签到

发表于 2010-10-21 00:37:04 | 显示全部楼层
数据会把板子距离盖住是怎么回事
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表