Raised This Month: $32 Target: $400
 8% 

Biohazard v2.00 Beta 3b (Zombie Mod)


Post New Thread Reply   
 
Thread Tools Display Modes
MAMAC
AlliedModders Donor
Join Date: Nov 2011
Location: Space
Old 10-08-2013 , 18:10   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3961

tnx it works now....i dont know why my compile didnt work.....
MAMAC is offline
Send a message via MSN to MAMAC Send a message via Yahoo to MAMAC
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 10-08-2013 , 18:14   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3962

CsBot is illegal, it shouldn't even be a conversation here.
DruGzOG is offline
Send a message via AIM to DruGzOG
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 10-09-2013 , 02:00   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3963

Quote:
Originally Posted by MAMAC View Post
tnx it works now....i dont know why my compile didnt work.....
Because you don't know how to compile Biohazard mod, that's the problem.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
MAMAC
AlliedModders Donor
Join Date: Nov 2011
Location: Space
Old 10-09-2013 , 20:07   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3964

ya im copile whit amx mox studio and i was try whit online compilers....but not succes....tny anyway updae looks good now im tested and eveything looks good.
MAMAC is offline
Send a message via MSN to MAMAC Send a message via Yahoo to MAMAC
alexclaudiu2003
Senior Member
Join Date: Aug 2011
Location: Romania
Old 10-10-2013 , 02:09   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3965

what is wrong ? this plugin hang up server after map change
Code:
#include <amxmodx>
#include <biohazard>
#include <hamsandwich>
#include <fakemeta_util>
#include <cstrike>
#define D_ZOMBIE_NAME "Flesher (arunca oase)"
#define D_ZOMBIE_DESC "Left + right mouse"
#define D_PLAYER_MODEL "models/player/thermal/thermal.mdl"
#define D_CLAWS "models/v_skin1.mdl"
#define CLASS_FLESH  "flesh throw"
new const g_sound_pain[][] =
{
"aslave/slv_pain1.wav",
"aslave/slv_pain2.wav", 
"headcrab/hc_pain1.wav",
"headcrab/hc_pain2.wav",
"headcrab/hc_pain3.wav",
"zombie/zo_pain1.wav",
"zombie/zo_pain2.wav"
}
new const ZOMBIE_FLESH[][] =
{
"models/abone_template1.mdl",
"models/bonegibs.mdl",
"models/fleshgibs.mdl",
"models/gib_b_bone.mdl",
"models/gib_b_gib.mdl",
"models/gib_legbone.mdl",
"models/gib_lung.mdl"
} 
new g_class
new cvar_fleshthrow,cvar_fforce, cvar_fleshdmg, cvar_fselfdmg
new Float: g_LastFthrow[33]
 
public plugin_init() {         
register_plugin("bio_flesher","1.2b","bipbip")
is_biomod_active() ? plugin_init2() : pause("ad")
}
public plugin_precache() 
{
precache_model(D_PLAYER_MODEL)
precache_model(D_CLAWS)
    new iNum
for (iNum = 0; iNum < sizeof g_sound_pain; iNum++)
engfunc(EngFunc_PrecacheSound, g_sound_pain[iNum])
 for (iNum = 0; iNum < sizeof ZOMBIE_FLESH; iNum++)
engfunc(EngFunc_PrecacheModel, ZOMBIE_FLESH[iNum])
}
 
public plugin_init2() {
 
g_class = register_class(D_ZOMBIE_NAME, D_ZOMBIE_DESC)
 if(g_class != -1)
 {
set_class_data(g_class, DATA_HEALTH, 666.0)
set_class_data(g_class, DATA_SPEED, 280.0)
set_class_data(g_class, DATA_GRAVITY, 0.8)
set_class_data(g_class, DATA_REGENDLY, 0.4)
set_class_data(g_class, DATA_KNOCKBACK, 0)
set_class_pmodel(g_class, D_PLAYER_MODEL)
set_class_wmodel(g_class, D_CLAWS)
 }
 
cvar_fleshthrow = register_cvar("bio_fleshthrow", "1")
cvar_fforce  = register_cvar("bio_fforce", "1700")
cvar_fleshdmg = register_cvar("bio_fleshdmg","15")
cvar_fselfdmg  = register_cvar("bio_fselfdmg","30")
 
register_forward(FM_Touch,"fw_Touch")
register_forward(FM_PlayerPreThink,"fw_PlayerPreThink", 1)
}
 
