I'm modifying weap_saber.cog to change jkSetSaberInfo(), so that when you swing the saber the width is changed. I got it 'working', except it switches back to the original size way too late! And sometimes it doesn't switch back at all!
would anyone mind checking this out for me?
http://www.angelfire.com/film/mikesteeves/Pro-sabertrail-mat.gob
<CODE>
//Make saber wider for the length of time of the swing's sound.
for (i = 0; i < 256.0; i=i+1)
{
sleep(GetSoundLen(swingkey)/256.0);
jkSetSaberInfo(player, playersbrtip_mat, playersbrside_mat, 0.030, 0.030, 0.125, tpl_wall,
tpl_blood, tpl_saber);
}
// Reset original saber size
jkSetSaberInfo(player, playersbrtip_mat, playersbrside_mat, 0.008, 0.0055, 0.125, tpl_wall,
tpl_blood, tpl_saber);
</CODE>
I put this snippet after the animation and SetFireWait()
I think the concept is relatively simple, I'm just too inexperienced with programming
Another method of doing this would be to define an amount of time for the saber to be wide... Not a clue how...
Please help!
-ProAni
[This message has been edited by ProAnimator (edited July 29, 2004).]
would anyone mind checking this out for me?
http://www.angelfire.com/film/mikesteeves/Pro-sabertrail-mat.gob
<CODE>
//Make saber wider for the length of time of the swing's sound.
for (i = 0; i < 256.0; i=i+1)
{
sleep(GetSoundLen(swingkey)/256.0);
jkSetSaberInfo(player, playersbrtip_mat, playersbrside_mat, 0.030, 0.030, 0.125, tpl_wall,
tpl_blood, tpl_saber);
}
// Reset original saber size
jkSetSaberInfo(player, playersbrtip_mat, playersbrside_mat, 0.008, 0.0055, 0.125, tpl_wall,
tpl_blood, tpl_saber);
</CODE>
I put this snippet after the animation and SetFireWait()
I think the concept is relatively simple, I'm just too inexperienced with programming

Another method of doing this would be to define an amount of time for the saber to be wide... Not a clue how...
Please help!
-ProAni
[This message has been edited by ProAnimator (edited July 29, 2004).]