Coder Social home page Coder Social logo

cornyflakezplugin's Introduction

CornyFlakezPlugin

This repository contains two projects, CornyFlakezPlugin and CornyFlakezPlugin2, which are plugins for LSPDFR and RPH.

Installation

Download the latest release and copy all files into your root GTA V directory.

Compilation

You may also compile the plugin from source locally. First, clone the repository:

git clone [email protected]:kguzek/CornyFlakezPlugin.git

Then, compile the project. To do this there is an included build script for Windows which assumes your game is installed in the default location (C:\Program Files\Rockstar Games\Grand Theft Auto V).

cd CornyFlakezPlugin
.\Build-Plugins.ps1

Otherwise, you may do this step manually. You can open the Build-Plugins.ps1 file with a text editor and see what it does. The main steps are running dotnet build and copying the build output into the appropriate plugin folders, as well as copying the referenced system DLLs to the root game folder.

CornyFlakezPlugin

This is an LSPDFR plugin which adds new callouts and loadout functionality.

Configuration

The the plugin's file directory is in Plugins/LSPDFR/CornyFlakezPlugin. Here, there is a configuration file called settings.ini. It contains basic settings which slightly affect the plugin's functionality and may be changed freely. The supported callsign format is Division-Unit-Beat, where Unit is a code word from the LAPD phonetic alphabet.

Custom loadouts

Loadouts can be defined in WeaponLoadouts.xml in the plugin directory: Plugins/LSPDFR/CornyFlakezPlugin. These will be applied when the user goes on duty.

Commandeering

When using the LSPDFR "Flash badge" action near the front of a vehicle, the occupants leave the vehicle allowing you to commandeer it. You can activate the built-in action by using the interaction menu or by pressing the GTA V Action key (default: caps lock) when your action is set to "Flash badge". This feature only works when you are within a certain distance of the front of the closest vehicle to you and when that vehicle has at least one occupant.

Callouts

Currently, there are two added callouts in CornyFlakezPlugin.

Vehicle Pursuit

This is a basic vehicle pursuit which practically doesn't differ from the built-in pursuit. It was made while learning the basics of RPH plugin development.

Police escort

This is a linear callout which involves escorting a VIP from a start location (currently only City Hall) to the LSIA. I am planning on adding more events to it (random attacks on VIP etc.) but currently each playthrough will be the same.

CornyFlakezPlugin2

This is a debug plugin for RagePluginHook (it does not require LSPDFR) that I created to ease the develpoment of CornyFlakezPlugin. It has two menus activated by two keybinds.

Main menu

This menu can be opened by pressing ]. It contains options pertaining to spawning peds and vehicles, as well as emulating LSPDFR callouts. The callout emulator is particularly useful as it means you can update the callout code and test it without reloading LSPDFR. This menu also contains a Reload plugin option, which further helps with development when testing new versions.

Debug menu

This menu can be opened by pressing [ and it contains information regarding peds and vehicles belonging to the active callouts.

Thank you for reading!

cornyflakezplugin's People

Contributors

kguzek avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.