gtteamamxx / Tower-Defense

Tower Defense mod to Counter-Strike 1.6
9 stars 4 forks source link

[Question] Rewrite configuration file #14

Open gtteamamxx opened 5 years ago

gtteamamxx commented 5 years ago

Actual format for creating wave is:

WAVE_NUMER = (TYPE, MONSTER_NUM, MONSTER_HEALTH, MONSTER_SPEED, SPECIAL_HEALTH, SPECIAL_SPEED)

eg: 1 = (NORMAL, 13, 600, 210) 2 = (BOSS, 20, 1600, 220, 45000, 125)

Maybe we should change this to more universal? More special monsters in one wave? User then could add more settings to each wave. Eg: Extra gold in this wave (eg wave before boss -> every player gets 100gold extra)

Suggestion for new format ( maybe JSON ):

1
ADDITIONAL_GOLD: 20 // optional. Adds extra gold for players
/* Here we can add custom commands
   which we can add by new plugin
1 plugin = 1 new command */

[
 {
  Type: NORMAL
  Health: 3100 3500
  Speed: 250
  Interval: 1.8 2.0,
  Repeat: 13 15
 }
 {
  Type: NORMAL
  Health: 1500 1800
  Speed: 230 260
  Interval: 1.0,
  Repeat: 5
 }
 {
  Type: BONUS
  Health: 3500 4120
  Speed: 300
  Delay: 10.0 // After 10 seconds of last sent monster send this monster
  /* Interval is optional */
  /* Repeat is optional ofc. if not typed then only one time */
 }
]
gtteamamxx commented 5 years ago

new config schema file is here: https://github.com/gtteamamxx/Tower-Defense/blob/a4e4814d56f1b60c9251c3777c3999c783346f9f/addons/amxmodx/configs/Tower%20Defense/default_config_file.json