Quote:
|
Originally Posted by Stefan
What exactly do you need added ?
|
npcs[i].notblocking;
PHP Code:
function onNPC(x,y,w,h) {
temp.tnpcs = findareanpcs(tx,ty,w,h);
for (temp.i=0;temp.i<temp.tnpcs.size(); temp.i++) {
if (!npcs[i].iUsedDontBlockAndDidntUseBlockAgainYet) {
return 1;
}
}
return 0;
}
Anything else that I might have needed wouldn't really matter in my movement system since Master Storm had already rescripted push/pull to be independent NPCs, and had made a liftable objects class, etc. Although, with my movement system, liftable objects won't have to call the system to be lifted. However, it would still be good if there were bools for canbelifted(), like npcs[i].liftable == 1.
Mostly it would make it less of a hassle to convert NPCs for the custom movement system because right now it's impossible to accomodate a lot of command functions with a custom movement system. I'm just having trouble with dontblock because I'm trying to upgrade my movement system (beyond onwall2) to be a bit more dynamic, though mostly in the sense of players. To accomodate that, however, you need to be able to test tiles, players, and NPCs independently. Tiles was easy, players are more controlled and easier to optimize around, but NPCs are very dynamic. That's why I needed access to findareanpcs(). However, I still can't test whether or not an NPC is blocking, and that's pretty much the last thing before I can start removing the onwall code and start worrying about determining when a player blocks and when a player doesn't block (and we have more control over players, so it shouldn't be too much of a problem).