PDA

View Full Version : NPC defenses



pkmnfrk
01-03-2010, 04:35 PM
Just out of curiosity, is a ZScript interface to the new enemy defense settings in the works? Ideally, a read/write one.

I've got a certain... enemy (http://www.youtube.com/watch?v=c6Qddn1mz6g) that is comprised of smaller enemies "clinging" to a big one. The smaller enemies are only killable when pulled away from the big one.

Currently, I'm using manual collision detection to fake this dynamic sword-defense, but it would be pretty sweet if we could just do something like:


if(*pulled off*) {
myNPC->Defense[NPCD_SWORD] = NPCDS_NONE;
} else {
myNPC->Defense[NPCD_SWORD] = NPCDS_IGNORE;
}

(Highly abstracted, but same idea)