fbef0102 / l4d2-plugins Goto Github PK
View Code? Open in Web Editor NEWL4D2 enhancement, bug/glitch fixes, general purpose and freaky-fun plugins.
License: GNU General Public License v3.0
L4D2 enhancement, bug/glitch fixes, general purpose and freaky-fun plugins.
License: GNU General Public License v3.0
SourcePawn Compiler 1.11.0.6934
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2021 AlliedModders LLC
huntercrouchsound.sp(75) : warning 242: function "event_RoundStart" should return an explicit value
huntercrouchsound.sp(84) : warning 242: function "Event_PlayerSpawn" should return an explicit value
huntercrouchsound.sp(84) : warning 242: function "Event_PlayerSpawn" should return an explicit value
huntercrouchsound.sp(143) : warning 242: function "Event_PlayerDeath" should return an explicit value
Code size: 7784 bytes
Data size: 3456 bytes
Stack/heap size: 16636 bytes
Total requirements: 27876 bytes
4 Warnings.
Hi Harry! Which line in the .sp file should I edit so that the supply box spawns 7 different guns? (rifle, rifle_ak47, rifle_desert, autoshotgun, shotgun_spas, sniper_military, hunting_rifle).
My config:
"l4d2_supply_woodbox_item_max" "7"
"l4d2_supply_woodbox_item_min" "7"
"l4d2_supply_woodbox_item_chance" "100,0,0,0,0"
"l4d2_supply_woodbox_drop_max" "1"
"l4d2_supply_woodbox_drop_min" "1"
Hi,
When I install Survivor Store plugin, it gives me an error:
L 03/10/2021 - 22:36:07: [SM] Exception reported: Language phrase "Not enough players" not found (arg 5)
L 03/10/2021 - 22:36:07: [SM] Blaming: L4D2_Survivor_Store.smx
L 03/10/2021 - 22:36:07: [SM] Call stack trace:
L 03/10/2021 - 22:36:07: [SM] [0] ReplyToCommand
L 03/10/2021 - 22:36:07: [SM] [1] Line 463, test\L4D2_Survivor_Store.sp::BuyShopCommand
Can you look and fix the issue?
Thanks.
And no, if you're asking that I removed the translation file, I used your default translation file.
"Announce_Spot_Marker (C)"
{
"#format" "{1:N}"
"en" "({green}Spot{default}) {olive}{1}{default} marked a position"
"chi" "({green}標記{default}) {olive}{1}{default} 標記了一個位置"
"zho" "({green}标记{default}) {olive}{1}{default} 标记了一个位置"
}"Announce_Spot_Marker"
{
"#format" "{1:N}"
"en" "(Spot) {1} marked a position"
"chi" "(標記) {1} 標記了一個位置"
"zho" "(标记) {1} 标记了一个位置"
}
Add the ability to set a limit on the use of the admin panel per round (session) for users with the "N" flag and unlimited for Z flag.
L 01/30/2023 - 14:43:32: SourceMod error session started
L 01/30/2023 - 14:43:32: Info (map "contra3d05") (file "/home/steam/l4d2/left4dead2/addons/sourcemod/logs/errors_20230130.log")
L 01/30/2023 - 14:43:32: [SM] Exception reported: Invalid edict (2650 - 2650)
L 01/30/2023 - 14:43:32: [SM] Blaming: l4d2_skill_detect.smx
L 01/30/2023 - 14:43:32: [SM] Call stack trace:
L 01/30/2023 - 14:43:32: [SM] [0] GetEdictClassname
L 01/30/2023 - 14:43:32: [SM] [1] Line 3542, l4d2_skill_detect.sp::IsWitch
L 01/30/2023 - 14:43:32: [SM] [2] Line 2086, l4d2_skill_detect.sp::OnTakeDamageByWitch
L 01/30/2023 - 14:43:40: [SM] Exception reported: Invalid edict (2650 - 2650)
L 01/30/2023 - 14:43:40: [SM] Blaming: l4d2_skill_detect.smx
L 01/30/2023 - 14:43:40: [SM] Call stack trace:
L 01/30/2023 - 14:43:40: [SM] [0] GetEdictClassname
L 01/30/2023 - 14:43:40: [SM] [1] Line 3542, l4d2_skill_detect.sp::IsWitch
L 01/30/2023 - 14:43:40: [SM] [2] Line 2086, l4d2_skill_detect.sp::OnTakeDamageByWitch
L 01/30/2023 - 14:44:22: Error log file session closed.
这个插件可以生效,但是提示文字是英文,请问怎么修改
On Line 664, theres quick buy command "b". More annoying than useful because thats block any chat start with "b" like "but, before ...."
Melee swing doesn't work anymore
g_PlayerRequired = CreateConVar("sm_shop_player_require", "4", "多少真实的感染者和生还者才能激活插件", FCVAR_NOTIFY, true, 1.0); g_hCookiesCachedEnable = CreateConVar("sm_shop_CookiesCached_enable", "1", "如果为1则使用CookiesCached储存玩家数据,否则玩家离开服务器数据就莫得了", FCVAR_NOTIFY, true, 0.0, true, 1.0); g_BoomerKilled = CreateConVar("sm_shop_boomkilled", "10", "Giving money for killing a boomer", FCVAR_NOTIFY, true, 1.0); g_ChargerKilled = CreateConVar("sm_shop_chargerkilled", "30", "Giving money for killing a charger", FCVAR_NOTIFY, true, 1.0); g_SmokerKilled = CreateConVar("sm_shop_smokerkilled", "20", "Giving money for killing a smoker", FCVAR_NOTIFY, true, 1.0); g_HunterKilled = CreateConVar("sm_shop_hunterkilled", "20", "Giving money for killing a hunter", FCVAR_NOTIFY, true, 1.0); g_JockeyKilled = CreateConVar("sm_shop_jockeykilled", "25", "Giving money for killing a jockey", FCVAR_NOTIFY, true, 1.0); g_SpitterKilled = CreateConVar("sm_shop_spitterkilled", "10", "Giving money for killing a spitter", FCVAR_NOTIFY, true, 1.0); g_hTankHurt = CreateConVar("sm_shop_tank_hurt", "40", "给坦克多少伤害得到1金钱", FCVAR_NOTIFY, true, 1.0); g_WitchKilled = CreateConVar("sm_shop_witchkilled", "80", "Giving money for killing a witch", FCVAR_NOTIFY, true, 1.0); g_ZombieKilled = CreateConVar("sm_shop_zombiekilled", "1", "Giving money for killing a zombie", FCVAR_NOTIFY, true, 1.0); g_hHealTeammate = CreateConVar("sm_shop_heal_teammate", "100", "用医疗包治疗队友给多少钱", FCVAR_NOTIFY, true, 1.0); g_hDefiSave = CreateConVar("sm_shop_defi_save", "200", "电击队友复活奖励多少钱", FCVAR_NOTIFY, true, 1.0); g_hHelpTeammate = CreateConVar("sm_shop_help_teammate_save", "30", "救下队友的奖励 (除开被舌头吊起来的情况)", FCVAR_NOTIFY, true, 1.0); g_hIncapSurvivor = CreateConVar("sm_shop_infected_survivor_incap", "30", "感染者玩家击倒幸存者给多少钱 (除了舌头捆倒幸存者)", FCVAR_NOTIFY, true, 1.0); g_hKillSurvivor = CreateConVar("sm_shop_infected_survivor_killed", "100", "感染者玩家击杀幸存者给多少钱", FCVAR_NOTIFY, true, 1.0); g_hTKSurvivorEnable = CreateConVar("sm_shop_survivor_TK_enable", "1", "如果为1,友伤扣钱黑,黑1血扣多少钱,如果为0则不扣钱", FCVAR_NOTIFY, true, 0.0, true, 1.0); g_hGascanMapOff = CreateConVar("sm_shop_gascan_map_off", "c1m4_atrium,c6m3_port,c14m2_lighthouse", "这些地图用不能购买油桶, 用逗号分割(无空格). (0=全部的地图, 空格 = 无).", FCVAR_NOTIFY ); g_hColaMapOff = CreateConVar("sm_shop_cola_map_off", "c1m2_streets", "这些地图用不能购买可乐瓶, 用逗号分割(无空格). (0=全部的地图, 空格 = 无).", FCVAR_NOTIFY ); g_hMaxJumpLimit = CreateConVar("sm_shop_special_max_jump_limit", "3", "特殊物品空中跳跃最大次数", FCVAR_NOTIFY, true, 1.0); g_hInfiniteAmmoTime = CreateConVar("sm_shop_special_infinite_ammo_time", "15", "特殊物品无限子弹能持续多久", FCVAR_NOTIFY, true, 1.0); g_hStageComplete = CreateConVar("sm_shop_stage_complete", "400", " 小章节结束给生还者多少钱.", FCVAR_NOTIFY, true, 1.0); g_hFinalMissionComplete = CreateConVar("sm_shop_final_mission_complete", "3000", "救援成功给存活生还者的钱", FCVAR_NOTIFY, true, 1.0); g_hWipeOutSurvivor = CreateConVar("sm_shop_final_mission_lost", "300", "团灭生还者扣多少钱以及有感染者玩家灭团生还者给多少钱", FCVAR_NOTIFY, true, 1.0); g_hDeadEyeTime = CreateConVar("sm_shop_special_dead_eyes_time", "60", "特殊物品心灵透视能持续多久", FCVAR_NOTIFY, true, 1.0); g_hInfectedShopEnable = CreateConVar("sm_shop_infected_enable", "1", "如果为1,则启动感染者购买菜单", FCVAR_NOTIFY, true, 0.0, true, 1.0); g_hInfectedShopTime = CreateConVar("sm_shop_infected_wait_time", "10", "感染者玩家必须等到幸存者离开安全区至少多少秒后才能购买物品。(0=感染者的商店随时可用)", FCVAR_NOTIFY, true, 0.0); g_hInfectedShopColdDown = CreateConVar("sm_shop_infected_cooltime_block", "30.0", "感染者购买冷却时间(0=无)", FCVAR_NOTIFY, true, 0.0); g_hSurvivorShopColdDown = CreateConVar("sm_shop_survivor_cooltime_block", "5.0", "在玩家购买物品后,多长时间才能再次购买(秒)。(0=关闭)。", FCVAR_NOTIFY, true, 0.0); g_hImmuneDamageTime = CreateConVar("sm_shop_special_immune_everything_time", "8", "特殊物品伤害免疫能持续多久", FCVAR_NOTIFY, true, 1.0); g_hInfectedShopTankLimit = CreateConVar("sm_shop_infected_tank_limit", "1", "场上坦克数量超过多少数量后就不能购买坦克了(0=不能购买坦克)", FCVAR_NOTIFY, true, 0.0); g_hInfectedShopWitchLimit = CreateConVar("sm_shop_infected_witch_limit","4", "场上女巫数量超过多少数量后就不能购买女巫了(0=不能购买女巫)", FCVAR_NOTIFY, true, 0.0); g_hWitchSpawnSafetyRange = CreateConVar("sm_shop_infected_witch_spawn_safety_range", "1250", "感染者玩家可以在离幸存者多远的地方购买女巫.", FCVAR_NOTIFY, true, 100.0); g_hWitchKillTime = CreateConVar("sm_shop_infected_witch_lifespan", "180", "在多少秒后踢掉女巫(在此插件中只删除玩家购买的女巫)", FCVAR_NOTIFY, true, 1.0); g_hFreezeTime = CreateConVar("sm_shop_special_freeze_time", "6", "特殊物品冰冻世界能持续多久", FCVAR_NOTIFY, true, 1.0); g_hMaxMoney = CreateConVar("sm_shop_max_moeny_limit", "32000", "最大可持有金钱数量(当服务器换图或者玩家离开服务器才能保存金钱到数据库)", FCVAR_NOTIFY, true, 1.0); g_hNotifyKillInfectedType = CreateConVar("sm_shop_kill_infected_announce_type", "1", "改变击杀敌人给予金钱信息的显示方式(0: 不显示, 1:在聊天框中, 2: 在提示框中, 3: 在屏幕中心?)", FCVAR_NOTIFY, true, 0.0, true, 3.0);
哈利,我发现 l4d2_item_hint 在 Cold Front 这张地图会出现报错,报错原因是玩家标记的特感模型对应的 ItemPhrase 是空字符串。其他图从来没出现过这个错误,只有这张图会。我当时并不在伺服器里玩,是路人在里面玩,我也是之后检查伺服器日志的时候才发现的。我不确定是不是因为 Cold Front 地图作者加了一些自定义的模型,导致获取不到对应的 ItemPhrase。
以下是完整的 error 日志:
http://47.100.221.111:9000/l4d2-addons/sourcemod/logs/errors_20240304.log
当管理员在生还者时如何设置可以见到发光
L 02/21/2024 - 22:53:59: SourceMod error session started
L 02/21/2024 - 22:53:59: Info (map "c1m1_hotel") (file "d:\steam\steamapps\common\left 4 dead 2\left4dead2\addons\sourcemod\logs\errors_20240221.log")
L 02/21/2024 - 22:53:59: [SM] Exception reported: Language phrase "HandleNonSkeet_S_J" not found (arg 3)
L 02/21/2024 - 22:53:59: [SM] Blaming: l4d2_skill_detect.smx
L 02/21/2024 - 22:53:59: [SM] Call stack trace:
L 02/21/2024 - 22:53:59: [SM] [0] VFormat
L 02/21/2024 - 22:53:59: [SM] [1] Line 102, D:\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\include\multicolors.inc::CPrintToChatAll
L 02/21/2024 - 22:53:59: [SM] [2] Line 3271, D:\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d2_skill_detect.sp::HandleNonSkeet
L 02/21/2024 - 22:53:59: [SM] [3] Line 1210, D:\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\l4d2_skill_detect.sp::Event_PlayerDeath
L 02/21/2024 - 22:55:03: Error log file session closed.
sir, can you make this shop able to connect in mysql ? so that every point obtained is connected to all servers
L 12/03/2022 - 03:06:04: SourceMod error session started
L 12/03/2022 - 03:06:04: Info (map "re2a1") (file "/game/left4dead2/addons/sourcemod/logs/errors_20221203.log")
L 12/03/2022 - 03:06:04: [SM] Exception reported: Client 2 is not connected
L 12/03/2022 - 03:06:04: [SM] Blaming: AI_HardSI.smx
L 12/03/2022 - 03:06:04: [SM] Call stack trace:
L 12/03/2022 - 03:06:04: [SM] [0] SetUserFlagBits
L 12/03/2022 - 03:06:04: [SM] [1] Line 455, includes/hardcoop_util.sp::CheatCommand
L 12/03/2022 - 03:06:04: [SM] [2] Line 72, AI_HardSI.sp::Timer_ForceInfectedAssault
L 12/03/2022 - 03:09:58: [SM] Exception reported: Client 4 is not connected
L 12/03/2022 - 03:09:58: [SM] Blaming: AI_HardSI.smx
L 12/03/2022 - 03:09:58: [SM] Call stack trace:
L 12/03/2022 - 03:09:58: [SM] [0] SetUserFlagBits
L 12/03/2022 - 03:09:58: [SM] [1] Line 455, includes/hardcoop_util.sp::CheatCommand
L 12/03/2022 - 03:09:58: [SM] [2] Line 72, AI_HardSI.sp::Timer_ForceInfectedAssault
L 12/03/2022 - 03:10:04: [SM] Exception reported: Client 8 is not connected
L 12/03/2022 - 03:10:04: [SM] Blaming: AI_HardSI.smx
L 12/03/2022 - 03:10:04: [SM] Call stack trace:
L 12/03/2022 - 03:10:04: [SM] [0] SetUserFlagBits
L 12/03/2022 - 03:10:04: [SM] [1] Line 455, includes/hardcoop_util.sp::CheatCommand
L 12/03/2022 - 03:10:04: [SM] [2] Line 72, AI_HardSI.sp::Timer_ForceInfectedAssault
L 12/03/2022 - 03:10:41: [SM] Exception reported: Client 9 is not connected
L 12/03/2022 - 03:10:41: [SM] Blaming: AI_HardSI.smx
L 12/03/2022 - 03:10:41: [SM] Call stack trace:
L 12/03/2022 - 03:10:41: [SM] [0] SetUserFlagBits
L 12/03/2022 - 03:10:41: [SM] [1] Line 455, includes/hardcoop_util.sp::CheatCommand
L 12/03/2022 - 03:10:41: [SM] [2] Line 72, AI_HardSI.sp::Timer_ForceInfectedAssault
L 12/03/2022 - 11:32:24: Error log file session closed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.