Raised This Month: $ Target: $400
 0% 

Suggestion / Subplugin Request [REQ] Zombie class as boomer?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
YKH =]
Senior Member
Join Date: Sep 2008
Location: Hong Kong
Old 02-08-2009 , 04:07   [REQ] Zombie class as boomer?
Reply With Quote #1

The idea is come from Left 4 Dead

by the way in ZPM, when "Boomer" was killed, it will explode affect hunmans

who are near by the boomer. Those hunman who get exploded will become a

infected. can someone make it?
__________________
Approved Plugins

[ZP] Effect Plugins :
Damage Effect
Real Death
YKH =] is offline
Old 02-08-2009, 04:50
Fry!
This message has been deleted by Fry!.
YKH =]
Senior Member
Join Date: Sep 2008
Location: Hong Kong
Old 02-08-2009 , 05:41   Re: [REQ] Zombie class as boomer?
Reply With Quote #2

such as infection bomb explode LOL
__________________
Approved Plugins

[ZP] Effect Plugins :
Damage Effect
Real Death
YKH =] is offline
pro_on_0
Member
Join Date: Nov 2008
Old 02-08-2009 , 05:58   Re: [REQ] Zombie class as boomer?
Reply With Quote #3

PHP Code:
#include <amxmodx>
#include <zombieplague>
#include <cstrike>
#include <vector>
#define TE_EXPLOSION 3
#define TE_SMOKE 5
#define TE_IMPLOSION 14
#define TE_BEAMCYLINDER 21
#define TE_EXPLFLAG_NONE 0
new Fireball
new Smoke
new iSprite
new g_zclass_boom
new const zclass_name[] = { "-Boomer-" }
new const 
zclass_info[] = { "-HP--" }
new const 
zclass_model[] = { "zombie_king" }
new const 
zclass_clawmodel[] = {"v_knife_zombie.mdl" }
const 
zclass_health 250
const zclass_speed 280
const Float:zclass_gravity 1.0
const Float:zclass_knockback 1.0
public plugin_init()
{
 
register_plugin("[ZP] Boomer","1.0","Awp King + oN.")
 
register_event("DeathMsg","death","a")
 
egister_clcmd("zb_boom""pushboom")
 
g_zclass_boom zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodel,  zclass_healthzclass_speedzclass_gravityzclass_knockback)
}
public 
plugin_precache()
{
 
iSprite precache_model"sprites/shockwave.spr")
 
Fireball precache_model("sprites/zerogxplode.spr")
 
Smoke precache_model("sprites/steam1.spr")
 
precache_sound("ambience/particle_suck1.wav")
}
public 
explode(id)
{
 new 
origin[3]
 
get_user_origin(id,origin)
 
message_beginMSG_BROADCASTSVC_TEMPENTITY )
 
write_byteTE_IMPLOSION )
 
write_coord(origin[0])
 
write_coord(origin[1])
 
write_coord(origin[2])
 
write_byte(100)
 
write_byte(20)
 
write_byte(5)
 
