View Issue Details

IDProjectCategoryView StatusLast Update
0006530The Dark ModScript/Defpublic06.05.2024 16:20
Reporterstgatilov Assigned Tostgatilov  
PrioritynormalSeverityfeatureReproducibilityN/A
Status assignedResolutionopen 
Product VersionTDM 2.13 
Summary0006530: Make script constants customizable by mission
DescriptionThere 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 InformationSee also:
  https://forums.thedarkmod.com/index.php?/topic/22437-overriding-tdm_weapon_arrowscript/
TagsNo tags attached.

Relationships

related to 0005600 resolvedstgatilov Crashes due to cvarSystem not being threadsafe 
related to 0005453 feedbackstgatilov Rethink how FM's should override cvars 

Activities

stgatilov

stgatilov

04.05.2024 17:57

administrator   ~0016681

Weapon scripts which are overrided:
  tdm_weapon_arrow
  tdm_weapon_blackjack
  tdm_weapon_shortsword
  tdm_weapon_vinearrow_result
  tdm_weapon_flashbomb_result
stgatilov

stgatilov

06.05.2024 16:20

administrator   ~0016684

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.

Issue History

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