Jump to content
Sign in to follow this  
#Weedswag

Dominate/Joker "!" Icon Remover

Recommended Posts

#Weedswag

Because i dont give a fuck about that line

This script is not to be used/discussed/altered/edited/etc (or anything I deem wrong), in anyway on/in Pirate Perfection, Pirate Captain's/Pirate Perfection's Blog, Pirate Captain's/Pirate Perfection's Forum. <-- This means you #weedmoron

Hmm let me think about it....

No Sorry, Bfaggot

Hello,

Here's a little script I found on here and updated it to work with the current updates. It removes the annoying ! icon above an enemy's head when he is dominated and jokered. This is still experimental to a point. It will need further improvement, but if anybody wants it and doesn't care that it is not perfect, here you go.

! Icon Remover:

-- "!" Icon Remover by Bfaggot (Original Script by Slynderdale and gir489)

if not _original then _original = PlayerManager.upgrade_value end 

function PlayerManager:upgrade_value( category, upgrade, default )

    if alive( managers.player:local_player() ) and not managers.trade:is_peer_in_custody( managers.network:session():local_peer():id() ) then

        local cops = managers.enemy:all_enemies()

        for _,cop in pairs( cops ) do

            if ( alive(cop.unit) ) then

                if ( cop.unit:anim_data() ) then

                    if ( cop.unit:anim_data().hands_tied ) then

                        GroupAIStateBase:_clear_criminal_suspicion_data( cop.unit, false )

                    end

                end

            end

        end

    end

    return _original(self, category, upgrade, default)

end



Run as a Post Require. Line in PD2Hook.yml




 - [lib/units/enemies/cop/logics/coplogicintimidated, .lua]

Report and bugs/glitches here to fix. If anybody wants to help improve it please do.

Credits:

Bfaggot (Updating Code, Posting Code)

Slynderdale (Original Script)

gir489 (Inspiration for Script, Original Script)

Bests

Bfaggot :)

  • Upvote 1

Share this post


Link to post
Share on other sites
ChaChaMaster

OMG! Ya'll I got this shit! #weedswag is B1313! That's why he posts all his code. Makes sense he rips and insults on himself to cover his tracks! That's why nobody suspects him of being him! Ban that fool. Trying to put his shit on here. PP 4EVER!! YA BITCHES!! :crew::crew::crew::crew:

Peace Bitches! :cool:

  • Upvote 1

Share this post


Link to post
Share on other sites
PirateCaptain

if we wait long enough, will he post a good script? hmmm

  • Upvote 1

Share this post


Link to post
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

Stop being a peeping tom and join the community.... we got cookies

Join the crew now

Sign in

Already part of the crew? Board right here

Sign In Now
Sign in to follow this  

×