Raised This Month: $51 Target: $400
 12% 

Biohazard v2.00 Beta 3b (Zombie Mod)


Post New Thread Reply   
 
Thread Tools Display Modes
eforie
BANNED
Join Date: Dec 2008
Location: Romania
Old 04-24-2009 , 16:05   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3181

#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <zombieplague>
 
new const PLUGIN[] = "[ZP] CROW ZOMBIE";
new const VERSION[] = "1.0";
new const AUTHOR[] = "v3x+Roadrage";
 
new g_zclass_crow
new bool:has_jp[33];
new const CVAR_JP_SPEED[] = "jp_speed";
 
// Crow Zombie Atributes
new const zclass_name[] = { "Crow Zombie" } // name
new const zclass_info[] = { "Can Fly" } // description
new const zclass_model[] = { "crow" } // model
new const zclass_clawmodel[] = { "v_knife_zombie.mdl" } // claw model
const zclass_health = 100 // health
const zclass_speed = 250 // speed
const Float:zclass_gravity = 0.6 // gravity
const Float:zclass_knockback = 2.0 // knockback
 
public plugin_init()
{
register_plugin(PLUGIN , VERSION , AUTHOR);
register_cvar(CVAR_JP_SPEED , "250");
}
public plugin_precache()
{
g_zclass_crow = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)

}
public client_PreThink(id)
{
if(!is_user_alive(id) || !zp_get_user_zombie(id)) return PLUGIN_CONTINUE
if(zp_get_user_zombie_class(id) != g_zclass_crow) return PLUGIN_CONTINUE

new Float:fAim[3] , Float:fVelocity[3];
VelocityByAim(id , get_cvar_num(CVAR_JP_SPEED) , fAim);

if(!(get_user_button(id) & IN_JUMP))
{
fVelocity[0] = fAim[0];
fVelocity[1] = fAim[1];
fVelocity[2] = fAim[2];
set_user_velocity(id , fVelocity);
fm_set_rendering(id, kRenderFxGlowShell, 255, 0, 0, kRenderNormal, 16);
}
return PLUGIN_CONTINUE;
}
 
// User Infected forward
public zp_user_infected_post(id, infector)
{
if (zp_get_user_zombie_class(id) == g_zclass_crow)
{
client_print(id,print_chat,"[ZP] You are using crow zombie hold jump to fly")
has_jp[id] = true
}
}
// Set entity's rendering type (from fakemeta_util)
stock fm_set_rendering(entity, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16)
{
static Float:color[3]
color[0] = float(r)
color[1] = float(g)
color[2] = float(b)

set_pev(entity, pev_renderfx, fx)
set_pev(entity, pev_rendercolor, color)
set_pev(entity, pev_rendermode, render)
set_pev(entity, pev_renderamt, float(amount))
}

==============================
somebody could make this script to run o biohazard?
eforie is offline
Send a message via Yahoo to eforie Send a message via Skype™ to eforie
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 04-24-2009 , 19:56   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3182

Use PHP!!!

Quote:
PHP Code:
Text 
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Zombiecorp
Member
Join Date: Mar 2009
Old 04-25-2009 , 03:58   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3183

where Cheap_suits?
Zombiecorp is offline
mando127
Veteran Member
Join Date: Dec 2006
Location: virginia
Old 04-25-2009 , 06:48   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3184

he is not loged on steam for 1 month now so i don't know.
__________________
mando127 is offline
Send a message via Skype™ to mando127
eforie
BANNED
Join Date: Dec 2008
Location: Romania
Old 04-26-2009 , 08:42   i make myself the plugin (edited)
Reply With Quote #3185

