BeardLib
  • Home
  • Things to Know
    • Adding Files
    • ScriptData
  • Modules
    • Achievements
    • Add Files
    • Adding your own modules
    • AssetUpdates (Mod Updates)
    • Classes
    • Contact (contractors)
    • Crime Spree Mission
    • DLC
    • Dependencies
    • Elements
    • Global Value (Tagging weapons/etc)
    • Heist Music
      • Stealth Music
    • Hooks
    • Interactions
    • Keybind
    • Level
    • Localization
    • Mask Material
    • Mask Pattern
    • Mask
    • Melee
    • Menu Music
    • Menu
    • ModuleBase
    • Narrative
    • Options
    • Package
    • Script Mods (Replace script data)
    • Sounds
    • Tweak Modify
    • Weapon Mod
    • Weapon Skin
    • Weapon
    • XML
  • API
    • BeardLib Class
    • Constants
    • File Manager
    • Frameworks
    • Hooks
    • ModCore
    • Package Manager
    • Special Hook IDs
  • Utilities
    • FileIO
    • Input
    • Main
    • Math
    • Menu Helper Plus
    • Path
    • String
    • Sync
    • Table
    • Tweak Data Helper
    • XML
    • YAML
  • MenuUI
    • ComboBox
    • ImageButton
    • Item
    • Items
    • Keybind
    • Menus
    • Slider
    • TextBox
    • Toggle
Powered by GitBook
On this page
  • Module Definition
  • Module name
  • XML Structure
  • Example
  • Functions

Was this helpful?

Edit on GitHub
  1. Modules

Crime Spree Mission

PreviousContact (contractors)NextDLC

Last updated 3 years ago

Was this helpful?

Updated for version 3.38.

Module Definition

The module is inherited from . So base parameters can be found there.

This module is used to add your level to the crime spree pool

Module name

The name of the module you use as the meta of the module definition is 'CrimeSpreeMission' or 'CrimeSpreeMissionModule' if _force_search is set to true in the module definition.

XML Structure

<CrimeSpreeMission id icon level type add>
</CrimeSpreeMission>
Parameter
Type
Description

id

String

Id for the crimespree mission

icon

String

A preview texture for the level

level

String

The id of the level that is going to be in this crimespree mission

type

String

The type of the level, short, medium or long(if I'm not wrong short is stealth)

add

Number

How much points to add to the crimespree score [Default: 7]

icon_rect

Table

A table for the rectangle shape of the image(x,y,w,h). This can be used if your picture is inside a sprite texture, usage example:

<CrimeSpreeMission id="crimespree_custom" icon="guis/path/to/loaded/texture" level="some_custom_level" type="medium">
    <icon_rect>
        <value_node value="250"/>
        <value_node value="0"/>
        <value_node value="250"/>
        <value_node value="250"/>
    </icon_rect>
</CrimeSpreeMission>

Example

<CrimeSpreeMission id="crimespree_custom" icon="guis/path/to/loaded/texture" level="some_custom_level" type="medium">

Functions

Function
Description

AddMissionDataToTweak(crimespree_tweak_data, tweak_data)

The function that injects the crimespree mission to the crimespree tweak data. Called by the hook created in RegisterHook or from the function RegisterHook itself

This example is what you would put inside your main node within your

ModuleBase
mod config