From 61bbd0ecd92061845a10db0b00ac73ff45aa42ab Mon Sep 17 00:00:00 2001 From: hzqst <113660872@qq.com> Date: Mon, 19 Feb 2024 23:04:15 +0800 Subject: [PATCH] update docs. --- docs/ResourceReplacer.md | 6 ++++-- docs/ResourceReplacerCN.md | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/ResourceReplacer.md b/docs/ResourceReplacer.md index a1c8e46e..a8c19c79 100644 --- a/docs/ResourceReplacer.md +++ b/docs/ResourceReplacer.md @@ -22,7 +22,9 @@ Check Sven Co-op's official [gmr](https://wiki.svencoop.com/Mapping/Model_Replac Lines start with # or / will be ignored. -Both `.mdl` and `.spr` replacements are supported. +* Both `.mdl` and `.spr` replacements are supported. + +* For security reason, the replaced one must have exactly the same file extension (`.mdl`, `.spr`, `.wav`) with source filename, or the replacement will be refused. ### Replacement files location @@ -40,4 +42,4 @@ For example: replaces `models/v_ak47.mdl` with `models/new_viewmodel/v_ak47.mdl` -Tip: Make sure that the `models/new_viewmodel/v_*.mdl` actually exists in the disk drive before using regex replacement. \ No newline at end of file +* Make sure that the `models/new_viewmodel/v_*.mdl` actually exists in the disk drive before using regex replacement. \ No newline at end of file diff --git a/docs/ResourceReplacerCN.md b/docs/ResourceReplacerCN.md index bbd9d6c2..81ebe6e7 100644 --- a/docs/ResourceReplacerCN.md +++ b/docs/ResourceReplacerCN.md @@ -20,7 +20,9 @@ 请查阅 Sven Co-op 官方的 [gmr](https://wiki.svencoop.com/Mapping/Model_Replacement_Guide) 与 [gsr](https://wiki.svencoop.com/Mapping/Sound_Replacement_Guide) 文件编写教程。 -由 # 或 / 开头的行会被自动忽略。 +* 由 # 或 / 开头的行会被自动忽略。 + +* 出于安全考虑,替换后的文件名必须与替换前文件保持扩展名一致 (`.mdl`, `.spr`, `.wav`),否则替换会被拒绝。 ### 替换列表的文件位置 @@ -38,4 +40,4 @@ 该行会将 `models/v_ak47.mdl` 替换为 `models/new_viewmodel/v_ak47.mdl` -注:如果`models/new_viewmodel/v_ak47.mdl`或某个被替换后的模型文件实际上在磁盘上不存在,而游戏正好又用到了这个模型,这种情况下游戏会在加载阶段报错! \ No newline at end of file +* 如果`models/new_viewmodel/v_ak47.mdl`或某个被替换后的模型文件实际上在磁盘上不存在,而游戏正好又用到了这个模型,这种情况下游戏会在加载阶段报错! \ No newline at end of file