Raised This Month: $ Target: $400
 0% 

zombie glow


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kazuki
Senior Member
Join Date: Dec 2008
Old 03-13-2009 , 04:33   zombie glow
Reply With Quote #1

how do i add green glow on this zombie ????

here my scripting

PHP Code:
/*
    [ZP] Ultimate Big Zombie
             (special ability for Big Zombie)
     by Fry!
 
 Description :
   You all know original Big Zombie but this time Big Zombie have special ability (pain shock free).
 
 Credits : 
   Simon Logic - for his Pain shock free plugin
   Mercylezz - I borrowed some pain shock free code from his zombie plague mod.
   Exolent - for fixing lil mistake
 
 Changelog :
   16/10/2008 - v1.0 - First Test
   16/10/2008 - v1.1 - fixed pain shock not working
   19/10/2008 - v1.2 - forgat to add if player was zombie. ^^
   07/02/2009 - v1.2.2 - Rewrited plugin, completely fixed pain shock free.
*/
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
/* -------------------------------------------------------------- */
/*          */ 
/* -------------------------------------------------------------- */
#define PLUGIN "[ZP] Class : Ultimate Big Zombie"
#define VERSION "1.2.2"
#define AUTHOR "Fry!"
new g_zclass_painfree
new bool:g_restorevel[33]
new 
Float:g_velocity[33][3]
new const 
zclass_name[] = "Ultimate Tank Zombie"
new const zclass_info[] = "H:5000 S:200 G:1.0 K:0.0"
new const zclass_model[] = "zombie_source"
new const zclass_clawmodel[] = "v_knife_zombie_drowned.mdl"
const zclass_health 5000
const zclass_speed 200
const Float:zclass_gravity 1.0
const Float:zclass_knockback 0.0
public plugin_precache()
{
 
register_cvar("zp_zclass_pain_free",VERSION,FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
 
 
register_forward(FM_PlayerPreThink"fw_PlayerPreThink")
 
register_forward(FM_PlayerPreThink"fw_PlayerPreThink_Post"1)
 
 
g_zclass_painfree zp_register_zombie_class(zclass_namezclass_infozclass_modelzclass_clawmodelzclass_healthzclass_speedzclass_gravityzclass_knockback)
}
public 
zp_user_infected_post(playerinfector)
{
 if (
zp_get_user_zombie_class(player) == g_zclass_painfree)
 {
  
pev(playerpev_velocityg_velocity[player])
 }
}
public 
fw_PlayerPreThink(id)

 if ( !
is_user_alive(id) || !is_user_bot(id) || !zp_get_user_zombie(id) )
  return 
FMRES_IGNORED
 
 
if (zp_get_user_zombie_class(id) != g_zclass_painfree)
  return 
FMRES_IGNORED
 
 
if (pev(idpev_flags) & FL_ONGROUND)
 {
  
pev(idpev_velocityg_velocity[id])
 
  
g_restorevel[id] = true
 
}
 return 
FMRES_IGNORED
}
public 
fw_PlayerPreThink_Post(id)
{
 if (
zp_get_user_zombie_class(id) != g_zclass_painfree)
  return 
FMRES_IGNORED
 
 
if (g_restorevel[id])
 {
  
g_restorevel[id] = false
  
if (!(pev(idpev_flags) & FL_ONTRAIN))
  {
   new 
groundent pev(idpev_groundentity)
 
   if (
pev_valid(groundent) && (pev(groundentpev_flags) & FL_CONVEYOR))
   { 
    static 
Float:vecTemp[3]
 
    
pev(idpev_basevelocityvecTemp)
 
    
g_velocity[id][0] += vecTemp[0]
    
g_velocity[id][1] += vecTemp[1]
    
g_velocity[id][2] += vecTemp[2]
   }                
   
set_pev(idpev_velocityg_velocity[id])
 
   return 
FMRES_HANDLED
  
}
 }
 return 
FMRES_IGNORED

PLease HELP

Last edited by kazuki; 03-14-2009 at 03:06.
kazuki is offline
 


Thread Tools
Display Modes

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 08:55.


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