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