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

[help] FleshPound zombie


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
being noob
Senior Member
Join Date: Jan 2012
Location: Hindustan!!
Old 06-06-2012 , 12:17   [help] FleshPound zombie
Reply With Quote #1

Hello!

i want to change the rage button

as i m using 6 classes from cso they all uses G (drop) command for there attacks or abilities and also i m using parachute for zombies so it doesnt works properly

so i wanted to change fleshpound zombie so that i can use drop command rather than +use for having rage.

i was trrying to search +use button in code lol i knw i m wrong maybe it uses a default funtion thats why i failed

pls help
zp_zclass_fleshpound.sma
__________________
<3<3

Last edited by being noob; 06-06-2012 at 12:18.
being noob is offline
naSTR
Veteran Member
Join Date: Dec 2011
Location: Asia, Mongolia
Old 06-06-2012 , 12:55   Re: [help] FleshPound zombie
Reply With Quote #2

IN_USE is +use
Use register_clcmd
if i'm right this will be work
register_clcmd("drop", "MakeRage")
__________________

Last edited by naSTR; 06-06-2012 at 12:57.
naSTR is offline
being noob
Senior Member
Join Date: Jan 2012
Location: Hindustan!!
Old 06-07-2012 , 01:19   Re: [help] FleshPound zombie
Reply With Quote #3

its working but i wanted to remove IN_USE command what should i do?
__________________
<3<3
being noob is offline
naSTR
Veteran Member
Join Date: Dec 2011
Location: Asia, Mongolia
Old 06-07-2012 , 06:19   Re: [help] FleshPound zombie
Reply With Quote #4

Delete they'se
Code:
static iButton; iButton = pev(id, pev_button)
	static iOldButton; iOldButton = pev(id, pev_oldbuttons)
	
	if(zp_get_user_zombie(id) && (zp_get_user_zombie_class(id) == g_KfFleshpound) && !zp_get_user_nemesis(id))
	{
		if((iButton & IN_USE) && !(iOldButton & IN_USE))
			MakeRage(id)
	}
__________________
naSTR is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 06-07-2012 , 06:25   Re: [help] FleshPound zombie
Reply With Quote #5

These. not "They'se".
__________________
jc980 is offline
naSTR
Veteran Member
Join Date: Dec 2011
Location: Asia, Mongolia
Old 06-07-2012 , 06:47   Re: [help] FleshPound zombie
Reply With Quote #6

Quote:
Originally Posted by jc980 View Post
These. not "They'se".
U're the judge?
__________________
naSTR is offline
being noob
Senior Member
Join Date: Jan 2012
Location: Hindustan!!
Old 06-07-2012 , 06:55   Re: [help] FleshPound zombie
Reply With Quote #7

ty naSTR !

i want to change this zombie to0 what should i exaclty do?

tell me the function which creates there abilities i dont knw

zp_zclass_siren.sma
zp_zclass_dummy.sma
__________________
<3<3
being noob is offline
being noob
Senior Member
Join Date: Jan 2012
Location: Hindustan!!
Old 06-07-2012 , 07:10   Re: [help] FleshPound zombie
Reply With Quote #8

@naSTR

something is wrong when i changed fleshpound zombie every one can use rage wtf

also when i was human when i presses G i was having rage LoL
__________________
<3<3
being noob is offline
naSTR
Veteran Member
Join Date: Dec 2011
Location: Asia, Mongolia
Old 06-07-2012 , 07:17   Re: [help] FleshPound zombie
Reply With Quote #9

Quote:
Originally Posted by being noob View Post
@naSTR

something is wrong when i changed fleshpound zombie every one can use rage wtf

also when i was human when i presses G i was having rage LoL
Change it
Code:
public MakeRage(id)
{
	if(zp_get_user_zombie(id) && (zp_get_user_zombie_class(id) == g_KfFleshpound) && !zp_get_user_nemesis(id))
	{
		if(get_gametime() - g_iLastFury[id] < get_pcvar_float(cvar_fury_cooldown))
		{
			print_chatColor(id, "\g[ZP]\n Wait \g%.1f\n seconds, to return to rage.", get_pcvar_float(cvar_fury_cooldown)-(get_gametime() - g_iLastFury[id]))
			return PLUGIN_HANDLED
		}
		
		g_iLastFury[id] = get_gametime()
		
		r = 255
		g = 0
		b = 0
		
		g_speed[id] = 1
		emit_sound(id, CHAN_STREAM, g_Rage, VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
		
		set_task(5.0, "normal", id)
		
		return PLUGIN_HANDLED
	}
}
Dummy:
register_clcmd("drop", "create_dummy")
Code:
public create_dummy( id )
{
	if( zp_get_user_zombie_class( id ) == g_zclass_dummy && !zp_get_user_nemesis( id ) )
	{
		if( gCounter[ id ] >= get_pcvar_num( gCvarDummyLimit ) )
		{
			client_print( id, print_chat, "[ZP] You've reached the limit!" )
			return PLUGIN_HANDLED
		}
		
		new Float:origin[ 3 ]
		
		entity_get_vector( id, EV_VEC_origin,origin )
		
		new ent = create_entity( "info_target" )
		
		entity_set_origin( ent, origin )
		origin[ get_pcvar_num( gCvarPlayerOrigin ) ] += 50.0
		entity_set_origin( id,origin )
		
		entity_set_float( ent, EV_FL_takedamage, get_pcvar_float( gCvarDummyShouldDie ) )
		entity_set_float( ent, EV_FL_health, get_pcvar_float( gCvarDummyHealth ) )
		
		entity_set_string( ent, EV_SZ_classname, "npc_dummy" )
		entity_set_model( ent, dummy_model )
		entity_set_int( ent, EV_INT_solid, 2 )
		
		entity_set_byte( ent, EV_BYTE_controller1, 125 )
		entity_set_byte( ent, EV_BYTE_controller2, 125 )
		entity_set_byte( ent, EV_BYTE_controller3, 125 )
		entity_set_byte( ent, EV_BYTE_controller4, 125 )
		
		new Float:maxs[ 3 ] = { 16.0, 16.0, 36.0 }
		new Float:mins[ 3 ] = { -16.0, -16.0, -36.0 }
		
		entity_set_size( ent, mins, maxs )
		
		entity_set_float( ent, EV_FL_animtime, 2.0 )
		entity_set_float( ent, EV_FL_framerate, 1.0 )
		entity_set_int( ent, EV_INT_sequence, get_pcvar_num( gCvarDummyAnimation ) )
		
		entity_set_float( ent,EV_FL_nextthink, halflife_time( ) + 0.01 )
		
		drop_to_floor( ent )
		
		gCounter[ id ] ++
		client_print( id, print_chat, "[ZP] You've used %d / %d dummies.", gCounter[ id ], get_pcvar_num( gCvarDummyLimit ) )
		
		return 1
	}
}
Delete this
Code:
// No more slowhacking!
	new button = get_user_button( id )
	new oldbutton = get_user_oldbutton( id )
	
	if( !( oldbutton & IN_USE ) && ( button & IN_USE ) && ( get_entity_flags( id ) & FL_ONGROUND ) )
		create_dummy( id )

	return PLUGIN_HANDLED
About siren im not sure i can make it.
__________________

Last edited by naSTR; 06-07-2012 at 07:28.
naSTR is offline
being noob
Senior Member
Join Date: Jan 2012
Location: Hindustan!!
Old 06-07-2012 , 13:41   Re: [help] FleshPound zombie
Reply With Quote #10

ty its working fine now
__________________
<3<3
being noob 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:14.


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