shanapu / MyJailbreak

A rewrite of Franugs Special Jailbreak and merge of eccas, ESK0s & zipcores Jailbreak Warden
https://forums.alliedmods.net/showthread.php?t=283212
GNU General Public License v3.0
52 stars 36 forks source link

[BUG] When I set a freeday (!setfreeday) dmg will disable #400

Open WhiteAngel4 opened 2 years ago

WhiteAngel4 commented 2 years ago

Help us help you

Describe the bug

When I set a freeday manually (Warden or Admin) with !setfreeday command no one can attack each other. Ofcourse sm_freeday_damage "1".

To Reproduce

Steps to reproduce the behavior:

  1. Ofcourse need minimum 2 players. U can try with BOT.
  2. Become a Warden or Admin. Type !setfreeday or choose from MyJailbreak menu. Previously check cvars for permission for using this.
  3. See the result. Try to attack an enemy.

Environment

Video

https://youtu.be/1_oqTfixdAM

Additional context

sm plugins list [SM] Listing 129 plugins: 001 "SM Fortnite Emotes Extended" (1.4.2fix) by Kodua, Franc1sco franug, TheBO$$, crashzk 002 "Reserved Slots" (1.11.0.6911) by AlliedModders LLC 003 "SM First Person View Models Interface" (3.3) by Franc1sco franug, nuclear silo 004 "Store - Bullet impact item module" (1.4) by shanapu, nuclear silo, AiDN™ 005 "PanoramaMapCrashFix.smx" (1) by Kashinoda 006 "Infinite Jumping" (3.0) by Chanz 007 "MyJailbreak - Warden" (Beta 14.1.dev-) by shanapu 008 "MyJailbreak - KnifeFight" (Beta 14.1.dev-2a6fa76) by shanapu 009 "MyJailbreak - Core" (Beta 14.1.dev-2a6fa76) by shanapu 010 "MyJailbreak - Request" (Beta 14.1.dev-) by shanapu 011 "MyJailbreak - Zeus" (Beta 14.1.dev-2a6fa76) by shanapu 012 "MyJailbreak - PlayerTags" (Beta 14.1.dev-2a6fa76) by shanapu 013 "MyJailbreak - Custom Menu items" (Beta 14.1.dev-2a6fa76) by shanapu 014 "MyJailbreak - Icons" (Beta 14.1.dev-2a6fa76) by shanapu 015 "MyJailbreak - Freeday" (Beta 14.1.dev-2a6fa76) by shanapu 016 "MyJailbreak - CowBoy" (Beta 14.1.dev-2a6fa76) by shanapu 017 "MyJailbreak - Player HUD" (Beta 14.1.dev-2a6fa76) by shanapu 018 "MyJailbreak - NoScope" (Beta 14.1.dev-2a6fa76) by shanapu 019 "MyJailbreak - DealDamage" (Beta 14.1.dev-2a6fa76) by shanapu 020 "MyJailbreak - HideInTheDark" (Beta 14.1.dev-) by shanapu 021 "MyJailbreak - Weapons" (Beta 14.1.dev-2a6fa76) by shanapu 022 "MyJailbreak - OneInTheChamber" (Beta 14.1.dev-2a6fa76) by Hexah | shanapu 023 "MyJailbreak - Last Guard Rule" (Beta 14.1.dev-2a6fa76) by shanapu 024 "MyJailbreak - Ghosts War" (Beta 14.1.dev-2a6fa76) by shanapu 025 "MyJailbreak - Arms Race" (Beta 14.1.dev-2a6fa76) by shanapu 026 "MyJailbreak - Zombie" (Beta 14.1.dev-) by shanapu 027 "MyJailbreak - Torch Relay" (Beta 14.1.dev-2a6fa76) by shanapu 028 "MyJailbreak - DuckHunt" (Beta 14.1.dev-2a6fa76) by shanapu 029 "MyJailbreak - HE Battle" (Beta 14.1.dev-2a6fa76) by shanapu 030 "MyJailbreak - Catch & Freeze" (Beta 14.1.dev-) by shanapu 031 "MyJailbreak - Ratio" (Beta 14.1.dev-2a6fa76) by shanapu, Addicted 032 "MyJailbreak - Menus" (Beta 14.1.dev-2a6fa76) by shanapu 033 "MyJailbreak - War FFA" (Beta 14.1.dev-2a6fa76) by shanapu 034 "MyJailbreak - Drunk" (Beta 14.1.dev-2a6fa76) by shanapu 035 "MyJailbreak - Suicide Bomber" (Beta 14.1.dev-2a6fa76) by shanapu 037 "MyJailbreak - War" (Beta 14.1.dev-2a6fa76) by shanapu 038 "stuck" (1.3) by Erreur 500 039 "Fun Commands" (1.11.0.6911) by AlliedModders LLC 040 "Store - Admin / Vip Flags Fore Store" (1.1) by nuclear silo 041 "Store - Player Skin Module (No ZR + ZR, gloves support)" (2.1) by nuclear silo, Gold_King, ZAiDN™ 042 "ServerAdvertisements3" (3.3.0) by ESK0 043 "[CS:GO/CS:S] Jailbreak Gangs" (1.1.9.1-$$version$) by Headline 044 "[CS:GO/CS:S] Jailbreak Gangs Clan Tags" (1.1.9.1-$$version$) by Headline 045 "Pre" (0.1) by Prec1sioN 046 "CSGOFixes: SourcePawn Edition" (1.3) by Vauff 047 "ViewDoor for MyJailShop" (1.0) by shanapu 048 "Flashlight" (1.3.63) by Mitch 049 "MyJailShop - Use Credits from Store by Zephyrus" (1.0) by shanapu 050 "CS:GO Skins Chooser" (1.2.4) by Root 051 "Ban disconnected players" (1.8) by Eyal282 052 "[ANY] Gifts" (3.2) by Zephyrus, nuclear silo, azalty, AiDN™ 053 "Retry On Restart" (1.2) by Franc1sco franug & Derek D. Howard 054 "Store Grenade Skin" (1.4) by zephyrus, nuclear silo 055 "Discord API" (0.1.107) by Deathknife 056 "Admin Menu" (1.11.0.6911) by AlliedModders LLC 057 "Smart Jail Doors" (0.5.2-beta) by Maxim 'Kailo' Telezhenko 059 "Math Quiz" (1.3) by Arkarr & Simon & AiDN™, nuclear silo 060 "Log Connections" (1.1) by Xander (Player 1) 061 "Store - Item Sprays" (1.3) by zephyrus, nuclear silo 062 "Chat-Processor" (2.2.1) by Drixevel 063 "Player Commands" (1.11.0.6911) by AlliedModders LLC 064 "Gloves" (1.0.5) by kgns | oyunhost.net 065 "Freeday for MyJailShop" (1.0) by shanapu 066 "AFK Manager" (4.3.0) by Rothgar 067 "Basic Votes" (1.11.0.6911) by AlliedModders LLC 068 "SM Client Command Logging" (2.0.2) by Franc1sco franug 069 "[UMC] Admin Menu" (3.7.1) by Previous:Steell,Powerlord - Current: Mr.Silence 070 "Modify_Weapon_Damage" (1.0.0) by Gold_KingZ 071 "Sound Commands" (1.11.0.6911) by AlliedModders LLC 072 "Basic Comm Control" (1.11.0.6911) by AlliedModders LLC 073 "Store - Tracers Module" (1.3) by nuclear silo, AiDN™ 074 "tVip" (2.2) by Totenfluch 075 "Weapons & Knives" (1.7.7) by kgns | oyunhost.net 076 "Blackout for MyJailShop" (1.0) by shanapu 077 "Simple Soccer Ball" (1.2.1) by mottzi, shanapu 078 "Store - Hats Module" (1.3) by nuclear silo 079 "soundlib test" (0.9) by Berni 080 "Skybox" (1.01) by Deathknife 081 "Parachute for Zephyrus Store" (1.2) by shanapu 082 "Admin Help" (1.11.0.6911) by AlliedModders LLC 083 "[UMC] End of Map Vote Warnings" (3.7.1) by Previous:Steell,Powerlord - Current: Mr.Silence 084 "CallAdmin" (0.1.8) by Impact, dordnung 085 "Store - Sound item module" (1.3) by shanapu, nuclear silo 086 "Discord Utilities" (2.9.4-BETA) by Cruze 087 "MyJailShop - Credits HUD" (1.0) by shanapu 088 "[SpirT] Music and Sound Player" (1.0.2) by SpirT 089 "Basic Info Triggers" (1.11.0.6911) by AlliedModders LLC 090 "Store - Link item module" (1.0) by shanapu, nuclear silo 091 "Store - Trade System" (2.1) by Zephyrus, nuclear silo 092 "Anti-Flood" (1.11.0.6911) by AlliedModders LLC 093 "MyJailShop" (1.5.0-) by shanapu 094 "[UMC] Rock The Vote" (3.7.1) by Previous:Steell,Powerlord - Current: Mr.Silence 095 "Store - Particle item module" (1.8) by shanapu, nuclear silo, AiDN™ 096 "[UMC] Ultimate Mapchooser Core" (3.7.1) by Previous:Steell,Powerlord - Current: Mr.Silence 097 "Server Clean Up _Xnet CS:GO" (1.2.2) by Jamster 098 "Client Preferences" (1.11.0.6911) by AlliedModders LLC 099 "ENT_Hosties(V4.2.3b)" (4.2.3b) by databomb & Entity 100 "Quake Sounds v3" (3.5.0) by Spartan_C001 101 "Store - Pet item module" (1.6) by nuclear silo, AiDN™ 102 "Store - Tracers Module" (1.4) by nuclear silo, AiDN™ 103 "Admin File Reader" (1.11.0.6911) by AlliedModders LLC 104 "Store Grenade Trail" (1.2) by zephyrus, nuclear silo 105 "Admin Player Grabber" (1.0.1) by Friagram 106 "Thirdperson Mode" (1.0) by Zephyrus 107 "[CSGO] Advanced Admin" (2.4) by PeEzZ.[edit Cruze, index] 108 "Store - Chat Processor item module with Scoreboard Tag" (2.8) by nuclear silo, Mesharsky, AiDN™ 109 "SM File/Folder Downloader and Precacher" (1.4) by SWAT_88 110 "[UMC] Time Limits" (3.7.1) by Previous:Steell,Powerlord - Current: Mr.Silence 111 "Store - Colored Smoke Module" (1.3) by nuclear silo, AiDN™ 112 "Fun Votes" (1.11.0.6911) by AlliedModders LLC 113 "AbNeR Round End Sounds" (4.0.1) by abnerfs 114 "Basic Ban Commands" (1.11.0.6911) by AlliedModders LLC 115 "SM Franug Name Reward" (1.0) by Franc1sco franug 116 "SM CS:GO Spawn With Melee Weapons" (2.2) by Franc1sco franug 117 "autoparticleprecacher.smx" 118 "Store - Laser sight item module" (1.2) by zephyrus, nuclear silo 119 "SendFile Exploit Fix (v3.1)" (3.1) by backwards 120 "Store - Info panel item module" (1.2) by shanapu, nuclear silo 121 "[UMC] End of Map Vote" (3.7.1) by Previous:Steell,Powerlord - Current: Mr.Silence 122 "Ice Grenade item for MyJailShop" (1.0) by shanapu 123 "Store - Lootbox module" (2.0) by shanapu, nuclear silo, AiDN™ 124 "CS:GO Dookie" (1.0) by Tom Delebo 125 "Basic Chat" (1.11.0.6911) by AlliedModders LLC 126 "[UMC] Map Weight" (3.7.1) by Previous:Steell,Powerlord - Current: Mr.Silence 127 "Store - The Resurrection with preview rewritten compilable with SM 1.10 new syntax" (7.0.4) by Zephyrus, nuclear silo, AiDN™ 128 "CT Ban" (2.0.6) by databomb, azalty 129 "Basic Commands" (1.11.0.6911) by AlliedModders LLC

