Jump to content

OC Sprayed! 1.1.0

   (2 reviews)

6 Screenshots

Description

This is a revamp of smojo's original OC Spray script, picking up where it left off and fixing many of the issues seen in that mod. A new pepper spray can model has been added, NPC use functionality added and interfacing with the LSPDFR API to properly work during pursuits. (Because it uses the LSPDFR API the plugin only works when on duty)

 

Features

  • New animations and sounds, better emulating the real effect of pepper spray
  • New Spray can model
  • Interfacing with the LSPDFR API to work during pursuits
  • NPCs can now use the OC Spray
  • Much smoother spray animation
  • Small chance the subject will fight back
  • 3 (in-game) metre working distance- You must be close to the target

Install

Simply download with Lenny's Mod Manager

To spawn

It should be automatically added to your inventory when you go on duty. You can also manually add it:

When in game, press F4 to access the RagePluginHook Console and type "GiveWeapon WEAPON_OCSPRAY" without the quotations and press enter. Alternatively, you can add the entry to whatever loadout you want in the inventory xml as seen below.

Setup for NPCs (advanced users)

In "lspdfr\data\custom\inventory_eup.xml", simply add <StunWeapon chance="40">WEAPON_OCSPRAY</StunWeapon> below the stungun entry for patrol (if you want it to spawn with the patrol loadout). Change the chance to whatever you want, although I recommend to keep it below 100 and retain the taser as the OCSpray doesn't cause the suspect to surrender immediately- they'll just keep running until tased or the player arrests them.

Requirements

LSPDFR 0.4.7

RPH 1.74

Lenny's Mod Loader

Demonstration

 

Known Issues

- If an AI ped is shooting the spray towards the player, whizzing sounds are heard as if bullets are whizzing past

- AI spraying while running is not very accurate

- Sometimes the ped's screaming/coughing sounds don't play

- Ped doesn't surrender immediately if sprayed during a pursuit (LSPDFR API Limitation)

- Any cop sprayed during a pursuit will just stand there after the effects wear off, rendering them useless

 

Credits

smojo for the original script and dlc files

 

Usage

Feel free to use this mod in your Youtube videos. This mod is not to be shared on other platforms, any downloads must be linked to this LCPDFR.com page.

The OC Spray Can model is NOT to be used anywhere outside this mod without my explicit permission.

 

Disclaimer

As with all modifications, use at your own risk. I am not responsible for any game crashes, data loss or anything else that may occur as a result of using this mod.


What's New in Version 1.1.0

Released

Automatically adds the OC spray to the player's inventory when they go on duty.

smojo- Original script and dlc files

