astr1 Posted January 20, 2007 Share Posted January 20, 2007 Ok, I got a question (hopefully my last). How do I made pedestrians attack tommy in every suit exept suit 2. Eg. I'f I was in the normal street suit and pedestrains attack me and then i'f im in suit 2 (sorie) everyone is normal (dont attack me). How do I do that? Here's the code I put in ped.dat: ____________________________________________ PLAYER1 2.0 6.0 6.0 0.0 15.0 PLAYER2 2.0 6.0 6.0 0.0 15.0 PLAYER3 2.0 6.0 6.0 0.0 15.0 PLAYER4 2.0 6.0 6.0 0.0 15.0 SPECIAL 2.0 6.0 6.0 17.0 7.5 CIVMALE 2.0 6.0 6.0 17.0 7.5 Threat GUN EXPLOSION DEADPEDS PLAYER1 PLAYER3 PLAYER4 Avoid CIVMALE CIVFEMALE COP GANG1 GANG2 GANG3 GANG4 GANG5 GANG6 GANG7 GANG8 GANG9 CRIMINAL SPECIAL PLAYER2 CIVFEMALE 2.0 6.0 6.0 17.0 7.5 Threat GUN EXPLOSION DEADPEDS PLAYER1 PLAYER3 PLAYER4 Avoid CIVMALE CIVFEMALE COP GANG1 GANG2 GANG3 GANG4 GANG5 GANG6 GANG7 GANG8 GANG9 CRIMINAL SPECIAL PLAYER2 COP 2.0 2.0 2.0 20.0 7.5 Threat GUN EXPLOSION DEADPEDS Avoid CIVMALE CIVFEMALE COP GANG1 2.0 6.0 6.0 17.0 7.5 Threat GUN GANG2 GANG3 GANG4 GANG5 GANG6 GANG7 GANG8 GANG9 EXPLOSION Avoid GANG1 PLAYER2 GANG2 2.0 6.0 6.0 17.0 7.5 Threat GUN GANG1 GANG3 GANG4 GANG5 GANG6 GANG7 GANG8 GANG9 EXPLOSION Avoid GANG2 PLAYER2 GANG3 2.0 6.0 6.0 17.0 7.5 Threat GUN GANG1 GANG2 GANG4 GANG5 GANG6 GANG7 GANG8 GANG9 EXPLOSION Avoid GANG3 PLAYER2 GANG4 2.0 6.0 6.0 17.0 7.5 Threat GUN GANG1 GANG2 GANG3 GANG5 GANG6 GANG7 GANG8 GANG9 EXPLOSION Avoid GANG4 PLAYER2 GANG5 2.0 6.0 6.0 17.0 7.5 Threat GUN GANG1 GANG2 GANG3 GANG4 GANG6 GANG7 GANG8 GANG9 EXPLOSION Avoid GANG5 PLAYER2 GANG6 2.0 6.0 6.0 17.0 7.5 Threat GUN GANG1 GANG2 GANG3 GANG4 GANG5 GANG7 GANG8 GANG9 EXPLOSION Avoid GANG6 PLAYER2 GANG7 2.0 6.0 6.0 17.0 7.5 Threat GUN GANG1 GANG2 GANG3 GANG4 GANG5 GANG6 GANG8 GANG9 EXPLOSION Avoid GANG7 PLAYER2 GANG8 2.0 6.0 6.0 17.0 7.5 Threat GUN GANG1 GANG2 GANG3 GANG4 GANG5 GANG6 GANG7 GANG9 EXPLOSION Avoid GANG8 PLAYER2 GANG9 2.0 6.0 6.0 17.0 7.5 Threat GUN GANG1 GANG2 GANG3 GANG4 GANG5 GANG6 GANG7 GANG8 EXPLOSION Avoid GANG9 PLAYER2 EMERGENCY 2.0 6.0 6.0 20.0 7.5 Threat EXPLOSION Avoid CIVMALE CIVFEMALE COP CRIMINAL 2.0 6.0 6.0 17.0 7.5 Threat GUN COP COP_CAR EXPLOSION PLAYER1 PLAYER3 PLAYER4 Avoid COP GANG1 GANG2 GANG3 GANG4 GANG5 GANG6 GANG7 GANG8 GANG9 PLAYER2 PROSTITUTE 2.0 6.0 6.0 17.0 7.5 Threat GUN EXPLOSION DEADPEDS PLAYER1 PLAYER3 PLAYER4 Avoid COP GANG1 GANG2 GANG3 GANG4 GANG5 GANG6 GANG7 GANG8 GANG9 PLAYER2. ____________________________________________ Is it right or do I need to change a bit? Thanks to people that help Link to comment Share on other sites More sharing options...
Knowledge Novice Posted January 20, 2007 Share Posted January 20, 2007 Personally I've never quite understood how to modify the ped.dat file, but if you're interested in an scm mod I have something that might interest you. This mod checks to see if you are wearing the Soire suit (skin "PLAYER2"). If you are you will be ignored by everyone. If at anytime you are no longer wearing the suit things go back to 'normal'. Even though you are ignored you will still get a wanted level if you do something bad. For example: you can try to hi-jack a cop car while a cop is in it. You will get a wanted level and the cop will get out of his car as usual, but then he just kind of wonders off. Here's the mod: Add to create_threads 004F: create thread ££Safe_Suit Add just above --Mission 0-- :Safe_Suit03A4: name_thread "MadeMan":Soire0001: wait 750 ms 00D6: if 00256: player $PLAYER_CHAR defined004D: jump if false ££Soire00D6: if 00500: player $PLAYER_CHAR skin == "PLAYER2"004D: jump if false ££Soire03BF: set player $PLAYER_CHAR ignored by everyone to 1 (true):Check0001: wait 750 ms 00D6: if 0 0256: player $PLAYER_CHAR defined004D: jump if false ££Check00D6: if 08500: NOT player $PLAYER_CHAR skin == "PLAYER2"004D: jump if false ££Check 03BF: set player $PLAYER_CHAR ignored by everyone to 0 (false)0002: jump ££Soire I haven't fully tested this code, so if you do use it I would appreciate it if you would tell me if you find any bugs or glitches. Later. Link to comment Share on other sites More sharing options...
astr1 Posted January 20, 2007 Author Share Posted January 20, 2007 (edited) Add to create_threads 004F: create thread ££Safe_Suit :Safe_Suit03A4: name_thread "MadeMan":Soire0001: wait 750 ms 00D6: if 00256: player $PLAYER_CHAR defined004D: jump if false ££Soire00D6: if 00500: player $PLAYER_CHAR skin == "PLAYER2"004D: jump if false ££Soire03BF: set player $PLAYER_CHAR ignored by everyone to 1 (true):Check0001: wait 750 ms 00D6: if 0 0256: player $PLAYER_CHAR defined004D: jump if false ££Check00D6: if 08500: NOT player $PLAYER_CHAR skin == "PLAYER2"004D: jump if false ££Check 03BF: set player $PLAYER_CHAR ignored by everyone to 0 (false)0002: jump ££Soire Didn't work . Would it work if i Changed the ped.dat file back to normal and then put in this: :Street0001: wait 750 ms 00D6: if 00256: player $PLAYER_CHAR defined004D: jump if false ££Street00D6: if 00500: player $PLAYER_CHAR skin == "PLAYER1"004D: jump if false ££Street03BF: set player $PLAYER_CHAR ignored by everyone to 0 (true):Check0001: wait 750 ms 00D6: if 0 0256: player $PLAYER_CHAR defined004D: jump if false ££Check00D6: if 08500: NOT player $PLAYER_CHAR skin == "PLAYER1"004D: jump if false ££Check 03BF: set player $PLAYER_CHAR ignored by everyone to 1 (false)0002: jump ££Soire and then this: :Soire0001: wait 750 ms 00D6: if 00256: player $PLAYER_CHAR defined004D: jump if false ££Soire00D6: if 00500: player $PLAYER_CHAR skin == "PLAYER2"004D: jump if false ££Soire03BF: set player $PLAYER_CHAR ignored by everyone to 1 (true):Check0001: wait 750 ms 00D6: if 0 0256: player $PLAYER_CHAR defined004D: jump if false ££Check00D6: if 08500: NOT player $PLAYER_CHAR skin == "PLAYER2"004D: jump if false ££Check 03BF: set player $PLAYER_CHAR ignored by everyone to 0 (false)0002: jump ££Soire In the main.scm (above mission 0). Would it work??? EDIT: I tried doing what above but it failed. So then I changed: 03BF: set player $PLAYER_CHAR ignored by everyone to 0 (true) to: 03BF: set player $PLAYER_CHAR ignored by everyone to 30 (true) I went in game and walked around, no one attacked me. But ONE ped kept following/chasing me ( didn't attack me) just chased me. I need help BADLY !!! Edited January 20, 2007 by astr1 Link to comment Share on other sites More sharing options...
Knowledge Novice Posted January 20, 2007 Share Posted January 20, 2007 I would suggest changing the ped.dat back to it's original state to see if that has any effect, although I would think that the 'ignored by everyone' command would override the changes in the ped.dat, but I'm not sure. Are there any other mods in your scm? I just copied the code directly from this page back into the mission builder and ran around with a 3 star wanted level, punching cops in the head without consequence. The code definately works on my system. Unless the ped.dat or another mod is causing the problem, then you may have made a mistake when adding the code to the scm. The extra code that you mentioned wouldn't be necessary though and I've never experimented with the 'ignored by everyone' command. I've always been under the impression that the 0/1 was a flag simply used to turn the stat on/off, so I'm unsure of the effect that you may have gotten. I would suggest putting the ped.dat back the way that it was and removing any other scm mods that may be present. Then 'copy and paste' my original code just as it is above being careful of any mistakes. Or, if you want added convenience for the sake of testing, you could copy this 'exactly as it is' into your scm. The added thread (NameIt) simply allows you to cycle through some of the different player_skins with a key_press. The Soire suit should be the first skin that you see when you activate the code. If you choose to do this, I would suggest starting the game, walk up to the first cop that you see and punch him. When you get a wanted level switch to the Soire suit. You will still have a wanted level, but he no longer reacts to you (won't chase or attack you). ** To change skins: Hold down the 'Look behind' key and press the 'Walk forward' key. Each time that you do this your player_skin will change and eventually cycle through back to the original 'Tommy' skin. Add to create_threads 004F: create thread ££Safe_Suit004F: create thread ££NameIt Add just above --Mission 0-- :Safe_Suit03A4: name_thread "MadeMan":Soire0001: wait 750 ms 00D6: if 00256: player $PLAYER_CHAR defined004D: jump if false ££Soire00D6: if 00500: player $PLAYER_CHAR skin == "PLAYER2"004D: jump if false ££Soire03BF: set player $PLAYER_CHAR ignored by everyone to 1 (true):Check0001: wait 750 ms 00D6: if 0 0256: player $PLAYER_CHAR defined004D: jump if false ££Check00D6: if 08500: NOT player $PLAYER_CHAR skin == "PLAYER2"004D: jump if false ££Check 03BF: set player $PLAYER_CHAR ignored by everyone to 0 (false)0002: jump ££Soire :NameIt03A4: name thread "Schizo":Change_Skin0001: wait 50 ms 00D6: if 0 0256: player $PLAYER_CHAR defined004D: jump_if_false ££Change_Skin00D6: if 080E0: NOT player $PLAYER_CHAR driving004D: jump_if_false ££Change_Skin00D6: if 100E1: key_pressed 0 8 ;; Walk forward button00E1: key_pressed 0 19;; Look behind button004D: jump_if_false ££Change_Skin :Skin100D6: if 00039: [email protected] == 0;; integer values004D: jump_if_false ££Skin20006: [email protected] = 1;; integer values0352: set_actor $PLAYER_ACTOR skin_to "PLAYER2"0002: jump ££Refresh :Skin200D6: if 00039: [email protected] == 1;; integer values004D: jump_if_false ££Skin30006: [email protected] = 2;; integer values0352: set_actor $PLAYER_ACTOR skin_to "PLAYER3"0002: jump ££Refresh:Skin300D6: if 00039: [email protected] == 2;; integer values004D: jump_if_false ££Skin40006: [email protected] = 3;; integer values0352: set_actor $PLAYER_ACTOR skin_to "PLAYER4"0002: jump ££Refresh:Skin400D6: if 00039: [email protected] == 3;; integer values004D: jump_if_false ££Skin50006: [email protected] = 4;; integer values0352: set_actor $PLAYER_ACTOR skin_to "IGBUDDY"0002: jump ££Refresh:Skin500D6: if 00039: [email protected] == 4;; integer values004D: jump_if_false ££Skin60006: [email protected] = 5;; integer values0352: set_actor $PLAYER_ACTOR skin_to "IGMIKE"0002: jump ££Refresh:Skin600D6: if 00039: [email protected] == 5;; integer values004D: jump_if_false ££Skin70006: [email protected] = 6;; integer values0352: set_actor $PLAYER_ACTOR skin_to "IGMIKE2"0002: jump ££Refresh:Skin700D6: if 00039: [email protected] == 6;; integer values004D: jump_if_false ££Skin80006: [email protected] = 7;; integer values0352: set_actor $PLAYER_ACTOR skin_to "IGHLARY"0002: jump ££Refresh:Skin800D6: if 00039: [email protected] == 7;; integer values004D: jump_if_false ££Skin90006: [email protected] = 8;; integer values0352: set_actor $PLAYER_ACTOR skin_to "IGDIAZ"0002: jump ££Refresh:Skin900D6: if 00039: [email protected] == 8;; integer values004D: jump_if_false ££Skin100006: [email protected] = 9;; integer values0352: set_actor $PLAYER_ACTOR skin_to "IGPHIL"0002: jump ££Refresh:Skin1000D6: if 00039: [email protected] == 9;; integer values004D: jump_if_false ££Skin110006: [email protected] = 10;; integer values0352: set_actor $PLAYER_ACTOR skin_to "IGPHIL2"0002: jump ££Refresh :Skin1100D6: if 00039: [email protected] == 10;; integer values004D: jump_if_false ££Skin120006: [email protected] = 11;; integer values0352: set_actor $PLAYER_ACTOR skin_to "IGGONZ"0002: jump ££Refresh:Skin1200D6: if 00039: [email protected] == 11;; integer values004D: jump_if_false ££Skin130006: [email protected] = 12;; integer values0352: set_actor $PLAYER_ACTOR skin_to "IGMERC"0002: jump ££Refresh:Skin1300D6: if 00039: [email protected] == 12;; integer values004D: jump_if_false ££Skin140006: [email protected] = 13;; integer values0352: set_actor $PLAYER_ACTOR skin_to "IGPERCY"0002: jump ££Refresh:Skin140006: [email protected] = 0;; integer values0352: set_actor $PLAYER_ACTOR skin_to "PLAYER":Refresh038B: load_requested_models0353: refresh_actor $PLAYER_ACTOR:Loop0001: wait 20 ms00D6: if 2180E1: NOT key_pressed 0 880E1: NOT key_pressed 0 19004D: jump_if_false ££Loop0002: jump ££Change_Skin I have tested this code as it is here and it works on my system. Give it a try and see how it goes. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now