Content

Post new topic Reply to topic

Custom Transformation (Particle System)

Author Message
Mjuksel Your Past View user's profile Send private message

Reply with quote Sunday, December 23, 2012

Hi guys,

So here is an update on what I did Very Happy
Check the video :3

http://nl.twitch.tv/mjuksel/b/350686865

It's not perfect yet, but I wanna make a Bleach style transformation Very Happy

and another update, thanks to Zeth (Brad :*)

choosable custom transformation effects Very Happy

http://nl.twitch.tv/mjuksel/b/350747671

Mjuksel Your Past View user's profile Send private message

Reply with quote Monday, December 24, 2012

Here are the steps I (with help of Brad) did:
In cg_tiers.h, search for:

qboolean   generatesDebris;


after this line add:

character auraDebrisParticle[256];


then go to cg_tiers.c and search for:

/*===================
CG_Aura_AddDebris
===================*/
static void CG_Aura_AddDebris( centity_t *player, auraState_t *state, auraConfig_t *config){
// Don't add debris if the aura isn't active
if(!state->isActive){
return;
}
// Don't add debris could if configuration says we shouldn't.
if(!config->generatesDebris){
return;
}
// Spawn the debris system if the player has just entered PVS
if(!CG_FrameHist_HadAura( player->currentState.number)){
PSys_SpawnCachedSystem( "AuraDebris", player->lerpOrigin, NULL, player, NULL, qtrue, qfalse);
}
CG_FrameHist_SetAura( player->currentState.number);
}


after this paste the following code:

/*===================
CG_Transform_Particle - so we can add a custom particle to the transformation."
===================*/
static void CG_Transform_Particle( centity_t *player, auraState_t *state, auraConfig_t *config){
if(!(player->currentState.playerBitFlags & isTransforming)){
return;
}
if(!CG_FrameHist_HadAura( player->currentState.number)){
PSys_SpawnCachedSystem( config->auraDebrisParticle, player->lerpOrigin, NULL, player, NULL, qtrue, qfalse);
}
CG_AddEarthquake( player->lerpOrigin, 1000, 1, 0, 1, 200);
CG_FrameHist_SetAura( player->currentState.number);
}


then search for:

else if(!Q_stricmp(token,"hasAuraDebris")){
token = COM_Parse(&parse);
if(!token[0]){break;}
aura->generatesDebris = strlen(token) == 4 ? qtrue : qfalse;
}


after this paste this:

else if(!Q_stricmp(token,"auraDebrisParticle")){
token = COM_Parse(&parse);
if(!token[0]){break;}
Q_strncpyz(aura->auraDebrisParticle,token, sizeof(aura->auraDebrisParticle));
}



after this compile the VM's.

when the vm's are done, go to players folder (ZEQ2/players) and open up tierDefault.cfg
add this line to the end:

auraDebrisParticle none



for a custom Particle on the transformation, go to a tier.cfg from a character and add the following:

auraDebrisParticle *NAMEOFYOURPARTICLE*

TRL View user's profile Send private message

Reply with quote Monday, December 24, 2012

lollollol @ that dolan avatar. Smile

That's looking pretty nifty there Mjuksel. It's been since Skatter that any new particle stuff has been done.

NELLO!! Mitico View user's profile Send private message

Reply with quote Monday, December 24, 2012

mm not bad.. mjuksel.. I did something of similar.. Turles eat the fruit and go in tier2..

did you added some models in the character animation frames or you have created a new particle system?..

I can do the same thing but adding models in the frames I want .. my curiosity..

NELLO!! Mitico View user's profile Send private message

Reply with quote Monday, December 24, 2012

http://nl.twitch.tv/mjuksel/b/350157828


you did with the particles as I can see here.. aura bleaoh true.. a new type which star when you transform..

interesting..

Mjuksel Your Past View user's profile Send private message

Reply with quote Monday, December 24, 2012

yes

Brad helped me out to make it customizable, it's indeed a Particle system when player transforms.

There's still a few things I need to fix though Smile

With this we can make anything for transforming Very Happy

Mjuksel Your Past View user's profile Send private message

Reply with quote Monday, December 24, 2012

Edited first post.

Added "tutorial" to second post.

woops accidently deleted the movies on twitch..

I will make a new one as soon as possible Razz

Post new topic Reply to topic

Actions

Online [ 0 / 6125]