1 module switchTeleport is "switch" "Teleport";
10 // setup actor properties
11 public void initialize (Actor me) {
15 //me.flags &= ~(AF_NOCOLLISION|AF_NOONTOUCH/*|AF_NOLIGHT*/);
20 me.attachedLightRGBX(255, 127, 0, 24);
26 public void think (Actor me) {
32 me.atm = 0; // just in case
34 auto toucher = me.switchWhoTouched();
36 int x = me.switchGetA*8+4;
37 int y = me.switchGetB*8+7;
38 me.atm = 1; // cooldown time
39 if (!Z_canfit(x, y, toucher.radius, toucher.height)) {
40 //if (!swsnd) swsnd = Z_sound(sndnotele, 128);
42 toucher.Z_teleobj(x, y);