Jump to content

Vigilante code


Recommended Posts

I was working on a player model mod, and while working on the police uniform mesh it occured to me that the uniform is essentially useless all things considered... so I thought that perhaps this could be changed.

 

Is it possible to add at the end of the main.scm (so as not to invalidate save games) a check that checks to see if the player is wearing the police uniform, and on a positive return then checks to see if vigilante mode is active. If that returns positive, then it makes it so that the player doesn't accrue wanted levels and/or freezes the timer?

 

Has anyone done anything similar to that?

Link to comment
https://gtaforums.com/topic/266201-vigilante-code/
Share on other sites

It's definetely possible. Quite simple, at that, just edit the mission to set the max wanted level to 0 and whatnot if the cop uniform is worn. And you can't just plug something at the end of the file (which is BTW external scripts in SA) or just at a random position expecting it to work, you need to place things at the right sections. Though just editing missions doesn't cause savefile incompabillity, as well as you could use Darkpact if you needed to insert a code thread to the MAIN section and still have savefile compabillity.

Link to comment
https://gtaforums.com/topic/266201-vigilante-code/#findComment-4032221
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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.