message_end()
}
public 
blastcircles(id){
 new 
origin[3]
 
get_user_origin(id,origin)
 
// blast circles
 
message_begin(MSG_PASSVC_TEMPENTITYorigin)
 
write_byte(TE_BEAMCYLINDER)
 
write_coord(origin[0])
 
write_coord(origin[1])
 
write_coord(origin[2] - 16)
 
write_coord(origin[0])
 
write_coord(origin[1])
 
write_coord(origin[2] - 16 300)
 
write_short(iSprite)
 
write_byte(0// startframe
 
write_byte(0// framerate
 
write_byte(6// life
 
write_byte(16)  // width
 
write_byte(0// noise
 
write_byte(188)
 
write_byte(220)
 
write_byte(255)
 
write_byte(255//brightness
 
write_byte(0// speed
 
message_end()
 
message_begin(MSG_PASSVC_TEMPENTITYorigin)
 
write_byte(TE_BEAMCYLINDER)
 
write_coord(origin[0])
 
write_coord(origin[1])
 
write_coord(origin[2] - 16)
 
write_coord(origin[0])
 
write_coord(origin[1])
 
write_coord(origin[2] - 16 + (300 2))
 
write_short(iSprite)
 
write_byte(0// startframe
 
write_byte(0// framerate
 
write_byte(6// life
 
write_byte(16)  // width
 
write_byte(0// noise
 
write_byte(188)
 
write_byte(220)
 
write_byte(255)
 
write_byte(255//brightness
 
write_byte(0// speed
 
message_end()
 return 
PLUGIN_CONTINUE
}
public 
apacheexplode(id){
 new 
origin[3]
 
get_user_origin(id,origin)
 
// random explosions
 
message_begin(MSG_PVSSVC_TEMPENTITYorigin)
 
write_byte(TE_EXPLOSION// This just makes a dynamic light now
 
write_coord(origin[0] + random_num(-100100))
 
write_coord(origin[1] + random_num(-100100))
 
write_coord(origin[2] + random_num(-5050))
 
write_short(Fireball)
 
write_byte(random_num(0,20) + 20// scale * 10
 
write_byte(12// framerate
 
write_byte(TE_EXPLFLAG_NONE)
 
message_end()
 
// lots of smoke
 
message_beginMSG_PVSSVC_TEMPENTITYorigin )
 
write_byteTE_SMOKE )
 
write_coord(origin[0] + random_num(-100100))
 
write_coord(origin[1] + random_num(-100100))
 
write_coord(origin[2] + random_num(-5050))
 
write_short(Smoke)
 
write_byte(60// scale * 10
 
write_byte(10// framerate
 
message_end()
}
public 
death(id)
{
      new 
victim read_data(2)
      new 
id victim
      
if(zp_get_user_zombie_class(id) == g_zclass_boom && zp_get_user_zombie(id))
      {
             
BlowUp(id)
      }
}
public 
pushboom(id)
{
      if(
zp_get_user_zombie_class(id) == g_zclass_boom && zp_get_user_zombie(id))
      {
             
BlowUp(id)
             
user_kill(id0)
      }
}
public 
BlowUp(id)
{
 new 
origin[3]
 
get_user_origin(id,origin)
 
emit_sound(id,CHAN_STATIC"ambience/particle_suck1.wav"1.0ATTN_NORM0PITCH_NORM)
 
set_task(0.5,"apacheexplode"id)
 
set_task(0.5,"blastcircles"id)
 
set_task(1.0,"bum"id)
 
explode(id)
}
public 
bum(id)
{
   new 
distanceBetween
   
new origin[3]
   
get_user_origin(id,origin)
   if(
is_user_alive(id) && !zp_get_user_zombie(id))
   {
   new 
origin1[3]
   
get_user_origin(id,origin1)
   
distanceBetween get_distance(originorigin1)
   if(
distanceBetween 300)
   {
               
zp_infect_user(idorigin[id])
   }
  }

have problems?

Last edited by pro_on_0; 02-08-2009 at 06:35.
pro_on_0 is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 02-08-2009 , 06:18   Re: [REQ] Zombie class as boomer?
Reply With Quote #4

lol ... o.0
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
YKH =]
Senior Member
Join Date: Sep 2008
Location: Hong Kong
Old 02-08-2009 , 06:25   Re: [REQ] Zombie class as boomer?
Reply With Quote #5

why it is not working~"~
i tested with player

also i would like to set the exploion is like infection bomb explode
__________________
Approved Plugins

[ZP] Effect Plugins :
Damage Effect
Real Death
YKH =] is offline
pro_on_0
Member
Join Date: Nov 2008
Old 02-08-2009 , 06:30   Re: [REQ] Zombie class as boomer?
Reply With Quote #6

I don't know why it is not working too...=[
The problem is "zp_infect_user(id, origin[id])"

I don'y know how to infect player......
if change to "user_kill(id, 0)", it is ok...


To YKH=]:你系唔系yathing?
pro_on_0 is offline
YKH =]
Senior Member
Join Date: Sep 2008
Location: Hong Kong
Old 02-08-2009 , 06:45   Re: [REQ] Zombie class as boomer?
Reply With Quote #7

i meat if the hunman is "last man"

nothing happen when he get exploded...

sorry for my bad englsih

PS:我係
__________________
Approved Plugins

[ZP] Effect Plugins :
Damage Effect
Real Death
YKH =] is offline
pro_on_0
Member
Join Date: Nov 2008
Old 02-08-2009 , 06:46   Re: [REQ] Zombie class as boomer?
Reply With Quote #8

Quote:
Originally Posted by YKH =] View Post
i meat if the hunman is "last man"

nothing happen when he get exploded...

sorry for my bad englsih

PS:我係
你既意思系傳染到人._.?
pro_on_0 is offline
YKH =]
Senior Member
Join Date: Sep 2008
Location: Hong Kong
Old 02-08-2009 , 06:50   Re: [REQ] Zombie class as boomer?
Reply With Quote #9

not test yet~"~

only 3ppl test with me ....

唔好係度打中文- -
__________________
Approved Plugins

[ZP] Effect Plugins :
Damage Effect
Real Death
YKH =] is offline
pro_on_0
Member
Join Date: Nov 2008
Old 02-08-2009 , 06:53   Re: [REQ] Zombie class as boomer?
Reply With Quote #10

Quote:
Originally Posted by YKH =] View Post
not test yet~"~

only 3ppl test with me ....

唔好係度打中文- -
I think it can't work._.I think it has some problems._.
pro_on_0 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode