Author Topic: Is there a way to stop the item use animation?  (Read 369 times)

Legacy_TheSpiritedLass

  • Hero Member
  • *****
  • Posts: 1118
  • Karma: +0/-0
Is there a way to stop the item use animation?
« on: August 27, 2011, 01:01:38 pm »


               When a player uses an item their character thrusts their arms out infront of them.  I've been able to figure out how to not display the message that 'so and so uses a thing-a-ma-bob', but not get rid of the animation.  Any ideas?
               
               

               
            

Legacy_Alex Warren

  • Sr. Member
  • ****
  • Posts: 326
  • Karma: +0/-0
Is there a way to stop the item use animation?
« Reply #1 on: August 27, 2011, 01:12:49 pm »


               I think you have to edit spells.2da to do that.

Find ACTIVATE_ITEM (line 386) and ACTIVATE_ITEM_SELF (line 413) and replace ConjAnim and ConjAnim with '****'. This might also require changing CastTime to 0.
               
               

               
            

Legacy_TheSpiritedLass

  • Hero Member
  • *****
  • Posts: 1118
  • Karma: +0/-0
Is there a way to stop the item use animation?
« Reply #2 on: August 27, 2011, 01:20:09 pm »


               Wonderful. thanks Alex, I'll check it right away.
               
               

               
            

Legacy_TheSpiritedLass

  • Hero Member
  • *****
  • Posts: 1118
  • Karma: +0/-0
Is there a way to stop the item use animation?
« Reply #3 on: August 27, 2011, 01:26:36 pm »


               Hmmm.  That is already done.  Looks like I blanked out all sorts of stuff trying to get rid of the animation. *chuckles*  Here is the line:

386   ACTIVATE_ITEM                       6802      IR_USE            C        L       -      0x08        0x7f         NW_S3_ActItem01    ****   ****     ****    ****      ****     ****       1        0          ****       ****              ****              ****              ****              ****               ****               ****       1          ****             ****             ****             ****               0      ****               ****           ****            ****               ****              ****             0              ****           ****           ****           ****           ****           ****       ****     4          63295       0                  0                   198          0                ****        ****       ****       0
               
               

               
            

Legacy_Alex Warren

  • Sr. Member
  • ****
  • Posts: 326
  • Karma: +0/-0
Is there a way to stop the item use animation?
« Reply #4 on: August 27, 2011, 01:37:09 pm »


               I've just tested it and you're right.
I have another idea, but I have to test it first '<img'>

Edit: It seems that the game doesn't read spells.2da cast anims when activating item. Maybe someone else have a better idea. Sorry.
               
               

               


                     Modifié par Alex Warren, 27 août 2011 - 12:46 .
                     
                  


            

Legacy_TheSpiritedLass

  • Hero Member
  • *****
  • Posts: 1118
  • Karma: +0/-0
Is there a way to stop the item use animation?
« Reply #5 on: August 27, 2011, 01:49:03 pm »


               *hugs*  Thanks for checking it out Alex. I appreciate it.
               
               

               
            

Legacy_Calvinthesneak

  • Hero Member
  • *****
  • Posts: 1159
  • Karma: +0/-0
Is there a way to stop the item use animation?
« Reply #6 on: August 27, 2011, 03:04:35 pm »


               Other option I can think of is using player instant feats, but no idea how you'd link one of those to an item.
               
               

               
            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Is there a way to stop the item use animation?
« Reply #7 on: August 27, 2011, 03:04:36 pm »


               If you're using the Linux version of NWNX there's a way to do it, hooking ON_USE, and then bypassing the ON_ACTIVATE portion.
 I can't say the specifics of implimenting it though, since I'm a windows user.  I just know it'll do it.

 For single player, no idea at all.  The player tools bypass the animation though.
               
               

               
            

Legacy_TheSpiritedLass

  • Hero Member
  • *****
  • Posts: 1118
  • Karma: +0/-0
Is there a way to stop the item use animation?
« Reply #8 on: September 06, 2011, 03:36:38 pm »


               *hugs*  Heya Calvin.  Hmmm.  I was more hoping for something like a 2da change.  Doesn't look like such a thing exists.  Oh well, at least I was able to get rid of the wording.  That is nice.

@Failed.Bard -  *wish* the server was running NWNx.  That is one of the things I just haven't taken the time to figure out how to install remotely.  Thanks for the heads up.  I'll add it to my 'when you get off your butt and install the super nifty tool, do THIS stuff' pile.  *grins*
               
               

               
            

Legacy_Jez_fr

  • Sr. Member
  • ****
  • Posts: 460
  • Karma: +0/-0
Is there a way to stop the item use animation?
« Reply #9 on: September 07, 2011, 04:50:01 pm »


               I think that animation's launch is hardcoded. However you can use an edited character's animation's mdl (a_ba.mdl and such), with that animation part altered. That's what we use/used on several Modem/Sci-fi hakset/modules. I'm not sure who did that first, to credit the idea, but it's "only" a matter of finding a kind animator to do it, or you could grab and try some modern's hak versions. (should work in override to test those)
               
               

               


                     Modifié par Jez_fr, 07 septembre 2011 - 03:50 .
                     
                  


            

Legacy_TheSpiritedLass

  • Hero Member
  • *****
  • Posts: 1118
  • Karma: +0/-0
Is there a way to stop the item use animation?
« Reply #10 on: September 08, 2011, 01:52:15 pm »


               *chuckles*  We think much alike Jez.  Once I knew I couldn't script or 2da out the animation my next thought was to just remove it from the mdls.  Hmmm.  I'll give looking at the modern haks a shot.  Doing a file compare against the standard models and adding in one code block at a time until the magic one is found.  Thanks for the hint!
               
               

               
            

Legacy_WebShaman

  • Hero Member
  • *****
  • Posts: 1390
  • Karma: +0/-0
Is there a way to stop the item use animation?
« Reply #11 on: September 08, 2011, 01:57:29 pm »


               Could you please post back when you solve this, with how?
               
               

               
            

Legacy_TheSpiritedLass

  • Hero Member
  • *****
  • Posts: 1118
  • Karma: +0/-0
Is there a way to stop the item use animation?
« Reply #12 on: September 08, 2011, 02:05:00 pm »


               Sure thing.  It will be several weeks though. =(  Between more vacation and family visits this morning is my last slice of free time for a while.