Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

How to make my peds's running like walking


BADASSVERCETTI
 Share

Recommended Posts

BADASSVERCETTI

Im making a zombie mod for vice city.The peds are the zombies.When they attack me i shoot them with a weak weapon (Pistol,Mac etc.) and they start running away.I want to make all kinds of run types they are using to walking.I want them to start walking like that poor drunk guy in vice city that appears at night.Or if its possible when i shoot them they don't start walking away and continue eating me and coming to me.Thanks by the way.

Link to comment
Share on other sites

Well... in my leatherface, jason and ghost CLEO for VC mod (private use only) i did this this way:

 

 

[email protected] = Actor.Create(Special, #SPECIAL01, [email protected], [email protected], [email protected])Actor.Angle([email protected]) = 180.0Actor.Health([email protected]) = 7500002AB: set_actor [email protected] immunities 0 0 0 0 0 0446: set_actor [email protected] dismemberment_possible 0 0319: set_actor [email protected] wander_state_to 1 011A: set_actor [email protected] flags 1 01B2: give_actor [email protected] weapon 11 ammo 1 // Load the weapon model before using this 02E2: set_actor [email protected] weapon_accuracy_to 15 01CC: actor [email protected] kill_player $PLAYER_CHAR 0489: set_actor [email protected] muted 1 0332: set_actor [email protected] bleeding_to 1 

 

 

First you create some actor, set his health immunities angle etc. ...i dont remember exactly what does "0319: set_actor [email protected] wander_state_to 1" do, but it seems it has something to do with fearness maybe however opcode database says that it does nothing, ...but the most important opcodes that will help in your case are

 

"011A: set_actor [email protected] flags 1" and "01CC: actor [email protected] kill_player $PLAYER_CHAR"

 

they say that "011A" sets actor hostility, but i didnt notice if this actually makes real differences in actors behaviour, i mean if he is ordered by "01CC" to kill player char, the actor will try to kill player char all time no matter if you shoot or punch this "zombie" actor.

 

About zombie actor relations with on example gangs or police it depends if this zombie is one of other gang character model, so then it will attack some gangs when you are not in his range or run away from PIGs on example, and similar to this if your zombie will be one of VC agents form police cheetah, he will chase (on foot mostly) criminals when you wont be in his range and there will be some criminal (thiefs on example). I think you want to achieve an effect when zombies are only chasing you right? So you wouldnt be happy if they would run away bcz theres a PIGs security in area... . This is confirmed because i tried many times to achieve "actor ONLY ON player action" and right now i know that the best thing to do in case if you want to set some actor to kill player and only player (you) is to spawn him as SPECIAL ACTOR , then he is fearless to ANY other peds ingame and then you can safely set his references toward the player char (kill, follow etc. ) and the actor wont act in previously definied way by ped files in DATA catalog, when spawned/present on some gang area or police or explosions or anything that would affect his behaviour to a coward. But there s a limitation as far as i remember you can put maximum up to 16 spcial actors at one moment ingame, so dont forget to destroy special actor(s) and release its model(s) if dont needed after finishing you mission or script on example... . And if you are using special actors you can add (NOT REPLACE EXISTING MODELS like in case of spawning NOT special actors) brand new custom models to gta3.img, named however you want them to, on example 'ZOMBIE.dff & *.txd'. At least this method i am using for such purposes ...

 

As for the walking style , there s an opcode:

 

0245: set_actor $2099 walk_style_to 46 

 

But as far as i know there is no list of which walking style is which, ...and up to this, i dont know for sure if you wouldnt have to script zombie actor first to walk on player position , because i dont know if using "kill player" opcode makes custom actor to RUN towards the player to kill him, ...and running is no walking, you know what i mean

 

Edited by MW_29
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
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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