ghost.zh
#136
Posted 22 May 2012 - 10:55 AM
#137
Posted 22 May 2012 - 11:19 AM
#138
Posted 06 June 2012 - 11:01 AM
Found bugs!
UpdateEWeapon():
// If Link's holding up an item, don't do anything
if(Link->Action==LA_HOLD1LAND || Link->Action==LA_HOLD2LAND ||
Link->Action==LA_HOLD1WATER || Link->Action==LA_HOLD2WATER)
return;
// If this is a dummy, or if it's not a ghost.zh weapon, don't do anything
if((wpn->Misc[__EWI_FLAGS]&__EWFI_IS_GHZH_EWPN)==0 || (wpn->Misc[__EWI_FLAGS]&__EWFI_DUMMY)!=0)
return;
The first 4 comparisons should be checked only once, not once per weapon. Also the next 4 should be inlined to avoid the function since it's 99% likely that they are not ghost created. ( I would inline everything in UpdateEWeapons() since it's required to call once per frame anyway you don't need to ever update only one weapon. Optimize it!
Also the THROW_BOUNCE thing is neat. Thanks for scripting the math for that already...because I really did not want to.
You got the wrong thread.
Anyway, yeah, I guess I'll do that. I made it that way since I wanted to have to option to call UpdateEWeapon on the individual weapons you want handled and skip the rest, but, now that I think about it, neither check is really necessary in that case.
#139
Posted 06 June 2012 - 11:33 PM
WHAT IS UP WITH THIS?! Everything else in the script works besides showing the enemy.
#140
Posted 07 June 2012 - 12:03 AM
#141
Posted 07 June 2012 - 01:01 AM
You got the wrong thread.
Whoops, sorry 'bout that! Same great cookie crunch, half the monkey ball extract.
I also misread your enemy->Misc bit you wrote. It uses Misc 15 by default for enemies but for some reason I thought it used all of them but 15. I don't know why I thought that. :\
#142
Posted 07 June 2012 - 06:37 AM
Whoops, sorry 'bout that! Same great cookie crunch, half the monkey ball extract.
I also misread your enemy->Misc bit you wrote. It uses Misc 15 by default for enemies but for some reason I thought it used all of them but 15. I don't know why I thought that. :\
200 eweapons? When would you ever need that many?
Also SHOOT I've also been using Misc[15]!
#143
Posted 07 June 2012 - 01:43 PM
Nope. No better.
#144
Posted 07 June 2012 - 06:12 PM
I don't see what the problem is yet, though. I'll update it when I find it.
That's npc->Misc, mind. Depending on what you're doing with it, using it yourself may not cause problems, but it's better not to risk it. You can change which element is used by setting __GHI_IN_USE.
#145
Posted 15 June 2012 - 11:20 PM
#146
Posted 16 June 2012 - 10:39 AM
#147
Posted 20 June 2012 - 07:48 AM
#148
Posted 01 July 2012 - 02:46 PM
#149
Posted 02 July 2012 - 12:22 PM
I still need to do some work on the movement functions. I just haven't been good about actually doing stuff lately...
#150
Posted 12 July 2012 - 02:01 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


