Skip to content

Latest commit

 

History

History

l4d2_skill_detect

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Description | 內容

Detects and reports skeets, crowns, levels, highpounces, etc.

  • Video | 影片展示
    None

  • Image

    • Skill moment
      l4d2_skill_detect_1
  • How does it work?
    • Detects and reports skeets, crowns, levels, highpounces, etc. Also provide api functions

    • Report Flag in source code

      REP_SKEET				(2 ^ 0 = 1) //Skeet hunter/jokcey
      REP_HURTSKEET			(2 ^ 1 = 2) //Hurt Skeet hunter/jokcey (Less damage)
      REP_LEVEL				(2 ^ 2 = 4) //Level Charger
      REP_HURTLEVEL			(2 ^ 3 = 8) //HurtLevel Charger (Less damage)
      REP_CROWN				(2 ^ 4 = 16) //Crown Witch and no one get hurt
      REP_DRAWCROWN			(2 ^ 5 = 32) //DrawCrown Witch and no one get hurt
      REP_TONGUECUT			(2 ^ 6 = 64) //Cut Smoker Tongue
      REP_SELFCLEAR			(2 ^ 7 = 128) //Self Clear Smoker Tongue
      REP_SELFCLEARSHOVE		(2 ^ 8 = 256) //Self Clear Shove Smoker Tongue
      REP_ROCKSKEET			(2 ^ 9 = 512) //Skeet Tank Rock
      REP_DEADSTOP			(2 ^ 10 = 1024) //DeadStop hunter/jokcey
      REP_POP					(2 ^ 11 = 2048) //POP a Boomer
      REP_SHOVE				(2 ^ 12 = 4096) //Shove a Special Infecteed
      REP_HUNTERDP			(2 ^ 13 = 8192) //Hunter DP (High Damage Pounce)
      REP_JOCKEYDP			(2 ^ 14 = 16384) //Jockey DP (High Ride)
      REP_DEATHCHARGE			(2 ^ 15 = 32768) //Charger Death Charge
      REP_INSTACLEAR			(2 ^ 16 = 65536) //Insta Clear (Save teammate quickly)
      REP_BHOPSTREAK			(2 ^ 17 = 131072) //Bunny hop
      REP_CARALARM			(2 ^ 18 = 262144) //Trigger Car Alarm
      REP_POPSTOP				(2 ^ 19 = 524288) //Shove Boomer before vomit
      REP_VOMIT				(2 ^ 20 = 1048576) //Boomer Perfect Vomit (Vomit 4+ survivors)
      // Report Flag by default
      // 2076671 = 1 + 2 + 4 + 8 + 16 + 32 + 64 + 128 + 256 + 512 + 1024 + 2048 + 8192 + 32768 + 65536 + 131072 + 262144 + 524288 + 1048576
      sm_skill_report_flags "2076671"
    • Example

      // Display Message "Skeet Tank Rock" (Report Flag is 512)、"Hunter DP" (Report Flag is 8192)
      // (512 + 8192) = 8704
      sm_skill_report_flagss 8704
      // Display Message "Skeet hunter/jokcey" (Report Flag is 1)、"Skeet Tank Rock" (Report Flag is 512)、"Trigger Car Alarm" (Report Flag is 數值是262144)
      // (1 + 512 + 262144) = 262657
      sm_skill_report_flagss 262657
      // Display All Messages
      sm_skill_report_flagss 2097151
  • Require | 必要安裝

    1. left4dhooks
    2. [INC] Multi Colors
  • ConVar | 指令
    • cfg/sourcemod/l4d2_skill_detect.cfg
       // Whether to report in chat (see sm_skill_report_flags).
       sm_skill_report_enable "1"
      
       // Report Flag
       // bitflags: 1,2:skeets/hurt; 4,8:level/chip; 16,32:crown/draw; 64,128:cut/selfclear, ...
       // See Source code for more bitflags.
       sm_skill_report_flags "2076671"
      
       // Whether to count/forward shotgun skeets.
       sm_skill_skeet_shotgun "1"
      
       // Whether to count/forward magnum pistol skeets.
       sm_skill_skeet_magnum "1"
      
       // Whether to count/forward melee skeets.
       sm_skill_skeet_melee "1"
      
       // Whether to count/forward sniper as skeets.
       sm_skill_skeet_sniper "1"
      
       // Whether to count/forward direct grenade launcher hits as skeets.
       sm_skill_skeet_grenade_launcher "1"
      
       // How much damage a survivor must at least do in the final shot for it to count as a drawcrown.
       sm_skill_drawcrown_damage "500"
      
       // How much damage a survivor must at least do to a smoker for him to count as self-clearing.
       sm_skill_selfclear_damage "200"
      
       // Minimum height of hunter pounce for it to count as a DP.
       sm_skill_hunterdp_height "400"
      
       // How much height distance a jockey must make for his 'DP' to count as a reportable highpounce.
       sm_skill_jockeydp_height "300"
      
       // If set, any damage done that exceeds the health of a victim is hidden in reports.
       sm_skill_hidefakedamage "1"
      
       // How much height distance a charger must take its victim for a deathcharge to be reported.
       sm_skill_deathcharge_height "400"
      
       // A clear within this time (in seconds) counts as an insta-clear.
       sm_skill_instaclear_time "0.75"
      
       // The lowest bunnyhop streak that will be reported.
       sm_skill_bhopstreak "3"
      
       // The minimal speed of the first jump of a bunnyhopstreak (0 to allow 'hops' from standstill).
       sm_skill_bhopinitspeed "150"
      
       // The minimal speed at which hops are considered succesful even if not speed increase is made.
       sm_skill_bhopkeepspeed "300"
      
       // How many survivors a boomer must at least vomit to count as wonderful-vomit.
       sm_skill_vomit_number "4"
  • Command | 命令

    None

  • API | 串接
    Registers a library name: skill_detect
    • scripting\include\l4d2_skill_detect.inc
  • Apply to | 適用於

     L4D2
    
  • Translation Support | 支援翻譯
    English
    繁體中文
    简体中文
    
  • Changelog | 版本日誌
    • v1.8h (2024-8-6)

      • Update API
    • v1.8h (2024-4-30)

      • Update translation
      • Fixed wrong car alarm notify
    • v1.7h (2024-4-25)

      • Update API
    • v1.6h (2024-4-19)

      • Add inc file, use GetEngineTime() instead of GetGameTime()
    • v1.5h (2023-9-20)

      • Add Shotugn, magnum skeet cvars and api
    • v1.4h (2023-5-26)

      • Safely check client id when pass by timer
    • v1.3h (2023-4-28)

      • Add More Api
    • v1.2h (2023-3-24)

      • Separate translation for the jockey and hunter
      • Fixed Self clear, fast clear smoker tongue in versus/survival/cavenge
      • New Skill Reqport, "boomer vomits all survivors"
    • v1.1h (2022-12-16)

      • Translation Support
    • v0.9.20 fork

    • v0.9.20


