View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006530 | The Dark Mod | Script/Def | public | 04.05.2024 14:02 | 06.05.2024 16:20 |
Reporter | stgatilov | Assigned To | stgatilov | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | assigned | Resolution | open | ||
Product Version | TDM 2.13 | ||||
Summary | 0006530: Make script constants customizable by mission | ||||
Description | There are many constants in game scripts which cannot be properly adjusted by mapper. The idea is to turn them into cvars. Combined with 0005453, it would allow to override the values in a mission. | ||||
Additional Information | See also: https://forums.thedarkmod.com/index.php?/topic/22437-overriding-tdm_weapon_arrowscript/ | ||||
Tags | No tags attached. | ||||
Weapon scripts which are overrided: tdm_weapon_arrow tdm_weapon_blackjack tdm_weapon_shortsword tdm_weapon_vinearrow_result tdm_weapon_flashbomb_result |
|
To make it simpler to use float cvars in scripts: r10728 Added sys.getcvarf script event. Then there is a bunch of constants extracted to cvars: r10729 Extracted most of the constants from tdm_weapon_arrow.script into cvars. r17037 Extracted most of the constants from tdm_weapon_arrow.script into cvars. r10730 Exposed all constants from tdm_weapon_vinearrow.script as cvars + added number of children too. r17038 Exposed all constants from tdm_weapon_vinearrow.script as cvars + added number of children too. r10731 Extracted constants to cvars from tdm_weapon_flashbomb_result.script r17039 Extracted constants to cvars from tdm_weapon_flashbomb_result.script. r10732 Flashlight duration is now controlled via "flashlight_duration" spawnarg. r17040 Flashlight duration is now controlled via "flashlight_duration" spawnarg. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
04.05.2024 14:02 | stgatilov | New Issue | |
04.05.2024 14:02 | stgatilov | Status | new => assigned |
04.05.2024 14:02 | stgatilov | Assigned To | => stgatilov |
04.05.2024 14:02 | stgatilov | Relationship added | related to 0005600 |
04.05.2024 16:17 | stgatilov | Relationship added | related to 0005453 |
04.05.2024 17:57 | stgatilov | Note Added: 0016681 | |
06.05.2024 16:20 | stgatilov | Note Added: 0016684 |