Raised This Month: $ Target: $400
 0% 

Biohazard v2.00 Beta 3b (Zombie Mod)


Post New Thread Reply   
 
Thread Tools Display Modes
BeasT
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 07-28-2008 , 09:13   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #2251

Quote:
Originally Posted by SweetiePie View Post
Just use the one, which just has been provided with version 1.92 of Biohazard: zm_nofs.sma .
But keep in mind, to place this plugin in plugins.ini, not in plugins-bio.ini ! ;)

Greets
Compiled it locally and added to plugins.ini but doesn't work. It's running but I still here zm footsteps.
BeasT is offline
Send a message via Skype™ to BeasT
Virtual-Vybz
Senior Member
Join Date: Apr 2008
Old 07-28-2008 , 09:25   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #2252

Hey Cheap, Im back with more questions and suggestions 'bout new ver .
How to creat zombie climbing class like "marcellus" done in his class version, i dont really know how to creat such a class?
Here is Marcellus Code.

Im sorry about the lenght of that...

Code:
#include <amxmodx>
#include <biohazard>
#include <hamsandwich>
#include <fakemeta_util>
#include <bh_classes>


#define STR_T 32
#define MAX_PLAYERS 32

#define D_ZOMBIE_NAME "Climbing Zombie"
#define D_ZOMBIE_DESC "Can climb walls, damage by light | - HP | + Spd | + Knockback"
#define D_PLAYER_MODEL "models/player/..."
#define D_CLAWS "models/..."

new g_clsid, cvar_speed, g_smoke, cvar_minillum, cvar_damage, cvar_delay


new Float:g_wallorigin[33][3]
new Float:g_nextdmg[33]
new Float:g_shoottime[33]

public plugin_init() {         
	register_plugin("bio_climbingzombie","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" )
}
public event_clearclientdata(id) {
	g_nextdmg[id] = 0.0
	g_shoottime[id] = 0.0
}