sm exts list [SM] Displaying 21 extensions: [01] Automatic Updater (1.11.0.6911): Updates SourceMod gamedata files [02] Webternet (1.11.0.6911): Extension for interacting with URLs [03] Console Cleaner (1.3.0): Console warning suppressor [04] CSGO-ArmsFix (1.0): Fix glove overcap with custom arms [05] Accelerator (2.5.0): SRCDS Crash Handler [06] CS Tools (1.11.0.6911): CS extended functionality [07] BinTools (1.11.0.6911): Low-level C/C++ Calling API [08] SDK Tools (1.11.0.6911): Source SDK Tools [09] Regex (1.11.0.6911): Provides regex natives for plugins [10] SDK Hooks (1.11.0.6911): Source SDK Hooks [11] Top Menus (1.11.0.6911): Creates sorted nested menus [12] Client Preferences (1.11.0.6911): Saves client preference settings [13] SQLite (1.11.0.6911): SQLite Driver [14] GeoIP (1.11.0.6911): Geographical IP information [15] file "store_sm.ext.so": /home/container/csgo/addons/sourcemod/extensions/store_sm.ext.so: cannot open shared object file: No such file or directory [16] DHooks (1.11.0.6911): Dynamic Hooks [17] SteamWorks Extension (1.2.3): Exposes SteamWorks functions to Developers [18] SMJansson (2.6.0/1): JSON parser/writer [19] PTaH (1.1.3): Additional CS:GO Hooks and Natives [20] Sound Info Library (1.0): Access information of sound files [21] MySQL-DBI (1.11.0.6911): MySQL driver implementation for DBI

azalty commented 2 years ago

Thanks for reporting! I'll take a look at this issue soon.

azalty commented 2 years ago

I've identified the bug and will be doing a fix shortly, thanks for providing a video and useful infos

azalty commented 2 years ago

I've created a pull request #401 to fix this bug.

Sadly, it seems like the developer (shanapu) is inactive, so in the mean time, you can head to https://github.com/azalty/MyJailbreak/releases and download the latest dev-all-patches version from me.

These releases include all the patches I've done in MyJailbreak. Download instructions are located in the release's description. Don't forget to add the new translations phrases (added with my other patches)!

Keep me updated if that fixed it for you, but please don't close the issue until the #401 pull request is merged (maybe one day, shanapu will come back and approve my changes)

WhiteAngel4 commented 2 years ago

Hey!

I've tested your patch with a bot and I still can't kill him.

azalty commented 2 years ago

Code looks good to me. I'll check a bit further later.

azalty commented 2 years ago

Hey!

I've tested your patch with a bot and I still can't kill him.

Thanks for reporting this problem, I believe I fixed it now, there was a problem with the values I used.

I've uploaded dev-all-patches v7 which contains the updated patch-8 (#401)

Tell me if that fixes it for you :)