Skip to content

Commit

Permalink
update docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Feb 19, 2024
1 parent 61658f3 commit 61bbd0e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions docs/ResourceReplacer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
* Make sure that the `models/new_viewmodel/v_*.mdl` actually exists in the disk drive before using regex replacement.
6 changes: 4 additions & 2 deletions docs/ResourceReplacerCN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`),否则替换会被拒绝。

### 替换列表的文件位置

Expand All @@ -38,4 +40,4 @@

该行会将 `models/v_ak47.mdl` 替换为 `models/new_viewmodel/v_ak47.mdl`

注:如果`models/new_viewmodel/v_ak47.mdl`或某个被替换后的模型文件实际上在磁盘上不存在,而游戏正好又用到了这个模型,这种情况下游戏会在加载阶段报错!
* 如果`models/new_viewmodel/v_ak47.mdl`或某个被替换后的模型文件实际上在磁盘上不存在,而游戏正好又用到了这个模型,这种情况下游戏会在加载阶段报错!

0 comments on commit 61bbd0e

Please sign in to comment.