You are viewing a potentially older version of this package. View all versions.
superkeith-BetterVisualCues-1.0.3 icon

BetterVisualCues

A visual enhancement mod for PEAK animations for item usage through model switching.

Date uploaded a day ago
Version 1.0.3
Download link superkeith-BetterVisualCues-1.0.3.zip
Downloads 347
Dependency string superkeith-BetterVisualCues-1.0.3

This mod requires the following mods to function

BepInEx-BepInExPack_PEAK-5.4.75301 icon
BepInEx-BepInExPack_PEAK

BepInEx pack for PEAK. Preconfigured and ready to use.

Preferred version: 5.4.75301

README

BetterVisualCues

BetterVisualCues is a visual enhancement mod for PEAK animations for tem usage through model switching. I AM NOT AN ANIMATOR, this is the best I could do without adding new fully fleshed out animations

Networked Animations require all clients to have the same/similar assets folder

Supported Items

The following items currently have visual support:

  • Airline Food
  • Anti-Zooka
  • All Berrynana variants
  • Mushrooms
  • Cooked Bird
  • Clusterberries
  • Cure All
  • Eggs (Yolk)
  • Frog Legs
  • Granola Bar
  • Lollipop
  • Prickleberries
  • Shroomberries
  • Aloevera
  • Antidote
  • BalloonBunch
  • All Crispberries
  • Energy Drink
  • Half Coconut
  • Honeycomb
  • Both hotdog variants
  • All Kingberries
  • Marshmallow
  • Medicinal Root
  • Medkit
  • Napberry
  • Pandora's lunchbox
  • Rope Cannons
  • Scorchberry
  • Sports drink
  • Trail Mix
  • Winterberries
  • ChainLauncher
  • Mandrake
  • Bandages
Custom Animations

All Animations are stored in assets/animations as json files and can be edited while the game is running

The default key for reloading is End, this can be changed in ModConfig

The following are required for any animations to work

  • ItemName
  • Objects (Can be Empty)
  • ThirdPersonUseAnim (Usually 'A_Scout_Use_Item')
  • Every Action Parameter when calling an action like 'SetMesh' (With the exception of 'SetOriginalMesh' with an optional Tag)

Lollipop.json is a good starting point for most animations, use that as the base

Valid Animation Actions

Action Name Parameters
ClearMaterials Object(string)
SetMaterialSlot Object(string), Slot(int), Material(string)
SetRandomPosition Object(string), MaxOffset(float)
SetObjectPosition Object(string), X(float), Y(float), Z(float)
SetObjectRotation Object(string), X(float), Y(float), Z(float)
SetObjectActive Object(string), Enabled(bool)
SetOriginalMesh, SetOriginalSkinnedMesh Object(string), Tag(string, optional)
SetMesh, SetSkinnedMesh Object(string), Mesh(string), RootBone(string, not used in SetMesh)
LoadMaterial Item(string, name of item in Peak's files), Material(string, exact name of material)

To load new meshes you must create an assetbundle in unity and package every model without their materials (Mesh->Materials->Material Creation Mode->None). Then a mod with BetterVisualCues as a dependency can call

MeshRegistry.LoadMeshes("assets/");

with the name of the assetbundle after the / on startup

To create an animation without the traditional actions you must create an AnimationOverride class on startup

public class AntiZookaCodeOverride : BaseCodeOverride
{

}

To access specific actions you can override

  • Created(string ItemName, Item item)
  • BeingUsed(string ItemName, Item item, float progress)
  • UsedFinished(string ItemName, Item item)
  • SecondaryUsedFinished(string ItemName, Item item)
  • UseCanceled(string ItemName, Item item)
  • ItemDataUpdated(string ItemName, ItemInstanceData instanceData, Item item)

To register the override call

AnimationHandler.registerCodeOverride("Anti-Zooka", new AntiZookaCodeOverride());

Replacing the 1st parameter wit the name and the second with the OverrideClass. To use it add

"CodeOverride": "Anti-Zooka"

Replacing the name to match your override

Feedback & Bug Reports

Found a bug or have an idea for a new visual effect?

Feel free to open an issue on the GitHub repository or dm me at @superkeithvr!

CHANGELOG

Changelog

[1.0.3]

  • Fixed part of Antidote model being see-through
  • Fixed Rope Cannon not using the correct animation
  • Changed Medicinal Root eat animation slightly
  • Added purple liquid effect to Antidote
  • Added support for Bandages
  • Added support for Chain Launcher
  • Added support for Mandrake

[1.0.2]

  • Patched a vanilla bug where sound effects were continously played after an item was fully used but the use action (LMB) was still held (Pandora's Box)

[1.0.1]

  • Fixed an issue where other clients were triggering networked animations for players other than themselves

[1.0.0]

  • Reworked Animation System to use json files
  • Reworked how materials and meshes are loaded
  • Reworked how animations are synced over the network
  • Added support for Aloevera
  • Added support for Antidote
  • Added support for BalloonBunch
  • Added support for All Crispberries
  • Added support for Energy Drink
  • Added support for Half Coconut
  • Added support for Honeycomb
  • Added support for Both Hotdog Varients
  • Added support for All Kingberries
  • Added support for Marshmallow
  • Added support for Medicinal Root
  • Added support for First Aid Kit
  • Added support for Napberry
  • Added support for Pandora's Lunchbox
  • Added support for Rope Cannons
  • Added support for Scorchberry
  • Added support for Sports Drink
  • Added support for Trail Mix
  • Added support for Winterberry

[0.1.1]

  • Added support for networked animations (not feeding eachother)

[0.1.0] - Initial Release

Added

  • Initial public release of BetterVisualCues.
  • Animations use model switching.
  • Anti-Zooka visual animation.
  • Support for Airline Food.
  • Support for all Berrynana variants.
  • Support for Mushrooms.
  • Support for Cooked Bird.
  • Support for Clusterberries.
  • Support for Cure All.
  • Support for Eggs (Yolk).
  • Support for Frog Legs.
  • Support for Granola Bar.
  • Support for Lollipop.
  • Support for Prickleberries.