PHP Code:
#include <amxmodx>
#include <biohazard>
#include <hamsandwich>
#include <fakemeta_util>
#define STR_T 32
#define MAX_PLAYERS 32
#define D_ZOMBIE_NAME "Crow"
#define D_ZOMBIE_DESC "Can Fly | - HP | + Spd | + Knockback"
#define D_PLAYER_MODEL "models/player/gorgzila/gorgzila.mdl"
#define D_CLAWS "models/player/gorgzila/avh_alienclaws.mdl"
&#12288;
new g_class
new cvar_speedg_smokecvar_minillumcvar_damagecvar_delay
&#12288;
new Float:g_wallorigin[33][3]
new 
Float:g_nextdmg[33]
new 
Float:g_shoottime[33]
public 
plugin_init() { 
register_plugin("bio_crowzombie","1.2b","bipbip")
is_biomod_active() ? plugin_init2() : pause("ad")
}
public 
plugin_precache() {
precache_model(D_PLAYER_MODEL)
precache_model(D_CLAWS)
g_smoke precache_model"sprites/steam1.spr" )
}
&
#12288;
public plugin_init2() {
&
#12288;
g_class register_class(D_ZOMBIE_NAMED_ZOMBIE_DESC)
if(
g_class != -1)
{
set_class_data(g_classDATA_HEALTH100.0)
set_class_data(g_classDATA_SPEED225.0)
set_class_data(g_classDATA_GRAVITY0.75)
set_class_data(g_classDATA_REGENDLY0.05)
set_class_pmodel(g_classD_PLAYER_MODEL)
set_class_wmodel(g_classD_CLAWS)
}
 
cvar_speed register_cvar("bh_zm_climbingspeed""240")
cvar_minillum register_cvar("bh_zm_minlight""20.0")
cvar_damage register_cvar("bh_zm_lightdamage""2.0")
cvar_delay register_cvar("bh_zm_climbdelay""0.3")
 
RegisterHam(Ham_Touch"player""cheese_player_touch"1)
RegisterHam(Ham_Player_PreThink"player""cheese_player_prethink"1)
RegisterHam(Ham_TakeDamage"player""cheese_takedamage"1)
}
&
#12288;
public cheese_player_touch(idworld) {
 
if(!
is_user_alive(id) || g_class != get_user_class(id))
return 
HAM_IGNORED
 
new classname[STR_T]
pev(worldpev_classnameclassname, (STR_T-1))
 
if(
equal(classname"worldspawn") || equal(classname"func_wall") || equal(classname"func_breakable"))
pev(idpev_origing_wallorigin[id])
return 
HAM_IGNORED 
 
}
public 
cheese_player_prethink(id) {
// Player not alive or not zombie
if(!is_user_alive(id) || !is_user_zombie(id)) {
return 
HAM_IGNORED
}
static 
Float:test pev(idpev_light_leveltest
 
// Player has not our zombie class
if(g_class != get_user_class(id)) {
return 
HAM_IGNORED
}
static 
Float:origin[3]
pev(idpev_originorigin)
 
if (
get_gametime() > g_nextdmg[id]) {
static 
Float:lightlevelpev(id,pev_light_levellightlevel)
 
if (
lightlevel get_pcvar_float(cvar_minillum)) { 
fm_fakedamage(id"light"get_pcvar_float(cvar_damage), DMG_BURN)
 
// do some smokes
message_beginMSG_BROADCASTSVC_TEMPENTITY )
write_byteTE_SMOKE )
engfunc(EngFunc_WriteCoordorigin] )
engfunc(EngFunc_WriteCoordorigin] )
engfunc(EngFunc_WriteCoordorigin] )
write_shortg_smoke )
write_byte20 )
write_byte10 )
message_end()
g_nextdmg[id] = get_gametime() + 1.0
}
}
 
// from Cheap_Suit's Upgrades Mod eXtended
static button button pev(idpev_button)
if(
button IN_JUMP)
{
static 
Float:velocity[3]
velocity_by_aim(idget_pcvar_num(cvar_speed), velocity)
fm_set_user_velocity(idvelocity)

 
 
return 
HAM_IGNORED
}
public 
event_infect(victimattacker) {
client_print(victimprint_chat"To Fly : press and hold JUMP ")
g_nextdmg[victim] = 0.0
g_shoottime
[victim] = 0.0 
}
public 
cheese_takedamage(victiminflictorattackerFloat:damagedamagetype)
{
if (
is_user_alive(victim)) {
if (
g_class == get_user_class(victim)) {
g_shoottime[victim] = get_gametime() + get_pcvar_float(cvar_delay);
}
}
return 
HAM_IGNORED
}
/*
Float:getillumination(id) {
static Float:i ; i = float(engfunc(EngFunc_GetEntityIllum, id))
if (i > 75.0) i = 75.0
return (100.0 * xs_sqrt(i / 75.0));
}*/ 
============================================= =======
Download gorgzilla (models)
Copy models to models/player/