中文說明

顯示人類與特感各種花式技巧 (譬如推開特感、速救隊友、一槍爆頭、近戰砍死、高撲傷害等等)

  • 圖示

    • 大佬裝B的瞬間
      l4d2_skill_detect_2
  • 原理

    • 每當有高手展現實力,打印在聊天視窗
    • 戰役/對抗/寫實/生存都適用
  • 指令中文介紹 (點我展開)
    • cfg/sourcemod/l4d2_skill_detect.cfg
       // 為1時,打印大佬裝B的各種特殊技巧 (查看指令 sm_skill_report_flags).
       sm_skill_report_enable "1"
      
       // 控制此指令選擇打印哪些特殊技巧 (請查看中文說明書教學)
       // bitflags: 1,2:skeets/hurt; 4,8:level/chip; 16,32:crown/draw; 64,128:cut/selfclear, ...
       // 源碼內查看 bitflags.
       sm_skill_report_flags "2076671"
      
       // 為1時,打印 散彈槍空爆 並輸出API
       sm_skill_skeet_shotgun "1"
      
       // 為1時,打印 手槍麥格農空爆 並輸出API
       sm_skill_skeet_magnum "1"
      
       // 為1時,打印 近戰武器空爆 並輸出API
       sm_skill_skeet_melee "1"
      
       // 為1時,打印 狙擊槍空爆 並輸出API
       sm_skill_skeet_sniper "1"
      
       //  為1時,打印 榴彈發射器空爆 並輸出API
       sm_skill_skeet_grenade_launcher "1"
      
       // 超過多少傷害才算 "一槍殺死Witch"
       sm_skill_drawcrown_damage "500"
      
       // 超過多少傷害才算 "倖存者自解特感"
       sm_skill_selfclear_damage "200"
      
       // 超過多少高度才算 "Hunter高撲"
       sm_skill_hunterdp_height "400"
      
       // 超過多少高度才算 "Jockey高空騎到人類"
       sm_skill_jockeydp_height "300"
      
       // 為1時,隱藏超過特感血量的傷害
       sm_skill_hidefakedamage "1"
      
       // 超過多少高度才算 "Charger衝鋒帶走人類墬樓"
       sm_skill_deathcharge_height "400"
      
       // 從被特感抓到的0.75秒內拯救隊友才算 "快速拯救隊友"
       sm_skill_instaclear_time "0.75"
      
       // 跳超過幾次才算 "連跳"
       sm_skill_bhopstreak "3"
      
       // 跳躍起始速度超過多少才算 "連跳"
       sm_skill_bhopinitspeed "150"
      
       // 跳躍中途速度超過多少才算 "連跳"
       sm_skill_bhopkeepspeed "300"
      
       // Boomer一次吐到4位倖存者以上才算 "Boomer 完美嘔吐"
       sm_skill_vomit_number "4"
  • 控制指令選擇打印哪些特殊技巧
    • 花式技巧

      REP_SKEET				(2 ^ 0 = 1) //空爆hunter/jokcey
      REP_HURTSKEET			(2 ^ 1 = 2) //空爆hunter/jokcey (傷害較低)
      REP_LEVEL				(2 ^ 2 = 4) //近戰砍死衝鋒的Charger
      REP_HURTLEVEL			(2 ^ 3 = 8) //近戰砍死衝鋒的Charger (傷害較低)
      REP_CROWN				(2 ^ 4 = 16) //一槍殺死Witch並無人受傷
      REP_DRAWCROWN			(2 ^ 5 = 32) //兩槍以上殺死Witch並無人受傷
      REP_TONGUECUT			(2 ^ 6 = 64)  //砍斷Smoker的舌頭
      REP_SELFCLEAR			(2 ^ 7 = 128) //自解Smoker的舌頭
      REP_SELFCLEARSHOVE		(2 ^ 8 = 256) //推開自解Smoker的舌頭
      REP_ROCKSKEET			(2 ^ 9 = 512) //打碎Tank石頭
      REP_DEADSTOP			(2 ^ 10 = 1024) //推停飛撲的hunter/jokcey
      REP_POP					(2 ^ 11 = 2048) //殺死Boomer不被嘔吐
      REP_SHOVE				(2 ^ 12 = 4096) //推開特感
      REP_HUNTERDP			(2 ^ 13 = 8192) //Hunter高撲傷害
      REP_JOCKEYDP			(2 ^ 14 = 16384) //Jockey高空騎到人類
      REP_DEATHCHARGE			(2 ^ 15 = 32768) //Charger衝鋒帶走人類墬樓
      REP_INSTACLEAR			(2 ^ 16 = 65536) //快速拯救隊友
      REP_BHOPSTREAK			(2 ^ 17 = 131072) //連跳
      REP_CARALARM			(2 ^ 18 = 262144) //警報車
      REP_POPSTOP				(2 ^ 19 = 524288) //推開Boomer不被嘔吐
      REP_VOMIT				(2 ^ 20 = 1048576) //Boomer 完美嘔吐 (一次吐到4位倖存者以上)
      // 此指令用來決定顯示哪些花式技巧
      // 2076671 = 1 + 2 + 4 + 8 + 16 + 32 + 64 + 128 + 256 + 512 + 1024 + 2048 + 8192 + 32768 + 65536 + 131072 + 262144 + 524288 + 1048576
      sm_skill_report_flags "2076671"
    • 舉例

      // 只顯示 "打碎Tank石頭"(數值是512)、"Hunter高撲傷害"(數值是8192)
      // (512 + 8192) = 8704
      sm_skill_report_flagss 8704
      // 只顯示 "空爆hunter/jokcey"(數值是1)、"打碎Tank石頭"(數值是512)、"警報車"(數值是262144)
      // (1 + 512 + 262144) = 262657
      sm_skill_report_flagss 262657
      // 顯示所有花式技巧
      // 總數值
      sm_skill_report_flags 2097151