Pentagon лет назад: 8
Родитель
Сommit
2f9a029bcc
1 измененных файлов с 18 добавлено и 1 удалено
  1. 18 1
      index.js

+ 18 - 1
index.js

@@ -519,7 +519,7 @@ module.exports = function FpsUtils2(dispatch) {
                 switch (arg) {
                 switch (arg) {
                     case "all":
                     case "all":
                         config.hideAllAbnormies = !config.hideAllAbnormies;
                         config.hideAllAbnormies = !config.hideAllAbnormies;
-                        message(`Hiding of ALL abnormality effects ${config.hideAllAbnormies ? 'en' : 'dis'}abled`);
+                        message(`Hiding of ALL abnormality effects on players ${config.hideAllAbnormies ? 'en' : 'dis'}abled`);
                         break
                         break
                     case "blacklist":
                     case "blacklist":
                     case "black":
                     case "black":
@@ -635,9 +635,11 @@ module.exports = function FpsUtils2(dispatch) {
 
 
 // ~~~* Hooks * ~~~
 // ~~~* Hooks * ~~~
 // note: for skills, do if classes[event.templateId].blockedSkills !== 
 // note: for skills, do if classes[event.templateId].blockedSkills !== 
+
     dispatch.hook('S_LOGIN', 10, (event) => {
     dispatch.hook('S_LOGIN', 10, (event) => {
         myId = event.gameId;
         myId = event.gameId;
     });
     });
+
     dispatch.hook('S_SPAWN_USER', 13, {order: 9999}, (event) => {
     dispatch.hook('S_SPAWN_USER', 13, {order: 9999}, (event) => {
         if (firstRun !== false) {
         if (firstRun !== false) {
             message(`FPS-UTILS has been updated! Please read the readme for more information!`);
             message(`FPS-UTILS has been updated! Please read the readme for more information!`);
@@ -752,6 +754,8 @@ module.exports = function FpsUtils2(dispatch) {
         }
         }
     });
     });
 
 
+
+
     dispatch.hook('S_ACTION_STAGE', 4, {order: 999}, (event) => {
     dispatch.hook('S_ACTION_STAGE', 4, {order: 999}, (event) => {
         if (!event.gameId.equals(myId) && spawnedPlayers[event.gameId]) {
         if (!event.gameId.equals(myId) && spawnedPlayers[event.gameId]) {
             if (!event.target.equals(myId) && (config.mode === 2 || hiddenUsers[event.gameId])) {
             if (!event.target.equals(myId) && (config.mode === 2 || hiddenUsers[event.gameId])) {
@@ -800,7 +804,20 @@ module.exports = function FpsUtils2(dispatch) {
         }
         }
     });
     });
 
 
+    dispatch.hook('S_USER_MOVETYPE', 'raw', (event) => { //this little boi crashes us, raw due to def missing from caali
+        return false;
+    });
+
+    dispatch.hook('S_ABNORMALITY_REFRESH', 1, (event) => {
+        if (hiddenUsers[event.target]) {
+            return false;
+        }
+    });
+
     dispatch.hook('S_ABNORMALITY_BEGIN', 2, {order: 999}, (event) => {
     dispatch.hook('S_ABNORMALITY_BEGIN', 2, {order: 999}, (event) => {
+        if (hiddenUsers[event.target]) {
+            return false;
+        }
         if (config.blacklistAbnormies && config.hiddenAbnormies.includes(event.id)) {
         if (config.blacklistAbnormies && config.hiddenAbnormies.includes(event.id)) {
             return false;
             return false;
         }
         }