hlmod.hu
https://hlmod.hu/

ember hang
https://hlmod.hu/viewtopic.php?f=9&t=8693
Oldal: 1 / 1

Szerző:  pixxa112 [2013.05.28. 19:11 ]
Hozzászólás témája:  ember hang

Hali.

Valaki ezt át tudni úgy írni, hogy "NE" olvassa az a zombie_plauge.ini-ből.
És ez úgy kéne, hogy embernek legyenek a hangok:
SMA Forráskód: [ Mindet kijelol ]
  1. #include < amxmodx >
  2. #include < zombieplague >
  3. #include < fakemeta >
  4.  
  5. #define PLUGIN "[ZP] Addon: Nemesis Sounds"
  6. #define VERSION "1.0"
  7. #define AUTHOR "Doomsday"
  8.  
  9. /* Это новые Звуки */
  10. new const new_sounds[][] =
  11. {
  12. "zombi_sfx/knife_deploy1.wav",
  13. "zombi_sfx/knife_hit1.wav",
  14. "zombi_sfx/knife_hit2.wav",
  15. "zombi_sfx/knife_hit3.wav",
  16. "zombi_sfx/knife_hit4.wav",
  17. "zombi_sfx/knife_hitwall1.wav",
  18. "zombi_sfx/knife_slash1.wav",
  19. "zombi_sfx/human/knife_slash2.wav",
  20. "zombi_sfx/human/knife_stab.wav"
  21. }
  22.  
  23. /* Это старые, они должны соответствовать звукам в zombieplague.ini */
  24. new const old_sounds[][] =
  25. {
  26. "weapons/knife_deploy1.wav",
  27. "weapons/knife_hit1.wav",
  28. "weapons/knife_hit2.wav",
  29. "weapons/knife_hit3.wav",
  30. "weapons/knife_hit4.wav",
  31. "weapons/knife_hitwall1.wav",
  32. "weapons/knife_slash1.wav",
  33. "weapons/knife_slash2.wav",
  34. "weapons/knife_stab.wav"
  35. }
  36.  
  37. public plugin_init()
  38. {
  39. register_plugin(PLUGIN, VERSION, AUTHOR)
  40.  
  41. register_forward(FM_EmitSound, "fw_EmitSound");
  42. }
  43.  
  44. public plugin_precache()
  45. {
  46. for(new i = 0; i < sizeof new_sounds; i++)
  47. precache_sound(new_sounds[i])
  48. }
  49.  
  50. public fw_EmitSound(id, channel, const sound[])
  51. {
  52. if(!is_user_alive(id) || zp_get_user_survivor(id))
  53. return FMRES_IGNORED
  54.  
  55. if(zp_get_user_survivor(id))
  56. {
  57. for(new i = 0; i < sizeof new_sounds; i++)
  58. {
  59. if(equal(sound, old_sounds[i]))
  60. {
  61. emit_sound(id, channel, new_sounds[i], 1.0, ATTN_NORM, 0, PITCH_NORM)
  62. return FMRES_SUPERCEDE
  63. }
  64. }
  65. }
  66. return FMRES_IGNORED
  67. }

Oldal: 1 / 1 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/