olha2 Posted November 30, 2014 Share Posted November 30, 2014 Sup Nexus, so i wanned to edit the catapult effect from the Midas Magic mod to drain my fatigue for longer time so i don't recover while still in air and get "teleported" to the ground below me.I looked into the construction set and tes4edit but i'm unable to find how to change this. Could someone assist me with this? Disclaimer:i'm not the owner of Midas Magic mod nor have i helped in making the mod in any way, i will not redestibute my edited version. All credits for Midas Magic go to Xsilverbuller the creator of the mod.I take no credits in the making of the Midas Magic mod Link to comment Share on other sites More sharing options...
LFact Posted November 30, 2014 Share Posted November 30, 2014 I think such magic mod uses its own scripted magic effect. Check its spells in CS. If spell effect is set as 'scripted effect', you need to look into associated script. Link to comment Share on other sites More sharing options...
olha2 Posted November 30, 2014 Author Share Posted November 30, 2014 (edited) I think such magic mod uses its own scripted magic effect. Check its spells in CS. If spell effect is set as 'scripted effect', you need to look into associated script.i'm not to sure where to look, i got this infront of me now:http://postimg.org/image/nmwzmp7kf/ -edit-i looked into the script but i think i'm looking at the wrong one:http://postimg.org/image/93tuh0qgb/ The Code, i don't the fatige drain here, or am i mistaken? scn MidasCatapultBlockShootScript ref meref myBallfloat timer float myXfloat myYfloat myZfloat fixZfloat myAngleshort doStateshort framecount ; initial position vectorfloat xPosfloat yPosfloat zPos ; fly vectorfloat dxfloat dyfloat dz ; privatefloat angfloat xangfloat yangfloat zangfloat xfloat x2float sinfloat cos Begin ScriptEffectStart set me to GetSelf set ang to me.GetAngle zif ang > 180 set ang to (ang)-360endif set zang to angset x to ang*0.0174532925set x2 to x*xset sin to x*(1-(x2/6)*(1-(x2/20)*(1-(x2/42)*(1-(x2/72)*(1-x2/110)))))set cos to 1-0.5*x2*(1-(x2/12)*(1-(x2/30)*(1-(x2/56)*(1-x2/90))))set dx to 10*sinset dy to 10*cos ; vertical fly vectorset ang to me.GetAngle xset xang to ang*cos ; uses settings from Horizontal Vectorset yang to -ang*sin set x to -ang*0.0174532925set x2 to x*xset sin to x*(1-(x2/6)*(1-(x2/20)*(1-(x2/42)*(1-(x2/72)*(1-x2/110)))))set cos to 1-0.5*x2*(1-(x2/12)*(1-(x2/30)*(1-(x2/56)*(1-x2/90))))set dz to 10*sin ; initial position vector (to add to player coords) set xPos to 22*dx*cosset yPos to 22*dy*cosset zPos to 118-25*(me.IsSneaking)+12*dz set myBall to MidasActivatorCatapultBlockRef if myBall != meset MidasQuest.Proj to myBallmyBall.SetDestroyed 0;myBall.Activate me 1myBall.EnablemyBall.moveto me xpos ypos zposmyBall.SetAngle z zangmyBall.SetAngle y yangmyBall.SetAngle x xangset myZ to MyBall.Getpos zmyBall.Setpos z MyZendif end begin ScriptEffectUpdate set framecount to framecount + 1 if doState == 0 && framecount >= 4set doState to 1myBall.Reset3dStatemyBall.Playgroup unequip 1 endif Edited November 30, 2014 by olha2 Link to comment Share on other sites More sharing options...
Recommended Posts