You may also like

  • ClearTheWayV

    This is a simple script that is based on ragehook to make cars move over when only having your emergency lights running not your siren no keys because it works as a standalone script what I basically mean is it doesn't need any user interaction it does everything by itself I am trying to enhance the "default" without script behavior so the pullover behavior or "move over" behavior is improved because to be honest when I play the game every time I get to a crowded area in gta v I keep c
    timnboys

    By timnboys

    Updated

    • 138.1k
  • StopAimingAtCops : No Auto-Aim & Melee-attack on Police, EMS, Fire, Coroner

    No more auto aim on emergency services!
    Vincentsgm

    By Vincentsgm

    Updated

    • 9.3k
  • redCallouts

    A series of realistic, location-based callouts by cadmiumRED.   FEATURE-PACKED! Order suspects to drop their weapon Hear your character yell for help as you request backup Select your localisation option (US, UK, Australia) and have not only realistic dispatch dialogue but also callout outcomes. No longer will a British copper be seeing suspects with guns constantly. Play through 12 exciting callouts, each with their own unique possibilities - Domestic v
    cadmiumRED

    By cadmiumRED

    Updated

    • 126.8k
  • OC Spray

    This mod is supposed to add an oc or pepper spray that creates an animation and sound when the player is hit by the stream. Though currently, it adds an untextured OC Spray can, and occasionally causes the ped that the can is aimed at to play the animation and sound. This is in alpha.  This is my first mod I have created and my first time programming in C#. I have taken (and somehow passed) college courses in C++ and HTML, and also taught myself some Java. As I have been creating this mod
    smojo

    By smojo

    Updated

    • 3.5k
  • [ELS] Chicago Police Pack [DLC/REPLACE]

    Chicago Police Department Pack ELS
    Trooper Keaton

    By Trooper Keaton

    Updated

    • 11k
  • Smooth Driving V

    Makes keyboard driving smoother and provides more control over your vehicle
    Lieutenant Dan

    By Lieutenant Dan

    Updated

    • 27.3k
  • User Feedback

    Recommended Comments



    4 hours ago, Chief Donavan said:

    I have it installed correctly and it loaded successfully in game but how do i spawn it?

     

    Sorry, completely forgot about that part.

    Press F4 to access the RagePluginHook Console and type "GiveWeapon WEAPON_OCSPRAY" and press enter

    Link to comment
    Share on other sites

    I'm not so sure about the install. I've done everything that you have stated, however when I try to spawn the weapon by going threw rage it doesnt even list OC spray in my selections. Is this supposed to be a stand alone plugin? or an LSPDFR plugin?

    Link to comment
    Share on other sites
    55 minutes ago, Chief Donavan said:

    This is the message I get it’s still not working for me 

     

    You should have it in your hand when you press F4 to exit the console

    42 minutes ago, cw5110 said:

    I'm not so sure about the install. I've done everything that you have stated, however when I try to spawn the weapon by going threw rage it doesnt even list OC spray in my selections. Is this supposed to be a stand alone plugin? or an LSPDFR plugin?

    It is an addon weapon and RagePluginHook will not list addon weapons in the console. Just type "GiveWeapon WEAPON_OCSPRAY" and it'll work if it was installed properly

    It's an LSPDFR plugin by the way, so the spray effects will only work when you're on duty. Although you can still spawn the weapon without LSPDFR running.

    Link to comment
    Share on other sites
    19 hours ago, agent rogers said:

    i keep crashing every time i force duty in console  sine i installed this Please help!

    RagePluginHook_17052020_145652.log 113.94 kB · 7 downloads

    Not sure why the crash occurs, but it doesn't seem to be a direct problem with my mod. Try testing the game with and without certain mods to find the issue.

    2 hours ago, JohtajaBuffalo94 said:

     

    hi i can give you a new download link please!! 🙂 

    give me a new download link i can't download

    You can still download v1.0.0, it's just that you have to manually spawn the OC spray. Otherwise, you can wait until the v1.1.0 file is approved, shouldn't take more than a day.

    1 hour ago, Cyanotic said:

    really wish this didn't rely on LML. I can't stand LML

    If you know how to install dlcs then you can actually manually install this. Just download it, copy the dlc folder to where the other dlcs are (Rename to OCSpray) and add the entry to your dlclist.xml. Copy everything inside gamefiles into your GTA 5 directory.

    LML makes it so much easier by simplifying all this to one or two clicks.

    Link to comment
    Share on other sites
    11 hours ago, Blobby said:

    Not sure why the crash occurs, but it doesn't seem to be a direct problem with my mod. Try testing the game with and without certain mods to find the issue.

    You can still download v1.0.0, it's just that you have to manually spawn the OC spray. Otherwise, you can wait until the v1.1.0 file is approved, shouldn't take more than a day.

    If you know how to install dlcs then you can actually manually install this. Just download it, copy the dlc folder to where the other dlcs are (Rename to OCSpray) and add the entry to your dlclist.xml. Copy everything inside gamefiles into your GTA 5 directory.

    LML makes it so much easier by simplifying all this to one or two clicks.

    LML is for people that don't know how to install DLC. Not mandatory to the mod functionality?

    Link to comment
    Share on other sites

    Yeah well when it updates might take another shot at it. heck people are dying faster than than mods getting approved lately! You would think things would be faster.

    Link to comment
    Share on other sites

    I know this is an odd question and from what I can gather the answer is no but the OC Spray have a Weapon hash? I ask as my trainer store load outs like this (See Below) and when ever I save a load out with the spray it doesn't save it. So naturally I have to add it through F4 console every time I load my load out ( which is no big deal). So i figured I ask. Keep up the great work.

    Spoiler

    <Weapon hash="0xc1b3c3d1" tint="2">
            <Components>
                <Component hash="0xe9867ce3" livery="0x00000000" />
                <Component hash="0x16ee3040" livery="0x00000000" />
            </Components>
        </Weapon>
        <Weapon hash="0x3656c8c1" tint="0">
            <Components />

    P.S. I'm more familiar with vehicles then weapons so sorry if this is a dumb question 

    Edited by Lou9896
    Link to comment
    Share on other sites
    4 hours ago, Lou9896 said:

    I know this is an odd question and from what I can gather the answer is no but the OC Spray have a Weapon hash? I ask as my trainer store load outs like this (See Below) and when ever I save a load out with the spray it doesn't save it. So naturally I have to add it through F4 console every time I load my load out ( which is no big deal). So i figured I ask. Keep up the great work.

      Reveal hidden contents

    <Weapon hash="0xc1b3c3d1" tint="2">
            <Components>
                <Component hash="0xe9867ce3" livery="0x00000000" />
                <Component hash="0x16ee3040" livery="0x00000000" />
            </Components>
        </Weapon>
        <Weapon hash="0x3656c8c1" tint="0">
            <Components />

    P.S. I'm more familiar with vehicles then weapons so sorry if this is a dumb question 

    lol trainers relies on the open iv and gta folders  adding it to the open iv directly should fix that problem so when this updates it should work.  

    Link to comment
    Share on other sites
    On 5/17/2020 at 8:48 AM, Chief Donavan said:

    I got it working thanks man this is so cool good job creating this mod definitely gonna bring more role play to my YouTube videos 

    I have same problem how did u get lt to work? thanks

    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    ×
    ×
    • Create New...