mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-12 14:57:56 +03:00
Created Map-Specific Scripts (markdown)
parent
33e0ae483d
commit
369e16b7e1
12
Map-Specific-Scripts.md
Normal file
12
Map-Specific-Scripts.md
Normal file
@ -0,0 +1,12 @@
|
||||
Mapbase adds a system designed to load certain types of scripts on a map-by-map basis. This is best suited for maps which can't have their own deriving mod with their own script changes. It also allows mappers to easily use scripts previously reserved for more complex modding.
|
||||
|
||||
---
|
||||
|
||||
Map-specific scripts are normally loaded by an automatic manifest which searches for specific file names. The types of scripts which could be used with the map-specific file system are listed below.
|
||||
|
||||
| Type | Default File | Main Script | Description |
|
||||
|:-------------: |:-------------: |:-------------: | :-----|
|
||||
| Actbusy | `maps/%mapname%_actbusy.txt` | `scripts/actbusy.txt` | Actbusies are basically unscripted scripted sequences, allowing NPCs to play animations without actually entering an uninterruptible scripted state. See [the VDC article](https://developer.valvesoftware.com/wiki/Actbusy) for more information. |
|
||||
| Response System | `maps/%mapname%_talker.txt` | `scripts/talker/response_rules.txt` | The Response System is a complex system which some NPCs use to decide what to say in response to an event, like seeing an enemy. See [the VDC article](https://developer.valvesoftware.com/wiki/Response_System) for more information. |
|
||||
| Localization | `maps/%mapname%_%language%.txt` | `resource/%modname%_%language%.txt` | Localization files contain language-specific text. Since `env_message` titles use `titles.txt` (which is engine-driven) and overridden localization cannot be reverted on map unload, this would best be used for, say, `env_hudhint` and not much else. |
|
||||
| ~~Sentences~~ | ~~`maps/%mapname%_sentences.txt`~~ | `scripts/sentences.txt` | Sentences are used to create speech out of individual sound files. Unfortunately, sentences are locked behind the engine and custom files cannot appear to be loaded, so map-specific sentences are not actually supported. |
|
Loading…
x
Reference in New Issue
Block a user