Raised This Month: $ Target: $400
 0% 

scripting questions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ChaosPriest
Member
Join Date: May 2005
Old 06-20-2007 , 01:30   scripting questions
Reply With Quote #1

pretty much self explanatory. i need to decompile an amxx file to be able to understand a certain sprite and its vaules in the game.
this is for esf (ecx RC2) and its a character plugin for it.
the character is goku and im trying to figure out how i need to set a sprite of lightning bolts (that appears during his ssj tranformation)effect outside of the character model.
basically we are creating the plugin with a creator and then compiling it into amxx.


i can post the codes i am using and maybe someone can help me that way.


for ( new Float:i=5.0; i<=5.0; i++ )
set_task( i, "fxLight", uniqueTaskID( Client,100 ), CORE, 1, "a",1 );


not sure what the numbers mean exactly but it tells the mod.fx to use the effects from the fxlight line in the mod.fx which is this

public fxLight( Core[] )
{
AddFx( Core[0], "fxWorldLight", 100, 100, 55, 10, 2.1, 0.2 );
AddFx( Core[0], "fxSpriteEntity", "sprites/lgtning.spr", 100, 200, 100.0, 20.0, 1.0, 0.1, 0.0, 10.0 );
return 1;

since im not sure what the values after the sprite mean, maybe someone can help me with that.
__________________
ChaosPriest is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 06-20-2007 , 06:25   Re: scripting questions
Reply With Quote #2

AddFx(bla, bla, blub...) is a custom function...which is called...
Do you have the sourcecode or only the amxx plugin?

greetz regalis
__________________
regalis is offline
ChaosPriest
Member
Join Date: May 2005
Old 06-20-2007 , 08:08   Re: scripting questions
Reply With Quote #3

no we create the plugin. and im still learning this. also, how would i determine what the source code?
__________________
ChaosPriest is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 06-20-2007 , 08:10   Re: scripting questions
Reply With Quote #4

Source code is the .sma file with scripting code!
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
ChaosPriest
Member
Join Date: May 2005
Old 06-20-2007 , 08:14   Re: scripting questions
Reply With Quote #5

i dont have one. i think it is compiling a cxi file plus 5 core files. mod.sound/mod.charge/fx/mod.weapon/.classextension.
__________________
ChaosPriest is offline
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 06-20-2007 , 14:41   Re: scripting questions
Reply With Quote #6

raven released an fx tutorial.
corona-bytes.net forums -> CCI -> tutorials -> fxlib
__________________

Last edited by Greenberet; 06-20-2007 at 15:25.
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
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 21:32.


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