AdrianC Posted November 25, 2008 Author Share Posted November 25, 2008 I'm trying to modify the paperdoll code. A guy holds a sword in his right hand, a shield in his left.I want it so that when the player moves left, the sword is under the shield. The guy will always hold the sword in his right hand, and the shield in his left. therefore, if he goes left, the sword should appear under the shield.If he goes right, the sword would be over everything, and the shield will be under the player.If someone could show this to me, I can probably figure out how to change the other items by myself. I'm trying to get into source editing. Thx. Link to comment Share on other sites More sharing options...
Dark Crusade Posted November 25, 2008 Share Posted November 25, 2008 Odd, isn't this already implemented in EE2.7? Link to comment Share on other sites More sharing options...
AdrianC Posted November 25, 2008 Author Share Posted November 25, 2008 I drew something, and when I'm moving left, the sword appears on top of the shield, and the shield on top of me. I could edit my drawings to adjust to this, but when you have 20 different shields and 20 diff swords, each of a different size, this would be extremely hard to compensate for. Link to comment Share on other sites More sharing options...
zade_o Posted November 25, 2008 Share Posted November 25, 2008 Naw he's right they made a little slip up when they did paperdolling with 2.7\. Adrian, it's an easy fix. I always wanted to do the same thing and when I read this thread you inspired me to check it out lol. Basically, go to the BltPlayer and BltPlayerTop subs in the modGameLogic of the client source. There's like 2 spots in each where the weapon is handled after the shield is. Just move the weapon section so that it comes before the shield. It worked for me. Took like 10 seconds to figure out. Link to comment Share on other sites More sharing options...
AdrianC Posted November 25, 2008 Author Share Posted November 25, 2008 Doesn't exactly work, because now have to account for changes in direction. Also, I want the shield to appear under the player when hes going right. Link to comment Share on other sites More sharing options...
Dark Crusade Posted November 26, 2008 Share Posted November 26, 2008 @AdrianC:> I know I'm double posting.Being aware of it and acknowledging it is no excuse. Why didn't you edit? Link to comment Share on other sites More sharing options...
AdrianC Posted November 26, 2008 Author Share Posted November 26, 2008 I guess I shouldn't give a bad example to the newbs. There. Also, my previous post:I guess I could edit my items to appear as if they are under the player.I just want to know how to find the movement direction. I think I can work with this if I get the code for player dir. Link to comment Share on other sites More sharing options...
zade_o Posted November 26, 2008 Share Posted November 26, 2008 Yeah I realized after I said this and equipped a longer sword that when i moved down the sword showed under the shield. I forgot to take into account the directions. ah well. but yeah you can probably just copy that chunk of code and check the direction before doing anything Link to comment Share on other sites More sharing options...
AdrianC Posted November 26, 2008 Author Share Posted November 26, 2008 The problem now is that the top doesn't move in the same way as the bottom. You have half a shield on the left hand side, half on the right, its all messed up.I changed it in both blt player and bltplayertop Link to comment Share on other sites More sharing options...
zade_o Posted November 26, 2008 Share Posted November 26, 2008 hmm. are you sure you changed everything the exact same in each sub? If you changed it all the exact same ( or at least, think you did) then I would get a fresh copy of those 2 subs and try again. Link to comment Share on other sites More sharing options...
AdrianC Posted November 26, 2008 Author Share Posted November 26, 2008 lol, il do that. the thing is im also using the 3 frame movement code, so im not sure if they interfere. Ill try doing this again ehen I get home Link to comment Share on other sites More sharing options...
zade_o Posted November 26, 2008 Share Posted November 26, 2008 hmm well I use the 3frame movement thing too and it works fine (sort of) for me. Like i said it shows the sword under the shield when you're walking down. But I guess if you get a fresh copy of the two subs you'll have to recopy the 3frame movement into it Link to comment Share on other sites More sharing options...
AdrianC Posted November 28, 2008 Author Share Posted November 28, 2008 FINALLYGot it to work.I might post it in the source edit tut section. WAY better then before.Lmao, I'm so happy… Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now