If you have problems with your compiler try my compiler (compiler.rar)

Some pics of zombie model
http://img530.**************/my.php?image=36522944.jpg
http://img530.**************/my.php?image=64160110.jpg

The plugin was made for Zombie Plague
http://forums.alliedmods.net/showthread.php?t=89875
Attached Files
File Type: rar gorgzila.rar (474.7 KB, 356 views)
File Type: sma Get Plugin or Get Source (bio_crowzombie.sma - 1027 views - 3.8 KB)
File Type: rar compiler.rar (552.7 KB, 342 views)

Last edited by eforie; 04-26-2009 at 09:09.
eforie is offline
Send a message via Yahoo to eforie Send a message via Skype™ to eforie
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 04-26-2009 , 08:50   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3186

Lol:

Quote:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Error: Invalid function or declaration on line 11
Error: Invalid function or declaration on line 14
Error: Invalid function or declaration on line 27
Error: Invalid expression, assumed zero on line 29
Error: Invalid expression, assumed zero on line 29
Warning: Expression has no effect on line 29
Error: Undefined symbol "register_class" on line 30
Error: Undefined symbol "set_class_data" on line 33
Warning: Expression has no effect on line 33
Error: Expected token: ";", but found ")" on line 33
Error: Invalid expression, assumed zero on line 33
Error: Too many error messages on one line on line 33
Compilation aborted.
10 Errors.
Could not locate output file Untitled.amx (compile failed).
Also you got these things on line 11,14,27 and 29

PHP Code:
&#12288; 
why?
__________________

Last edited by crazyeffect; 04-26-2009 at 08:53.
crazyeffect is offline
Send a message via MSN to crazyeffect
Old 04-26-2009, 08:57
eforie
This message has been deleted by eforie. Reason: error
Old 04-26-2009, 08:58
crazyeffect
This message has been deleted by crazyeffect. Reason: I gave a comment to 2 deleted topics :D
Old 04-26-2009, 09:00
eforie
This message has been deleted by eforie. Reason: error
eforie
BANNED
Join Date: Dec 2008
Location: Romania
Old 04-30-2009 , 07:03   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3187

i deleted my posts because you asked me twice where are the compiler
eforie is offline
Send a message via Yahoo to eforie Send a message via Skype™ to eforie
Zombiecorp
Member
Join Date: Mar 2009
Old 05-01-2009 , 10:13   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3188

i think cheap_suits gone forever
Zombiecorp is offline
Sp3rMiNaToR
BANNED
Join Date: Apr 2009
Location: Greece ^_^
Old 05-01-2009 , 10:43   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3189

In the next version,it would be good to add infection bombs ,aditotes hidden in secret places on several maps....

Last edited by Sp3rMiNaToR; 05-10-2009 at 16:15.
Sp3rMiNaToR is offline
Send a message via MSN to Sp3rMiNaToR
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 05-01-2009 , 13:50   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #3190

Quote:
Originally Posted by Zombiecorp View Post
i think cheap_suits gone forever
.: Description :.

Biohazard is a server side modification for Counter-Strike. The gameplay is a classic
zombie outbreak scenario. Each round random players are infected with a "contagious virus"
and must infect the others in order to multiply. Round is won by eliminating the opposing
force. The Survivors however, have a secondary objective, that is to survive.

This is not a rewrite of the original Zombie Mod by apophis but rather a remake. Due to
the lack of a "working" public version (at the time) and requested by many users, I've
decided to create my own from scratch. It was originally named it Zombie-Strike, until I
found out that it was already taken. Thus, was renamed to Biohazard.

(I decided to move back to Canada. It's going to take a while when im able to code
again.)
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
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 09:56.


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