Raised This Month: $ Target: $400
 0% 

ESF Attack help.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ShAyA
Member
Join Date: Oct 2005
Old 11-12-2005 , 05:46   ESF Attack help.
Reply With Quote #1

I was wondering what is the command to remove an attack.
theres a give_item, but like not a remove_item.

Secondly is it possible ( or its possibly possible but if anybody knows... )

how to actually make your own attacks...

Like i know its possible to change the sprites of an attack, which i dont exactly want...

and i also know its possible to do 'specials' like in evm, where you press a button

But i wanted it to be like a normal attack you can select with your keys, and has its own charge time, vgui sprite showing, and its own sounds etc.

Or otherwise, Changing the VGUI sprite (in game) to show to another sprite, and changing its parameters (ie. charge time, damage, sound I know is possible) aswell.

Sorry my english is jumbled a bit I'm tired...

P.S. In ESF when you transform your ki usage for things is reduced, and was wondering what that variable is... :$

Thanks,
ShAyA
ShAyA is offline
Stephen
Senior Member
Join Date: Aug 2004
Old 11-12-2005 , 06:24  
Reply With Quote #2

To remove weapons.
strip the user weapons and give him the attacks where you wanna keep

Code:
public client_PreThink(id)
{
	strip_user_weapons(id)
	give_item(id, "weapon_melee");

	return PLUGIN_HANDLED;
}

Dunno about the other things 100% sure. Its been an while since i modded ESF a little.
--
How you mean Ki usage ? You mena the Powerlevel (with the offsets) ot the KI where is the BlueBar ?
Ah you mena the KI after rereading it ^^



Code:
entity_get_float( id, EV_FL_fuser4 );
entity_set_float( id, EV_FL_fuser4, 1000.0 );// Set the KI to the Max
Code:
new KI = entity_get_float( id, EV_FL_fuser4 )
entity_set_float( id, EV_FL_fuser4, KI -NUMBER)
I think its done that way again, but im not 100% sure atm.
Stephen is offline
SSJ2GOKU
Senior Member
Join Date: Oct 2005
Location: Belgium
Old 11-12-2005 , 06:34  
Reply With Quote #3

err i thought the max ki was 999.999.999

why you do then the

Quote:
entity_get_float( id, EV_FL_fuser4 );
entity_set_float( id, EV_FL_fuser4, 1000.0 );// Set the KI to the Max
only to 1000.0 ???

or is that the bar and not the number ?
SSJ2GOKU is offline
Send a message via MSN to SSJ2GOKU
Stephen
Senior Member
Join Date: Aug 2004
Old 11-12-2005 , 07:36  
Reply With Quote #4

KI and Powerlevel are two different things.

KI = is in the BlueBar where you are able to charge up.
PL = is the Number that keeps rising when you fight or Transform.
Stephen is offline
ShAyA
Member
Join Date: Oct 2005
Old 11-12-2005 , 16:29  
Reply With Quote #5

Well yeh ki usage...

i know how to set the ki usage bar, and I'd be able to code my own of what im saying (but if its just one variable change I'd prefer that).

When your normal goku, one transport takes away like almost a quarter of your ki,

but when you transform it takes like 1/10th of the bar.

Is there a variable somewhere that changes how much ki is used by doing general things (flying, swooping, charging attacks).

And also... what about adding new attacks???
like completely coding new attacks if what I said earlier was confusing.
Like is it possible, to make your own 'item slot' that you can catch when they hold down the button or something and let go?

Or what about just 'special' coding, you press a button, you charge up a 'fake' attack, and then shoot it at someone (like in evm: buus genocide), how do you control things like the speed it goes, the size, chargetime etc, an example of a 'special' would probably greatly help me.
ShAyA is offline
ShAyA
Member
Join Date: Oct 2005
Old 11-13-2005 , 06:22  
Reply With Quote #6

uhh.. bump...
ShAyA is offline
Lord of Destruction
Member
Join Date: Sep 2004
Old 11-13-2005 , 08:06  
Reply With Quote #7

- There are no KiCost variables, you need to adjust it yourself
- your own item slot is possible but a bit buggy ^^ ( ask encore maybe he helps you )
- for specials ( also new weapons ) you need to code all by yourself ( there are various entity tuts on these forums )
Lord of Destruction is offline
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 23:39.


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