public plugin_init2() {
	new clsid = RegisterZombie(D_ZOMBIE_NAME, D_ZOMBIE_DESC)
	BH_set_string(clsid, zm_player_model, D_PLAYER_MODEL)
	BH_set_string(clsid, zm_claws_model, D_CLAWS)
	BH_set_float(clsid, zm_gravity, 0.75)
	BH_set_float(clsid, zm_health, 500.0)
	BH_set_float(clsid, zm_health, 1000.0, true)
	BH_set_float(clsid, zm_speed, 300.0)
	BH_set_float(clsid, zm_speed, 350.0, true)
	BH_set_integer(clsid, zm_can_regen, 0)
	BH_set_float(clsid, zm_regen_delay,  0.05)
	BH_set_integer(clsid, zm_can_be_kbed, 1)
	BH_set_float(clsid, zm_kb_multi, 2.0)
	BH_set_integer(clsid, zm_fov,120)
	BH_set_float(clsid, zm_kb_hp, 150.0)
	BH_set_float(clsid, zm_regen_startdelay, 0.0)
	BH_set_float(clsid, zm_kb_duck_multi, 0.80)
	BH_set_integer(clsid, zm_has_nvg, 1)
	BH_set_integer(clsid, zm_can_infect, 1)
	
	g_clsid = clsid
	if (is_user_first_zombie(id)){
	cvar_speed = register_cvar("bh_zm_climbingspeed", "500")
	}
	else{
	cvar_speed = register_cvar("bh_zm_climbingspeed", "300")
	}
	cvar_minillum = register_cvar("bh_zm_minlight", "20.0")
	cvar_damage = register_cvar("bh_zm_lightdamage", "10.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)
}


public cheese_player_touch(id, world) {
	if(!is_user_alive(id) || g_clsid != BH_get_user_classid(id))
		return HAM_IGNORED
	
	new classname[STR_T]
	pev(world, pev_classname, classname, (STR_T-1))
	
	if(equal(classname, "worldspawn") || equal(classname, "func_wall") || equal(classname, "func_breakable"))
		pev(id, pev_origin, g_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(id, pev_light_level, test) 
	
	//client_print(0, print_chat,"-- id=%d -- light=%2f, illum=%2f", id, test, getillumination(id))
	
	// Player has not our zombie class
	if(g_clsid != BH_get_user_classid(id)) {
		return HAM_IGNORED
	}

	static Float:origin[3]
	pev(id, pev_origin, origin)
	
	if (get_gametime() > g_nextdmg[id]) {
		static Float:lightlevel; pev(id,pev_light_level, lightlevel)
		
		if (lightlevel > get_pcvar_float(cvar_minillum)) { 

			fm_fakedamage(id, "light", get_pcvar_float(cvar_damage), DMG_BURN)
			
			// do some smokes
			message_begin( MSG_BROADCAST, SVC_TEMPENTITY )
			write_byte( TE_SMOKE )
			engfunc(EngFunc_WriteCoord, origin[ 0 ] )
			engfunc(EngFunc_WriteCoord, origin[ 1 ] )
			engfunc(EngFunc_WriteCoord, origin[ 2 ] )
			write_short( g_smoke )
			write_byte( 20 )
			write_byte( 10 )
			message_end()

			g_nextdmg[id] = get_gametime() + 1.0
		}
	}
	
	// from Cheap_Suit's  Upgrades Mod eXtended
	static button ; button = pev(id, pev_button)

	if(button & IN_JUMP && button & IN_DUCK)
	{
		if(get_distance_f(origin, g_wallorigin[id]) > 10.0)
			return HAM_IGNORED
		
		if(pev(id, pev_flags) & FL_ONGROUND)
			return HAM_IGNORED
		
		if (get_gametime() < g_shoottime[id]) {
			return HAM_IGNORED
		}
		
		if(button & IN_FORWARD)
		{
			static Float:velocity[3]
			velocity_by_aim(id, get_pcvar_num(cvar_speed), velocity)
			fm_set_user_velocity(id, velocity)
		}
		else if(button & IN_BACK)
		{
			static Float:velocity[3]
			velocity_by_aim(id, -get_pcvar_num(cvar_speed), velocity)
			fm_set_user_velocity(id, velocity)
		}
	}	
	

	

	return HAM_IGNORED
}

public event_zombify(id) if (is_user_alive(id) && g_clsid == BH_get_user_classid(id)) {
	BH_client_print(id, "To climb a wall : press JUMP + DUCK")
}
public cheese_takedamage(victim, inflictor, attacker, Float:damage, damagetype)
{

	if (is_user_alive(victim)) {
		if (g_clsid == BH_get_user_classid(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));
}*/
__________________
Virtual-Vybz is offline
SweetiePie
Member
Join Date: Jul 2007
Location: Germany, Berlin
Old 07-28-2008 , 10:32   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #2253

Quote:
Originally Posted by BeasT View Post
Compiled it locally and added to plugins.ini but doesn't work. It's running but I still here zm footsteps.
Well, sorry, then I got no further idea.
Maybe it's decisive in which order this plugin has to be called.
Try to position it at the beginning of your custom-plugins in plugins.ini.

On my server it functions flawlessly.

Greets

PS.: Sorry, don't know, seems I wasn't concentrated enough while testing.... it really does NOT function. Footstep are still able to be heard.
__________________
Don't call me a cheater ! Watch me and call me a teacher !





Last edited by SweetiePie; 07-28-2008 at 11:53. Reason: Wrong information
SweetiePie is offline
Send a message via ICQ to SweetiePie Send a message via Skype™ to SweetiePie
BeasT
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 07-28-2008 , 11:35   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #2254

g_survivor_win_sounds are not precached.
BeasT is offline
Send a message via Skype™ to BeasT
Swuifti
Senior Member
Join Date: Mar 2008
Location: Bulgaria/Sofia
Old 07-28-2008 , 12:07   Re: Biohazard v2.00 Beta 3a (Zombie Mod)
Reply With Quote #2255

Quote:
Originally Posted by Cheap_Suit View Post
There is a cvar to enable/disable this. I've merged it with the main plugin because I feel that it's a required feature.


There is two ways to create a class. That's the easy way to create your own. If you want to make a advance class, refer to this example: http://www.cheapsuit.ampaste.net/m5103275.
In this version is good that you can make your own class... just take some models and type the things you want for your zombie ...
Swuifti is offline
Send a message via ICQ to Swuifti Send a message via Yahoo to Swuifti Send a message via Skype™ to Swuifti
marcellus
Senior Member
Join Date: Mar 2004
Old 07-28-2008 , 13:07   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #2256

Quote:
Originally Posted by SweetiePie View Post
Well, sorry, then I got no further idea.
Maybe it's decisive in which order this plugin has to be called.
Try to position it at the beginning of your custom-plugins in plugins.ini.

On my server it functions flawlessly.

Greets

PS.: Sorry, don't know, seems I wasn't concentrated enough while testing.... it really does NOT function. Footstep are still able to be heard.
here is a version working with bh 2.0.

you can put it in plugins-bio.ini.

Quote:
Originally Posted by Virtual-Vybz View Post
Hey Cheap, Im back with more questions and suggestions 'bout new ver .
How to creat zombie climbing class like "marcellus" done in his class version, i dont really know how to creat such a class?
Here is Marcellus Code.

Im sorry about the lenght of that...
i quickly tried to convert this class to bh 2.0 from your source.
i havnt tested it so you will tell me if it work or not.

dont forget to set the correct models in the source :
#define D_PLAYER_MODEL "models/player/..."
#define D_CLAWS "models/..."

Quote:
Originally Posted by Swuifti View Post
In this version is good that you can make your own class... just take some models and type the things you want for your zombie ...
this was already the case in the old bh_classes ... you missed something
Attached Files
File Type: sma Get Plugin or Get Source (bio_nofs.sma - 959 views - 1.3 KB)
File Type: amxx bio_nofs.amxx (3.3 KB, 224 views)
File Type: sma Get Plugin or Get Source (bio_climbingzombie.sma - 1046 views - 4.3 KB)
File Type: amxx bio_climbingzombie.amxx (8.9 KB, 260 views)
__________________
www.war-cs.com
french cz community

Last edited by marcellus; 07-28-2008 at 15:02.
marcellus is offline
Virtual-Vybz
Senior Member
Join Date: Apr 2008
Old 07-28-2008 , 14:35   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #2257

@first thanks for the fast help. but works not correct. i cant choose this class and i get spawned as this class but can't climb on walls

dont know where the failor is... :/
__________________
Virtual-Vybz is offline
marcellus
Senior Member
Join Date: Mar 2004
Old 07-28-2008 , 15:03   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #2258

Quote:
Originally Posted by Virtual-Vybz View Post
@first thanks for the fast help. but works not correct. i cant choose this class and i get spawned as this class but can't climb on walls

dont know where the failor is... :/
sorry .. it was quick made but not good

i tested it this time.
Attached Files
File Type: sma Get Plugin or Get Source (bio_climbingzombie.sma - 1628 views - 4.3 KB)
File Type: amxx bio_climbingzombie.amxx (8.9 KB, 462 views)
__________________
www.war-cs.com
french cz community
marcellus is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 07-28-2008 , 17:17   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #2259

xD new biohazard is hot
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Gr33tz
Member
Join Date: Apr 2008
Old 07-28-2008 , 19:02   Re: Biohazard v2.00 Beta 3b (Zombie Mod)
Reply With Quote #2260

Dear all

I have 24 slots server with 2.00 beta 3b biohazard, but i got one problem.

On start round spawns 3-4 zombie, how change to 1?

Last edited by Gr33tz; 07-29-2008 at 03:23.
Gr33tz 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:53.


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