DoubleVision Posted May 16, 2014 Share Posted May 16, 2014 (edited) I'm trying to edit a Zombie Mod script created by Aswin to work for GTA Vice City. I installed it into the main.scm, but nothing happens. This is the script: 004F: create_thread @ZOMBIEA_101:ZOMBIEA03A4: name_thread 'ZOMBIEA':ZOMBIEA_101 0001: wait 0 ms04BB: select_interiour 0 // select render area00D6: if and[email protected] == 0 // if player is outside0256: player $PLAYER_CHAR defined // because of just one Condition, the zombie will spawn instantly in starting,004D: jump_if_false @ZOMBIEA_101 :ZOMBIEA_120 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0 // getting near by Coordinates or Position05EF: [email protected] = random_actor_near_point [email protected] [email protected] [email protected] in_radius 10.0 find_next 1 pass_deads 0 //IF and SET0245: set_actor [email protected] walk_style_to 37 ///Tramp, more like a zombie tho.0332: set_actor [email protected] bleeding 10489: set_actor [email protected] muted 105E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR 0001: wait 1000 // wait a sec:ZOMBIEA_1300001: wait 0 ms00D6: if0118: actor [email protected] dead 004D: jf @ZOMBIEA_1300001: wait 500 msgoto @ZOMBIEA_120 Edited May 16, 2014 by TheThingy Link to comment Share on other sites More sharing options...
In45do Posted May 16, 2014 Share Posted May 16, 2014 I don't know how GTA VC script works but I found a false in your script. :ZOMBIEA_120 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0 05EF: [email protected] = random_actor_near_point [email protected] [email protected] [email protected] in_radius 10.0 find_next 1 pass_deads 0 // You should change [email protected] [email protected] [email protected] to [email protected] [email protected] [email protected] because the previous code check it through [email protected] [email protected] [email protected]0245: set_actor [email protected] walk_style_to 37 ///Tramp, more like a zombie tho.0332: set_actor [email protected] bleeding 10489: set_actor [email protected] muted 105E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR 0001: wait 1000 // wait a sec Link to comment Share on other sites More sharing options...
DoubleVision Posted May 16, 2014 Author Share Posted May 16, 2014 (edited) Thank you. I'm going to do that and test it. Edit: My apologies. I had accidently posted twice. I was used to pms. I just finished trying it out in the main.scm, but I still don't notice any changes. The Peds around me don't attack the Player. I think I might of installed it into the main.scm wrong, It's a little weird than gta sa main.scm. I tried to install this script to GTA VC Timetwisterv1. I just want to make this script make the peds in my sphere attack Tommy. Edited May 16, 2014 by TheThingy Link to comment Share on other sites More sharing options...
In45do Posted May 17, 2014 Share Posted May 17, 2014 I forgot to tell you the variable [email protected] from the first thread is not readable. (look below) :ZOMBIEA_101 0001: wait 0 ms04BB: select_interiour 0 // where do [email protected] come from?00D6: if and[email protected] == 0 // this condition will return false at anytime0256: player $PLAYER_CHAR defined 004D: jump_if_false @ZOMBIEA_101 Otherwise use this command : 077E: get_active_interior_to [email protected] Put opcode 077E after opcode 04BB. It will look like this : :ZOMBIEA_101 0001: wait 0 ms04BB: select_interiour 0077E: get_active_interior_to [email protected] 00D6: if [email protected] == 0 0256: player $PLAYER_CHAR defined 004D: jump_if_false @ZOMBIEA_101 Note : The script will only make 1 ped attacks player. Meheraj7 1 Link to comment Share on other sites More sharing options...
DoubleVision Posted May 17, 2014 Author Share Posted May 17, 2014 (edited) Thanks for your help. This script will only make 1 Ped attack player? So, to have everyone to attack player requires loading Peds instead of capturing Peds inside sphere? I tried in the past to extract the zombies spwaning script from Long Night, but it froze the game right when the Peds spawned. I'm going to try your fix, but is it possible to extract the script from Long Night (just free roaming zombie spawning)? Thanks. Edit: I just tried the fix, but still nothing happens for me in the game. Edited May 17, 2014 by TheThingy Link to comment Share on other sites More sharing options...
In45do Posted May 17, 2014 Share Posted May 17, 2014 What is Long Night mod?Btw, I have recreate the script to be more effective. And I notice something else that make the script would be impossible to work. This one : 05EF: [email protected] = random_actor_near_point [email protected] [email protected] [email protected] in_radius 10.0 find_next 1 pass_deads 0 And this is my version (recreated and untested) : 004F: create_thread @ZOMBIEA_101 // Incase if something wrong again, would you mind to change the @ZOMBIEA_101 to @ZOMBIEA?:ZOMBIEA03A4: name_thread 'ZOMBIEA'04BB: select_interiour 0:ZOMBIEA_101 wait 0 ms077E: get_active_interior_to [email protected] if [email protected] == 0 0256: player $PLAYER_CHAR defined jf @ZOMBIEA_10104C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0 05EF: [email protected] = random_actor_near_point [email protected] [email protected] [email protected] in_radius 10.0 find_next 0 pass_deads 1 :ZOMBIEA_120 wait 0 msif056D: actor [email protected] definedjf @ZOMBIEA_1010245: set_actor [email protected] walk_style_to 37 0332: set_actor [email protected] bleeding 10489: set_actor [email protected] muted 105E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR wait 1000 ms :ZOMBIEA_130wait 0 msif0118: actor [email protected] dead jf @ZOMBIEA_13001C2: remove_references_to_actor [email protected] 100 msgoto @ZOMBIEA_101 And last, tell me if I'm using GTA SA opcode in the script because I never seen GTA VC opcode before. Link to comment Share on other sites More sharing options...
xNCx Posted May 17, 2014 Share Posted May 17, 2014 Your SA script won't work in VC, because the latest opcode in VC is close to 05FF... Or 05EE... Anyway, 077E is definitely not available in VC . Link to comment Share on other sites More sharing options...
DoubleVision Posted May 18, 2014 Author Share Posted May 18, 2014 (edited) Thank you to the both of you. I'm going to test the script immediately and report back. Edit: So, I tested the script but nothing happened. The Peds don't attack player. The script I posted was Ashwin's script to a zombie testing script for GTA SA that was unfinished. I looked online and in sanny builder data opcodes txt to find alternate counterparts to use for Vice City instead. What's the GTA VC Long Night? I'll post the link to it: http://www.moddb.com/mods/gta-long-night I don't want any missions from that. I just want the zombies to spawn and attack the player (a free roaming, per say)..Is there any way to just extract the zombies spawning in the map script? I tried getting in contact with the creator of the mod for like two weeks, but I still get no response... Edited May 18, 2014 by TheThingy Link to comment Share on other sites More sharing options...
In45do Posted May 18, 2014 Share Posted May 18, 2014 @xNCx That might be the cause the script won't work. I can give you more idea to make it work by spawning the ped and not restrict them in sphere. But I'm afraid my steps is not working on GTA VC. The best way is contact someone who experience at coding GTA VC. Maybe @Ashwin.Star can help you. Link to comment Share on other sites More sharing options...
DoubleVision Posted May 18, 2014 Author Share Posted May 18, 2014 (edited) Thanks, In45do. But, Ashwin can't help me, because he's very busy with projects, etc. I have a question. Is it possible to extract the zombie spawning script from the following: http://www.moddb.com/mods/gta-raccoon-city-stories I just want zombies spawning everywhere I go. Or is it possible to strip both main.scm so that I only have a main.scm to try (no missions, and no other files required to play?). Edit 1: In45do: do you know how to make it to spawn like 6-8 Peds and attack player, then when those Peds die another different 6-8 Peds will spawn to attack player, too? But only make the next group of Peds spawn after you get rid of the previous group or when you're not in the same area as them? What I'm thinking of is something like in the GTA VC Long Night videos, but with less zombies, like maybe 6-8 Peds spawning at a time. At first I wanted it for GTA SA, but it wasn't working well, because the same exact few types of peds only spawned and the dessert eagle would make my game freeze. everytime I was running the zombie script-usually seemed to happen when the zombie peds were bleeding & I reloaded. Edited May 18, 2014 by TheThingy Link to comment Share on other sites More sharing options...
In45do Posted May 18, 2014 Share Posted May 18, 2014 Why don't you make it to CLEO version first? Link to comment Share on other sites More sharing options...
DoubleVision Posted May 19, 2014 Author Share Posted May 19, 2014 The reason is because later I want to play it on xbox. If it works on PC it will work on xbox-as long as it's installed in the main.scm & not as cleo. Xbox doesn't support cleo. But, it does support the mod installed in the main.scm. I just have to transfer over the modded main.scm and play it. I already did this for GTA SA for xbox, but I was looking for a mod that spawns around 15 zombie peds at a time (each different group of peds consisting of different Ped Id's). Link to comment Share on other sites More sharing options...
In45do Posted May 20, 2014 Share Posted May 20, 2014 I see what you did there. I think it is better for you to know scripting CLEO first, I said that because the basic scripting was in CLEO. But, it's up to you because I don't know how GTA VC script works. Link to comment Share on other sites More sharing options...
DoubleVision Posted May 20, 2014 Author Share Posted May 20, 2014 Yeah, I understand what you mean. But, I'm really a goofball about getting to learn scripting. I only get little things. I have a question: I installed a zombie mod into gta sa main.scm. But, it always only spawns the same old few Peds. The script is made to catch random ped in sphere in radius and make them attack you. If the radius is bigger then the game will spawn less type of ped id's? I already tried bumping up the ped count in popcycle.dat, but my game keeps crashing probably because the zombies are bleeding and plus I have them as dismemberment possible which causes even more blood when shot at. All this causes it to freeze near the beach area (santa maria beach) where there's all those palm trees. Is there a way to make the zombies be bleeding while alive, but, not bleed when you kill them? Link to comment Share on other sites More sharing options...
In45do Posted May 21, 2014 Share Posted May 21, 2014 Is there a way to make the zombies be bleeding while alive, but, not bleed when you kill them? I don't know if it works but... just try it. :Bleeding0332: set_actor [email protected] bleeding 1 :Death_Checkwait 0 msif0118: actor [email protected] deadjf @Death_Check0332: set_actor [email protected] bleeding 001C2: remove_references_to_actor [email protected] // Like turning an actor into a random pedestrianjump @First_Thread // just a random thread That part of code is useful to deactivate the bleeding. Link to comment Share on other sites More sharing options...
DoubleVision Posted May 21, 2014 Author Share Posted May 21, 2014 (edited) Thank, you. Is this for GTA SA? I'll be more detailed (sorry) for example; I added the following script in gta sa: 0446: set_actor [email protected]([email protected],16i) dismemberment_possible 1 ///1 means yes will lose head and blood appears I notice that when shot in the head with desert eagle, shotgun, assault rifle, etc, the head dissapears and a lot of blood appears. Is there a way to literally not have the blood appear when this happens? like maybe have them just lose head, but no blood? I'll probably have to edit the particle.txd, correct? Thanks again for helping me. Then, again I'll probably have to disable dismemberment? I did that to a different mod and it did seem to help reduce lag. Edited May 21, 2014 by TheThingy Link to comment Share on other sites More sharing options...
In45do Posted May 22, 2014 Share Posted May 22, 2014 Which "blood appears" you talking about? There are many variation of blood in GTA SA. Link to comment Share on other sites More sharing options...
DoubleVision Posted May 22, 2014 Author Share Posted May 22, 2014 It appears right when the Peds' head is shot off. There's this splurt that appears. Link to comment Share on other sites More sharing options...
In45do Posted May 23, 2014 Share Posted May 23, 2014 I'm not sure but there's no way you can deactivate that effect. Unless you do something on effect.fxp. Link to comment Share on other sites More sharing options...
DoubleVision Posted May 24, 2014 Author Share Posted May 24, 2014 Hey, that sounds like a good idea. I just need to find out what the effect is called in the effect.fxp file. Thanks again. 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