public event_infect(victim, attacker) 
{
 if (get_user_class(victim) == g_class && is_user_zombie(victim) )
 {
client_print(victim,print_chat,"[Bio]Bam chuot FAI va TRAI de nem thit.") 
 }
}
public clcmd_throw(id)
{
 static Float: Origin[3], Float: Velocity[3], Float: Angle[3], MinBox[3], MaxBox[3]
pev(id, pev_origin, Origin)
pev(id, pev_velocity, Velocity)
pev(id, pev_angles, Angle)
 static Health, Float: damage
 Health = get_user_health(id)
damage = get_pcvar_float(cvar_fselfdmg)
 
 if (Health > damage)
 {
  static ent ; ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"))
 
set_pev(ent, pev_classname, CLASS_FLESH)
engfunc(EngFunc_SetModel, ent, ZOMBIE_FLESH[random(sizeof ZOMBIE_FLESH)])
Angle[0] = random_float(0.0, 360.0)
Angle[1] = random_float(0.0, 360.0)
MinBox = { -1.0, -1.0, -1.0 }
MaxBox = { 1.0, 1.0, 1.0 }
 
set_pev(ent, pev_angles, Angle)
engfunc(EngFunc_SetSize, ent, MinBox, MaxBox)
engfunc(EngFunc_SetOrigin, ent, Origin)
set_pev(ent, pev_movetype, MOVETYPE_TOSS)
set_pev(ent, pev_solid, SOLID_TRIGGER)
set_pev(ent, pev_owner, id)
 
velocity_by_aim(id, get_pcvar_num(cvar_fforce), Velocity)
set_pev(ent, pev_velocity, Velocity)
 
emit_sound(id, CHAN_VOICE, g_sound_pain[random(sizeof g_sound_pain)], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
set_pev(id, pev_health, Health - damage)
 }
 else
 {
client_print(id, print_center, "[Bio]Ban ko du thit.")
 }
}
public fw_Touch(pToucher, pTouched)
{
 if ( pev_valid(pToucher))
 {
  static className[32], className2[32]
pev(pToucher, pev_classname, className, 31)
  if ( pev_valid(pTouched)) pev(pTouched, pev_classname, className2, 31)
 
  if ( equal(className, CLASS_FLESH))
  {
   static attacker ; attacker = pev(pToucher, pev_owner)
 
   if ( pev_valid(pTouched))
   {
    if ( equal(className2, "player") && is_user_connected(pTouched))
    {
     static origin[3], Float: damage
     get_user_origin(pTouched, origin)
damage = get_pcvar_float(cvar_fleshdmg)
     static CsTeams:team[2]
team[0] = cs_get_user_team(pTouched), team[1] = cs_get_user_team(attacker)
 
     if (attacker == pTouched)
      return FMRES_SUPERCEDE
 
if (!get_cvar_num("mp_friendlyfire") && team[0] == team[1]) 
      return FMRES_SUPERCEDE
     message_begin(MSG_BROADCAST, SVC_TEMPENTITY);
write_byte(TE_BLOOD);
write_coord(origin[0]);
write_coord(origin[1]);
write_coord(origin[2] + 10);
write_coord(random_num(-360, 360));
write_coord(random_num(-360, 360));
write_coord(-10);
write_byte(70);
write_byte(random_num(15, 35));
message_end() 
ExecuteHam(Ham_TakeDamage, pTouched, pToucher, attacker, damage, DMG_GENERIC)
    }
    else if ( equal(className2, "func_breakable")) dllfunc(DLLFunc_Use, pTouched, attacker)  
    else if ( equal(className2, CLASS_FLESH)) return FMRES_SUPERCEDE 
}  
engfunc(EngFunc_RemoveEntity, pToucher)
  }
 }
 
 return FMRES_IGNORED
}  
public fw_PlayerPreThink(id)
{
 if(!is_user_alive(id))
  return FMRES_IGNORED
 
static Float: Time
static button
 button = pev(id, pev_button)
Time = get_gametime()
 
 if (is_user_zombie(id) && get_user_class(id) == g_class )
 {
      if ( button & IN_ATTACK && button & IN_ATTACK2)
  {
   if (get_pcvar_num(cvar_fleshthrow))
   {
    if(Time - 1.1 > g_LastFthrow[id])
    {
clcmd_throw(id)
g_LastFthrow[id] = Time
}
   }
  }
 } 
 return FMRES_IGNORED
} 
 
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/  

Last edited by alexclaudiu2003; 10-10-2013 at 02:10.
alexclaudiu2003 is offline
MAMAC
AlliedModders Donor
Join Date: Nov 2011
Location: Space
Old 10-10-2013 , 10:50   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3966

can u fix 1 thing... when round end,next round first 5 sec all players (who was zombie last round) have zombie model,then after 5 sec of round,model return to CT and T regular model.


Edit: can u add to set custom flag on some classes?

Last edited by MAMAC; 10-10-2013 at 11:17.
MAMAC is offline
Send a message via MSN to MAMAC Send a message via Yahoo to MAMAC
MAMAC
AlliedModders Donor
Join Date: Nov 2011
Location: Space
Old 10-11-2013 , 18:38   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3967

im fixed no need
MAMAC is offline
Send a message via MSN to MAMAC Send a message via Yahoo to MAMAC
romm1e
Member
Join Date: Oct 2010
Old 10-16-2013 , 01:13   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3968

yokomo, can you add new cvar bh_maxzombies_multiplier ?
We have cvar for max zombie limit, but it should be better if this limit depend on online players on the server.
Thanks in advance.
romm1e is offline
Pato.freakz
Junior Member
Join Date: Oct 2013
Location: Romania
Old 10-17-2013 , 07:19   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3969

Quote:
Originally Posted by tuty View Post
i post here some private biohazard plugins made by me.. description in each archive
Hey, this plugins doesn't work, they give me erors when i try to compile them!
Help me plz!

Link: http://www.girlshare.ro/32921474.3 Bio Headcrab

Last edited by Pato.freakz; 10-17-2013 at 07:28.
Pato.freakz is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 10-28-2013 , 18:34   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3970

I have attached a couple of plugins for the buy special rifles.
These rifles are free and are purchased by the player write in chat /zmaj /m3 /eth
Is it possible to create a menu that is opened with the command /bonus and then the screen displays a list of the rifles, and when the player chooses rifles he automatically receive without having to write in the chat /zmaj or /eth or /m3
Sorry for bad English. Please HELP me.
Krtola is offline
Send a message via Skype™ to Krtola
Reply


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 03:32.


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