Von Rundstedt 0 Posted March 1, 2009 So, does anybody have idea or means how to make part of weapon revolve? But not to do whole 360 at once and still stay at the point where revolve took it instead of returning to zero point? For instance like with revolver, needs to go around six times so 60 degs at the time. I get wanted part to rotate, but it always returns to zero (or beginning) point. Here is model.cfg entry for it: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class drum { type="rotation"; source="revolving"; selection="drum"; axis="drum_axis"; minValue=0; maxValue=1; memory="0"; sourceAddress = "loop"; angle0="0"; angle1="rad 60"; }; class drum_move: drum { source="reload"; }; Old one was (worked with it too like above): <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class drum { type="rotation"; source="reload"; selection="drum"; axis="drum_axis"; minValue=0; maxValue=1; memory="0"; sourceAddress = "loop"; angle0="0"; angle1="rad 60"; }; Share this post Link to post Share on other sites
UNN 0 Posted March 2, 2009 Quote[/b] ]For instance like with revolver, needs to go around six times so 60 degs at the time. I get wanted part to rotate, but it always returns to zero (or beginning) point. Memory, angle0 and angle1 should be numbers not text and the value for angle1 should be rad 360: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">memory=0; angle0=0; angle1=rad 360; The number of steps in the rotation anim is taken from the amount of ammo in the magazine. So six rounds is 360/6=60 degree increments. Apart from that the rest of the config is fine. Share this post Link to post Share on other sites
Von Rundstedt 0 Posted March 2, 2009 I am pretty sure I have tried that too and it resulted on it that magazine made whole 360 on single shot, but I can test it still. And thank you, I will tell results later today. EDIT: Got it working with following entry, thank you UNN <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class drum { type="rotation"; source="revolving"; selection="drum"; axis="drum_axis"; minValue=0; maxValue=1; memory=0; sourceAddress = "loop"; angle0=0; angle1=rad 360; }; Share this post Link to post Share on other sites