Available zm class conversion

Unpaid Requests, Public Plugins
Post Reply
Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 6 years ago
Contact:

zm class conversion

#1

Post by Rain1153 » 5 years ago

can anybody convert this zm class?
LOL

Rain1153
Senior Member
Senior Member
India
Posts: 278
Joined: 6 years ago
Contact:

#2

Post by Rain1153 » 5 years ago

  1. /*
  2. /-----[ZP] Zclass CSO:Raptor Zombie-----
  3. /-----By Zombiezzz & NiHiLaNTh
  4. */
  5.  
  6. #include <amxmodx>
  7. #include <fakemeta>
  8. #include <fun>
  9. #include <zombieplague>
  10.  
  11. // Zombie Attributes
  12. new const zclass_name[] = { "Raptor Zombie" } // name
  13. new const zclass_info[] = { "[E] Invisble +speed +HP" } // description
  14. new const zclass_model[] = { "avh_alien" } // model
  15. new const zclass_clawmodel[] = { "avh_alienclaws.mdl" } // claw model
  16. const g_zclass_health = 1500 // health
  17. const zclass_speed = 350 // speed
  18. const Float:zclass_gravity = 0.6 // gravity
  19. const Float:zclass_knockback = 0.6 // knockback
  20.  
  21. new g_zclass_infecter,invistime
  22.  
  23. new Float:g_regendelay [ 33 ]
  24.  
  25. public plugin_init( ){
  26.     register_forward ( FM_PlayerPreThink, "fw_PlayerPreThink" )
  27.  
  28.     invistime = register_cvar("zp_invis_time", "30.0")
  29.    
  30.     register_clcmd( "+invisible", "die_la_bitch", ADMIN_ALL, "bind [key] +invisible" )
  31. }
  32.  
  33. public plugin_precache()
  34. {
  35.     register_plugin("[ZP] Zombie Class: Infecter Zombie", "1.2", "Zombiezzz")
  36.    
  37.     g_zclass_infecter = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, g_zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
  38. }
  39.  
  40. public zp_user_infected_post(id, infector)
  41. {
  42.     if (zp_get_user_zombie_class(id) == g_zclass_infecter && !zp_get_user_nemesis(id))
  43.     {
  44.             client_cmd( id, "bind E ^"+invisible^"" )
  45.             client_print(id, print_chat, "Press E to go invisible..")
  46.     }
  47. }
  48.  
  49. public invisible( id )
  50. {
  51.        set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,300)
  52.        set_task(get_pcvar_float(invistime), "endinvis"
  53.        )
  54. }
  55.  
  56. public endinvis( id )
  57. {
  58.     set_user_rendering(id, kRenderFxNone, 0,0,0, kRenderNormal, 255)
  59. }
  60.  
  61. public fw_PlayerPreThink ( Player )
  62. {
  63.       if ( !is_user_alive ( Player ) || !zp_get_user_zombie ( Player ) )
  64.              return FMRES_IGNORED
  65.  
  66.       static Float:gametime
  67.       gametime = get_gametime ( )
  68.  
  69.       static Float:health
  70.       pev ( Player, pev_health, health )
  71.  
  72.       if ( health < g_zclass_health && g_regendelay [ Player ] < gametime )
  73.       {
  74.              set_pev ( Player, pev_health, health + 1.0 )
  75.              g_regendelay [ Player ] = gametime + 1.0
  76.       }
  77.       return FMRES_IGNORED
  78. }
  79. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  80. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
  81. */


