Mjuksel
Your Past
|
Sunday, December 23, 2012
Hi guys,
So here is an update on what I did
Check the video :3
http://nl.twitch.tv/mjuksel/b/350686865
It's not perfect yet, but I wanna make a Bleach style transformation
and another update, thanks to Zeth (Brad :*)
choosable custom transformation effects
http://nl.twitch.tv/mjuksel/b/350747671
|
Mjuksel
Your Past
|
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*
|