Name | Author | Game Mode | Rating | |||||
---|---|---|---|---|---|---|---|---|
![]() |
Player-to-Player Collision... | froducish | Mutator | N/A | ![]() |
namespace COLLIDE {
shared enum Collide {
BULLET,
BULLETPU,
BUMP,
STOMPORRUSH,
SPECIALMOVE
};
shared funcdef void HOOK(jjPLAYER@, jjPLAYER@, Collide);
// Reference: https://docs.jj2.plus/plus-angelscript.html#jjpublicinterface
shared DetectorI@ getDetector(bool debug = false) {
jjPUBLICINTERFACE@ pi = jjGetPublicInterface("player_collision_detector.mut");
if (pi !is null) {
DetectorI@ detector = cast<DetectorI>(pi);
if (detector is null) {
if (debug) jjAlert("|Incompatible player_collision_detector.mut version: " + pi.getVersion());
return null;
}
return detector;
}
if (debug) jjAlert("|player_collision_detector.mut needs to be running.");
return null;
}
shared interface DetectorI : jjPUBLICINTERFACE {
void setHook(COLLIDE::HOOK@ = onCollide, uint moduleID = jjScriptModuleID);
void unsetHook(uint moduleID = jjScriptModuleID);
void startDetecting();
void stopDetecting();
}
}
Jazz2Online © 1999-INFINITY (Site Credits). We have a Privacy Policy. Jazz Jackrabbit, Jazz Jackrabbit 2, Jazz Jackrabbit Advance and all related trademarks and media are ™ and © Epic Games. Lori Jackrabbit is © Dean Dodrill. J2O development powered by Loops of Fury and Chemical Beats.
Eat your lima beans, Johnny.