and
  1. #include <amxmodx>
  2. #include <engine>
  3. #include <zombieplague>
  4.  
  5. new Float:next_fart[33]
  6. new farts_count[33]
  7. new fart_spr
  8. new bool:wait_damage[33]
  9. new g_zclass_gas
  10.  
  11. // Gas Zombie Atributes
  12. new const zclass_name[] = { "Gas Zombie" } // name
  13. new const zclass_info[] = { "Can creat smoke screen" } // description
  14. new const zclass_model[] = { "gas" } // model
  15. new const zclass_clawmodel[] = { "v_knife_zombie.mdl" } // claw model
  16. const zclass_health = 1000 // health
  17. const zclass_speed = 250 // speed
  18. const Float:zclass_gravity = 1.0 // gravity
  19. const Float:zclass_knockback = 1.5 // knockback
  20.  
  21. public plugin_init()
  22. {
  23.     register_plugin("[ZP] Smoke Screen Zombie","1.0","Roadrage+KRoTaL")
  24.     register_clcmd("fart","fart")
  25.     register_cvar("amx_fart_wait","10")
  26.     register_cvar("amx_fart_ttl","180")
  27.     register_cvar("amx_fart_abuse","5")
  28.     register_event("ResetHUD","reset_hud","b")
  29.     register_logevent("endround", 2, "0=World triggered", "1=Round_End")
  30. }
  31. public plugin_precache()
  32. {
  33.     g_zclass_gas = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
  34.     precache_sound("fart.wav")
  35.     precache_sound("gasp1.wav")
  36.     precache_sound("gasp2.wav")
  37.     precache_sound("player/headshot1.wav")
  38.     fart_spr = precache_model("sprites/xsmoke1.spr")
  39. }
  40. // User Infected forward
  41. public zp_user_infected_post(id, infector)
  42. {      
  43.     if (zp_get_user_zombie_class(id) == g_zclass_gas)
  44.     {
  45.         client_print(id,print_chat,"[ZP] You are using gas zombie bind key to fart to create smoke screen")
  46.         wait_damage[id] = true
  47.     }  
  48. }
  49.  
  50. public reset_hud(id)
  51. {
  52.     wait_damage[id] = false
  53.     next_fart[id] = 0.0
  54.     farts_count[id] = 0
  55. }
  56. public endround()
  57. {
  58.     set_task(3.0, "kill_farts", 99999944)
  59. }
  60. public fart(id)
  61. {
  62.     if(!is_user_alive(id) || !zp_get_user_zombie(id))
  63.         return PLUGIN_HANDLED
  64.     if(zp_get_user_zombie_class(id) != g_zclass_gas)
  65.     return PLUGIN_CONTINUE
  66.     if(get_gametime() < next_fart[id])
  67.     {
  68.         new timetowait = floatround(next_fart[id]-get_gametime())
  69.         client_print(id, print_chat, "YOU HAVE TO WAIT %d SECOND%s BEFORE USING SMOKE SCREEN AGAIN!", timetowait, (timetowait>1)?"S":"")
  70.     }
  71.     else
  72.     {
  73.         emit_sound(id, CHAN_VOICE, "fart.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  74.         new origin[3]
  75.         get_user_origin(id, origin)
  76.         for (new j = 0; j < 10; j++)
  77.         {
  78.             message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
  79.             write_byte(101)
  80.             write_coord(origin[0])
  81.             write_coord(origin[1])
  82.             write_coord(origin[2] - 26)
  83.             write_coord(random_num(-100,100))
  84.             write_coord(random_num(-100,100))
  85.             write_coord(random_num(20,300))
  86.             write_byte(100)
  87.             write_byte(random_num(100,200))
  88.             message_end()
  89.         }
  90.         create_fart(id)
  91.         farts_count[id]++
  92.         if(farts_count[id] > get_cvar_num("amx_fart_abuse"))
  93.         {
  94.             new health = get_user_health(id) - random_num(10,50)
  95.             if(health > 0)
  96.             {
  97.                 user_slap(id, health)
  98.                 client_print(id, print_chat, "Do not abuse the power of smoke screen or you will pay the consequences!")
  99.             }
  100.             else
  101.             {
  102.                 emit_sound(id, CHAN_VOICE, "fart.wav", 1.0, 0.2, 0, PITCH_NORM)
  103.                 message_begin(MSG_ALL, SVC_TEMPENTITY)
  104.                 write_byte(10)
  105.                 write_coord(origin[0])
  106.                 write_coord(origin[1])
  107.                 write_coord(origin[2]-26)
  108.                 message_end()
  109.                 user_kill(id)
  110.                 new player_name[32]
  111.                 get_user_name(id, player_name, 31)
  112.                 client_print(0, print_chat, "%s abused smoke screen and he blew up! ", player_name)
  113.             }
  114.         }
  115.         next_fart[id] = get_gametime() + get_cvar_float("amx_fart_wait")
  116.     }
  117.     return PLUGIN_HANDLED
  118. }
  119.  
  120. public reset_damage(ids[])
  121. {
  122.     wait_damage[ids[0]] = false
  123. }
  124. public create_fart(id)
  125. {
  126.    
  127.     new Float:origin[3]
  128.     entity_get_vector(id, EV_VEC_origin, origin)
  129.     new FartEnt
  130.     FartEnt = create_entity("info_target")
  131.     if(FartEnt <= 0)
  132.     {
  133.         return PLUGIN_HANDLED_MAIN
  134.     }
  135.     entity_set_string(FartEnt, EV_SZ_classname, "hazardous fart")
  136.     new Float:MinBox[3]
  137.     new Float:MaxBox[3]
  138.     MinBox[0] = -80.0
  139.     MinBox[1] = -80.0
  140.     MinBox[2] = -80.0
  141.     MaxBox[0] = 80.0
  142.     MaxBox[1] = 80.0
  143.     MaxBox[2] = 80.0
  144.     entity_set_size(FartEnt, MinBox, MaxBox)
  145.     entity_set_int(FartEnt, EV_INT_solid, 1)
  146.     entity_set_edict(FartEnt, EV_ENT_owner, 33+id)
  147.     entity_set_origin(FartEnt, origin)
  148.     new param[1]
  149.     param[0]= FartEnt
  150.     set_task(1.0,"fart_fume",111111+FartEnt,param,1,"b")
  151.     set_task(get_cvar_float("amx_fart_ttl"),"remove_fart",333333+FartEnt,param,1)
  152.     return PLUGIN_CONTINUE
  153. }
  154. public remove_fart(param[1])
  155. {
  156.     new FartEnt = param[0]
  157.     if(is_valid_ent(FartEnt)) remove_entity(FartEnt)
  158.     remove_task(111111+FartEnt)
  159.     return PLUGIN_CONTINUE
  160. }
  161. public kill_farts()
  162. {
  163.     new iEntity = find_ent_by_class(-1, "hazardous fart")
  164.     while(iEntity > 0)
  165.     {
  166.         remove_entity(iEntity)
  167.         remove_task(111111+iEntity)
  168.         remove_task(333333+iEntity)
  169.         iEntity = find_ent_by_class(-1, "hazardous fart")
  170.     }
  171.     return PLUGIN_CONTINUE
  172. }
  173. public fart_fume(param[1])
  174. {
  175.     new FartEnt = param[0]
  176.     new Float:forigin[3], origin[3]
  177.     entity_get_vector(FartEnt, EV_VEC_origin, forigin)
  178.     FVecIVec(forigin, origin)
  179.     new players[32], inum
  180.     get_players(players,inum)
  181.     for(new i = 0 ;i < inum; ++i)
  182.     {
  183.         message_begin(MSG_ONE,SVC_TEMPENTITY,{0,0,0},players[i])
  184.         write_byte(17)
  185.         write_coord(origin[0])
  186.         write_coord(origin[1])
  187.         write_coord(origin[2]+30)
  188.         write_short(fart_spr)
  189.         write_byte(180)
  190.         write_byte(100)
  191.         message_end()
  192.     }
  193.     return PLUGIN_CONTINUE
  194. }
  195.  
  196.  
LOL

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#3

Post by Night Fury » 5 years ago

  1. /*
  2. /-----[ZP] Zclass CSO:Raptor Zombie-----
  3. /-----By Zombiezzz & NiHiLaNTh
  4. */
  5.  
  6. #include <zombie_escape>
  7. #include <ze_zombie_class>
  8. #include <fun>
  9.  
  10. // Zombie Attributes
  11. new const zclass_name[] = { "Raptor Zombie" } // name
  12. new const zclass_info[] = { "[E] Invisble +speed +HP" } // description
  13. const g_zclass_health = 1500 // health
  14. const zclass_speed = 350 // speed
  15. const zclass_gravity = 760 // gravity
  16.  
  17. new g_zclass_infecter,invistime
  18.  
  19. new Float:g_regendelay [ 33 ]
  20.  
  21. public plugin_init( ){
  22.     register_forward ( FM_PlayerPreThink, "fw_PlayerPreThink" )
  23.  
  24.     invistime = register_cvar("zp_invis_time", "30.0")
  25.    
  26.     register_clcmd( "+invisible", "die_la_bitch", ADMIN_ALL, "bind [key] +invisible" )
  27. }
  28.  
  29. public plugin_precache()
  30. {
  31.     register_plugin("[ZP] Zombie Class: Infecter Zombie", "1.2", "Zombiezzz")
  32.    
  33.     g_zclass_infecter = ze_register_zombie_class(zclass_name, zclass_info, g_zclass_health, zclass_speed, zclass_gravity)
  34. }
  35.  
  36. public ze_user_infected(id)
  37. {
  38.     if (ze_get_current_zombie_class(id) == g_zclass_infecter)
  39.     {
  40.             client_cmd( id, "bind E ^"+invisible^"" )
  41.             client_print(id, print_chat, "Press E to go invisible..")
  42.     }
  43. }
  44.  
  45. public invisible( id )
  46. {
  47.        set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderNormal,300)
  48.        set_task(get_pcvar_float(invistime), "endinvis"
  49.        )
  50. }
  51.  
  52. public endinvis( id )
  53. {
  54.     set_user_rendering(id, kRenderFxNone, 0,0,0, kRenderNormal, 255)
  55. }
  56.  
  57. public fw_PlayerPreThink ( Player )
  58. {
  59.       if ( !is_user_alive ( Player ) || !ze_is_user_zombie ( Player ) )
  60.              return FMRES_IGNORED
  61.  
  62.       static Float:gametime
  63.       gametime = get_gametime ( )
  64.  
  65.       static Float:health
  66.       pev ( Player, pev_health, health )
  67.  
  68.       if ( health < g_zclass_health && g_regendelay [ Player ] < gametime )
  69.       {
  70.              set_pev ( Player, pev_health, health + 1.0 )
  71.              g_regendelay [ Player ] = gametime + 1.0
  72.       }
  73.       return FMRES_IGNORED
  74. }
  75. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  76. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
  77. */
  1. #include <zombie_escape>
  2. #include <ze_zombie_class>
  3. #include <engine>
  4.  
  5. new Float:next_fart[33]
  6. new farts_count[33]
  7. new fart_spr
  8. new bool:wait_damage[33]
  9. new g_zclass_gas
  10.  
  11. // Gas Zombie Atributes
  12. new const zclass_name[] = { "Gas Zombie" } // name
  13. new const zclass_info[] = { "Can creat smoke screen" } // description
  14. const zclass_health = 1000 // health
  15. const zclass_speed = 250 // speed
  16. const zclass_gravity = 800 // gravity
  17.  
  18. public plugin_init()
  19. {
  20.     register_plugin("[ZP] Smoke Screen Zombie","1.0","Roadrage+KRoTaL")
  21.     register_clcmd("fart","fart")
  22.     register_cvar("amx_fart_wait","10")
  23.     register_cvar("amx_fart_ttl","180")
  24.     register_cvar("amx_fart_abuse","5")
  25.     register_event("ResetHUD","reset_hud","b")
  26.     register_logevent("endround", 2, "0=World triggered", "1=Round_End")
  27. }
  28. public plugin_precache()
  29. {
  30.     g_zclass_gas = ze_register_zombie_class(zclass_name, zclass_info, zclass_health, zclass_speed, zclass_gravity)
  31.     precache_sound("fart.wav")
  32.     precache_sound("gasp1.wav")
  33.     precache_sound("gasp2.wav")
  34.     precache_sound("player/headshot1.wav")
  35.     fart_spr = precache_model("sprites/xsmoke1.spr")
  36. }
  37. // User Infected forward
  38. public ze_user_infected(id)
  39. {      
  40.     if (zp_get_user_zombie_class(id) == g_zclass_gas)
  41.     {
  42.         ze_colored_print(id, "You are using gas zombie bind key to fart to create smoke screen.")
  43.         wait_damage[id] = true
  44.     }  
  45. }
  46.  
  47. public reset_hud(id)
  48. {
  49.     wait_damage[id] = false
  50.     next_fart[id] = 0.0
  51.     farts_count[id] = 0
  52. }
  53. public endround()
  54. {
  55.     set_task(3.0, "kill_farts", 99999944)
  56. }
  57. public fart(id)
  58. {
  59.     if(!is_user_alive(id) || !ze_is_user_zombie(id))
  60.         return PLUGIN_HANDLED
  61.     if(ze_get_current_zombie_class(id) != g_zclass_gas)
  62.     return PLUGIN_CONTINUE
  63.     if(get_gametime() < next_fart[id])
  64.     {
  65.         new timetowait = floatround(next_fart[id]-get_gametime())
  66.         ze_colored_print(id, "YOU HAVE TO WAIT %d SECOND%s BEFORE USING SMOKE SCREEN AGAIN!", timetowait, (timetowait>1)?"S":"")
  67.     }
  68.     else
  69.     {
  70.         emit_sound(id, CHAN_VOICE, "fart.wav", 1.0, ATTN_NORM, 0, PITCH_NORM)
  71.         new origin[3]
  72.         get_user_origin(id, origin)
  73.         for (new j = 0; j < 10; j++)
  74.         {
  75.             message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
  76.             write_byte(101)
  77.             write_coord(origin[0])
  78.             write_coord(origin[1])
  79.             write_coord(origin[2] - 26)
  80.             write_coord(random_num(-100,100))
  81.             write_coord(random_num(-100,100))
  82.             write_coord(random_num(20,300))
  83.             write_byte(100)
  84.             write_byte(random_num(100,200))
  85.             message_end()
  86.         }
  87.         create_fart(id)
  88.         farts_count[id]++
  89.         if(farts_count[id] > get_cvar_num("amx_fart_abuse"))
  90.         {
  91.             new health = get_user_health(id) - random_num(10,50)
  92.             if(health > 0)
  93.             {
  94.                 user_slap(id, health)
  95.                 ze_colored_print(id, "Do not abuse the power of smoke screen or you will pay the consequences!")
  96.             }
  97.             else
  98.             {
  99.                 emit_sound(id, CHAN_VOICE, "fart.wav", 1.0, 0.2, 0, PITCH_NORM)
  100.                 message_begin(MSG_ALL, SVC_TEMPENTITY)
  101.                 write_byte(10)
  102.                 write_coord(origin[0])
  103.                 write_coord(origin[1])
  104.                 write_coord(origin[2]-26)
  105.                 message_end()
  106.                 user_kill(id)
  107.                 new player_name[32]
  108.                 get_user_name(id, player_name, 31)
  109.                 ze_colored_print(0, "%s abused smoke screen and he blew up! ", player_name)
  110.             }
  111.         }
  112.         next_fart[id] = get_gametime() + get_cvar_float("amx_fart_wait")
  113.     }
  114.     return PLUGIN_HANDLED
  115. }
  116.  
  117. public reset_damage(ids[])
  118. {
  119.     wait_damage[ids[0]] = false
  120. }
  121. public create_fart(id)
  122. {
  123.    
  124.     new Float:origin[3]
  125.     entity_get_vector(id, EV_VEC_origin, origin)
  126.     new FartEnt
  127.     FartEnt = create_entity("info_target")
  128.     if(FartEnt <= 0)
  129.     {
  130.         return PLUGIN_HANDLED_MAIN
  131.     }
  132.     entity_set_string(FartEnt, EV_SZ_classname, "hazardous fart")
  133.     new Float:MinBox[3]
  134.     new Float:MaxBox[3]
  135.     MinBox[0] = -80.0
  136.     MinBox[1] = -80.0
  137.     MinBox[2] = -80.0
  138.     MaxBox[0] = 80.0
  139.     MaxBox[1] = 80.0
  140.     MaxBox[2] = 80.0
  141.     entity_set_size(FartEnt, MinBox, MaxBox)
  142.     entity_set_int(FartEnt, EV_INT_solid, 1)
  143.     entity_set_edict(FartEnt, EV_ENT_owner, 33+id)
  144.     entity_set_origin(FartEnt, origin)
  145.     new param[1]
  146.     param[0]= FartEnt
  147.     set_task(1.0,"fart_fume",111111+FartEnt,param,1,"b")
  148.     set_task(get_cvar_float("amx_fart_ttl"),"remove_fart",333333+FartEnt,param,1)
  149.     return PLUGIN_CONTINUE
  150. }
  151. public remove_fart(param[1])
  152. {
  153.     new FartEnt = param[0]
  154.     if(is_valid_ent(FartEnt)) remove_entity(FartEnt)
  155.     remove_task(111111+FartEnt)
  156.     return PLUGIN_CONTINUE
  157. }
  158. public kill_farts()
  159. {
  160.     new iEntity = find_ent_by_class(-1, "hazardous fart")
  161.     while(iEntity > 0)
  162.     {
  163.         remove_entity(iEntity)
  164.         remove_task(111111+iEntity)
  165.         remove_task(333333+iEntity)
  166.         iEntity = find_ent_by_class(-1, "hazardous fart")
  167.     }
  168.     return PLUGIN_CONTINUE
  169. }
  170. public fart_fume(param[1])
  171. {
  172.     new FartEnt = param[0]
  173.     new Float:forigin[3], origin[3]
  174.     entity_get_vector(FartEnt, EV_VEC_origin, forigin)
  175.     FVecIVec(forigin, origin)
  176.     new players[32], inum
  177.     get_players(players,inum)
  178.     for(new i = 0 ;i < inum; ++i)
  179.     {
  180.         message_begin(MSG_ONE,SVC_TEMPENTITY,{0,0,0},players[i])
  181.         write_byte(17)
  182.         write_coord(origin[0])
  183.         write_coord(origin[1])
  184.         write_coord(origin[2]+30)
  185.         write_short(fart_spr)
  186.         write_byte(180)
  187.         write_byte(100)
  188.         message_end()
  189.     }
  190.     return PLUGIN_CONTINUE
  191. }
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 3 guests