Installer freedoom-fnaf2-mod

This script is for reference only and can't be directly used to install the game in the Lutris client. To install the game, download the full script.

files:
- fnaf2: https://github.com/Bugaboo2000/Fnaf2-doom-linux/archive/refs/tags/1.0.zip
game:
  args: '+set cl_maxdecals 2147483647 +set movebob 0.05 '
  files:
  - FiveNightsAtFreddys2R.pk3
  - FiveNightsAtFreddys2R.wad
  main_file: freedoom1.wad
installer:
- extract:
    dst: $CACHE
    src: fnaf2
- merge:
    dst: $GAMEDIR
    src: $CACHE
- write_config:
    file: $HOME/.config/gzdoom/gzdoom.ini
    key: freelook
    section: GlobalSettings
    value: true
- write_file:
    content: W=+forward E=+use R=+reload A=+moveleft S=+back D=+moveright Mouse1=+attack
      Mouse2=+altattack Space=+jump Ctrl=+crouch
    file: $HOME/.config/gzdoom/gzdoom.ini
    section: Doom.Bindings
zdoom:
  config: $HOME/.config/gzdoom/gzdoom.ini
{
  "files": [
    {
      "fnaf2": "https://github.com/Bugaboo2000/Fnaf2-doom-linux/archive/refs/tags/1.0.zip"
    }
  ],
  "game": {
    "args": "+set cl_maxdecals 2147483647 +set movebob 0.05 ",
    "files": [
      "FiveNightsAtFreddys2R.pk3",
      "FiveNightsAtFreddys2R.wad"
    ],
    "main_file": "freedoom1.wad"
  },
  "installer": [
    {
      "extract": {
        "dst": "$CACHE",
        "src": "fnaf2"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR",
        "src": "$CACHE"
      }
    },
    {
      "write_config": {
        "file": "$HOME/.config/gzdoom/gzdoom.ini",
        "key": "freelook",
        "section": "GlobalSettings",
        "value": true
      }
    },
    {
      "write_file": {
        "content": "W=+forward E=+use R=+reload A=+moveleft S=+back D=+moveright Mouse1=+attack Mouse2=+altattack Space=+jump Ctrl=+crouch",
        "file": "$HOME/.config/gzdoom/gzdoom.ini",
        "section": "Doom.Bindings"
      }
    }
  ],
  "zdoom": {
    "config": "$HOME/.config/gzdoom/gzdoom.ini"
  }
}
Back to game