View Single Post
Violet CLM Violet CLM's Avatar

JCF Éminence Grise

Joined: Mar 2001

Posts: 10,978

Violet CLM has disabled reputation

Jun 18, 2014, 01:26 PM
Violet CLM is offline
Reply With Quote
a) would be something like this:
Code:
void onMain() {
	for (int i = 1; i < jjObjectMax: ++i) {
		jjOBJ@ obj = jjObjects[i];
		if (obj.behavior == BEHAVIOR::RFBULLET && obj.state == STATE::EXPLODE && !jjPlayers[obj.creatorID].isLocal) //RF missiles, like most/all bullets, switch to STATE::EXPLODE in one gametick and actually run their explosion code in the next, so you have a chance to find them.
			obj.delete(); //Or whatever. Changing its behavior to EXPLOSION or EXPLOSION2 might be good for showing its .killAnim animation, but the point is you don't want it to run its own death code and create a shockwave
	}
}
b) I'm not sure I understand. "spawnpoint"? "free route"?
__________________