@@ -740,22 +740,22 @@ float (string arg1, string arg2, string arg3, string arg4) ParseCmds = {
740
740
break;
741
741
}
742
742
743
- if (arg2 && arg2 == "rotate" && arg3 && arg3 == "mouse" && arg4) {
744
- if (self.rotating_sentry == world)
745
- break;
743
+ /* if (arg2 && arg2 == "rotate" && arg3 && arg3 == "mouse" && arg4) { */
744
+ /* if (self.rotating_sentry == world) */
745
+ /* break; */
746
746
747
- self.dimension_see = (self.dimension_see & ~DMN_GHOST) | DMN_HIDDEN;
747
+ /* self.dimension_see = (self.dimension_see & ~DMN_GHOST) | DMN_HIDDEN; */
748
748
749
- local entity rs = self.rotating_sentry;
750
- rs.dimension_seen = (rs.dimension_seen & ~(DMN_HIDDEN | DMN_GHOST)) | DMN_NOFLASH;
751
- farg4 = stof(arg4);
752
- rs.angles_y = farg4;
753
- rs.waitmin = anglemod(farg4 - 50);
754
- rs.waitmax = anglemod(farg4 + 50);
755
- FO_Sound(self, CHAN_ITEM, "weapons/turridle.wav", 1, ATTN_NORM);
756
- self.rotating_sentry = world;
757
- break;
758
- }
749
+ /* local entity rs = self.rotating_sentry; */
750
+ /* rs.dimension_seen = (rs.dimension_seen & ~(DMN_HIDDEN | DMN_GHOST)) | DMN_NOFLASH; */
751
+ /* farg4 = stof(arg4); */
752
+ /* rs.angles_y = farg4; */
753
+ /* rs.waitmin = anglemod(farg4 - 50); */
754
+ /* rs.waitmax = anglemod(farg4 + 50); */
755
+ /* FO_Sound(self, CHAN_ITEM, "weapons/turridle.wav", 1, ATTN_NORM); */
756
+ /* self.rotating_sentry = world; */
757
+ /* break; */
758
+ /* } */
759
759
760
760
//find sentry first
761
761
ent = findradius(self.origin, ENG_BUILDING_MAINT_DISTANCE);
@@ -767,18 +767,18 @@ float (string arg1, string arg2, string arg3, string arg4) ParseCmds = {
767
767
ent = ent.chain;
768
768
}
769
769
770
- if (arg2 && arg2 == "rotate" && arg3 && arg3 == "mwheel" && arg4) {
771
- if (!arg4)
772
- break;
770
+ /* if (arg2 && arg2 == "rotate" && arg3 && arg3 == "mwheel" && arg4) { */
771
+ /* if (!arg4) */
772
+ /* break; */
773
773
774
- farg4 = stof(arg4);
775
- self.dimension_see = (self.dimension_see & ~DMN_HIDDEN) | DMN_GHOST;
776
- ent.dimension_seen = (ent.dimension_seen & ~DMN_NOFLASH) | DMN_HIDDEN | DMN_GHOST;
777
- if (self.rotating_sentry == world)
778
- self.rotating_sentry = ent;
779
- UpdateClientSentryRotateBy(self, self.rotating_sentry, farg4);
780
- break;
781
- }
774
+ /* farg4 = stof(arg4); */
775
+ /* self.dimension_see = (self.dimension_see & ~DMN_HIDDEN) | DMN_GHOST; */
776
+ /* ent.dimension_seen = (ent.dimension_seen & ~DMN_NOFLASH) | DMN_HIDDEN | DMN_GHOST; */
777
+ /* if (self.rotating_sentry == world) */
778
+ /* self.rotating_sentry = ent; */
779
+ /* UpdateClientSentryRotateBy(self, self.rotating_sentry, farg4); */
780
+ /* break; */
781
+ /* } */
782
782
783
783
if (!ent) {
784
784
sprint(self, PRINT_HIGH, "No sentry in range\n");
@@ -793,23 +793,19 @@ float (string arg1, string arg2, string arg3, string arg4) ParseCmds = {
793
793
sprint(self, PRINT_HIGH, "Sentry detection issue!\n");
794
794
break;
795
795
}
796
- if (arg3 == "mouse" && !arg4) {
797
- if (!self.rotating_sentry == world)
798
- break;
796
+ /* if (arg3 == "mouse" && !arg4) { */
797
+ /* if (!self.rotating_sentry == world) */
798
+ /* break; */
799
799
800
- self.dimension_see = (self.dimension_see & ~DMN_HIDDEN) | DMN_GHOST;
801
- ent.dimension_seen = (ent.dimension_seen & ~DMN_NOFLASH) | DMN_HIDDEN | DMN_GHOST;
802
- self.rotating_sentry = ent;
803
- UpdateClientSentryRotate(self, ent);
804
- break;
805
- }
806
- if(farg3 < 0) {
807
- sprint(self, PRINT_HIGH, "Rotating ",ftos(farg3 * -1)," degrees clockwise...\n");
808
- } else {
809
- sprint(self, PRINT_HIGH, "Rotating ",ftos(farg3)," degrees anticlockwise...\n");
810
- }
800
+ /* self.dimension_see = (self.dimension_see & ~DMN_HIDDEN) | DMN_GHOST; */
801
+ /* ent.dimension_seen = (ent.dimension_seen & ~DMN_NOFLASH) | DMN_HIDDEN | DMN_GHOST; */
802
+ /* self.rotating_sentry = ent; */
803
+ /* UpdateClientSentryRotate(self, ent); */
804
+ /* break; */
805
+ /* } */
811
806
ent.waitmin = anglemod(ent.waitmin + farg3);
812
807
ent.waitmax = anglemod(ent.waitmax + farg3);
808
+ ent.angles_y += farg3;
813
809
break;
814
810
}
815
811
sprint(self, PRINT_HIGH, "Invalid choice.\n");
0 commit comments