Skip to content

Commit

Permalink
Added install directions + changed some comments
Browse files Browse the repository at this point in the history
Added an installation guide to the readme. Also changed some comments in
the lua file to be more straightforward.
  • Loading branch information
mluzarow committed Mar 2, 2017
1 parent 41ae863 commit 8bc2a4b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,12 @@ A mod for Payday2 which notifies the player as to which meth ingredient is to be
Mod will print the current required ingredient to the host of the mod (that's you) and nobody else. All messages from MethHelper will be preceeded by the tag "[MethHelper]".

Works with Cookoff, Rats day 1, Hotline Miami day 1, and Dockyard.

# How to install
In order to install this mod, following the outlined steps below:

1. Download the release from <a href="https://github.com/mluzarow/MethHelper/releases">releases</a>.
2. Extract the contents of MethHelper.zip into a folder called "MethHelper".
3. Navigate to your Payday 2 installation directory (usually this would be "C:/Program Files/steamapps/common/PAYDAY 2").
4. Drop the "MethHelper" folder into the "mods" folder inside your Payday 2 install directory.
5. You are done; your mod should be automatically detected and enabled within Payday 2.
8 changes: 5 additions & 3 deletions lua/MethHelper.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- Batch complete (Rats)
-- Dialogue event codes
local RatsFinishedID = "pln_rat_stage1_28"
local RatsAddedID = "pln_rat_stage1_12" -- ???
local RatsAddedID = "pln_rat_stage1_12"
local CookoffFinishedID = "pln_rt1_28"
local CookoffAddedID = "pln_rt1_12"

Expand Down Expand Up @@ -36,9 +36,11 @@ function clampCeiling (var, vMax)

return val

-- Trigger this every time there is dialogue
local _queue_dialog_orig = DialogManager.queue_dialog
function DialogManager:queue_dialog(id, ...)
-- If dialogue code is found in dict

-- If dialogue code is found in dict
if ingredient_dialog[id] then
-- If "batch finished" dialogue is played
if id == CookoffFinishedID or id == RatsFinishedID then
Expand Down

0 comments on commit 8bc2a4b

Please sign in to comment.