Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
Rugz007

Simplest Zombie Script

Recommended Posts

Wiebrendh

 

 

 

@Maro Hannover - The Game is not about stealing its about your passsion

@leftas - plz name some of your mods

@lordofbongs - Thankz for suport and zombie script and 1 question

 

is modding your birth right or you work at rock* games or good gifted you with modding ability:D

 

and whats your name on gta 4 mods?

It's not about how much mods you do, it's how you know programming language(es).

My mods are private, I don't like release it for public. And I always don't have ideas what to make.

And about languages.

So from my list first would be C#, because it's easy to do gui and other things.

Then would go c++, cause for hooks and hacking things.

Last would be assembly, it's hard lang. but it worth it. Because it's easier to debug, hooks(for mods/hacks), see why it's crashed. Also you can see you how computer programs works :)

So yea. That's all,

I was away from GTA modding, now I back. And I am playing with GTA scripthook.net... And also my mods are:Switch charchter by aiming at him(I saw this mod in GTA4Mods, but now it's gone), Random force to random car(Just for fun), other I don't remember, because I am not at home right now.

P.S. Yeah, all my posts are long...

 

Regards,

Paul.

 

 

Paul, why dont you release your mods? You look like a pro modder/programmer!

 

I think this is *sarcasm* :D

First of all, I always don't have ideas... My little brother who's playing gta iv(Oh yea I know that he can't play it) suggest me ideas, his last idea was change char. to ped at which you are aiming(First I searched in gta4mods but I didn't found it).

Second, I like to help people in every forum(In day I am visting 10+ forums).

Third, I think my mods would be sh*tty... My coding style is sh*tty(You should see my hack for bf4) :DDD

Fourth, I am still tryin' to do cheats for games. But I don't know do I need to come back to gta4 mods or look for a game for hack...

Fifth, I am not a pro :/ And your mods would be more more more better than mine.. :)

 

Regards,

Paul.

 

 

Wow, it was no sarcasm.. I really thought you were a pro or something haha. Probably through the way you say things.

Share this post


Link to post
Share on other sites
Noox

Even though I dislike hackers (the guys who use the hacks, not who makes them, I consider who makes them smart because of the skill required) I found out that doing things such as a trainer is good for practice, I've done them myself for other SP games and my programming skills became eventually better :)

It's also good because you understand how the data is stored inside the computer but Rugz007 don't do these things, before you do you have to learn all the basic stuff.

Edited by Noox

Share this post


Link to post
Share on other sites
InfamousSabre

So many great posts in this thread for newbie scripters. Should really be archived into some sort of "New to Coding?" thread.

I've been writing games in Game Maker since 2002. GM uses a language called GML which is essentially a dumbed-down version of C#. About a year or so ago, I was looking for a way to break away from GM and GML.

Having just quit one of the best jobs I ever had, I suddenly had a lot of free time. I played GTA IV quite a bit, but just like anything else I own, I knew MUST modify it and make it truly mine.

 

I started on google, searching for gta iv modding. I found gtaforums, gta4-mods, and gtagarage. I dove deep into gtaforums, finding code snippets posted by users that i studied to better understand how scripting worked.
Certain scripters release scripts in .cs files also, and I would tinker with those to figure out how they worked.

I also came across an IRC channel specifically for .net scripting for GTA IV.
I had been on IRC once before, but all the channels I had been to seemed dead. I figured I'd give this one a shot anyway, and I'm glad I did.
Most of what I've learned has come from disassembling other scripts and figuring things out on my own, but when I've had something I just could not figure out, people in the #gtaivnetscripthook IRC channel are usually able to help.

As soon as I felt I had a good enough handle on the language, I started getting script ideas. Convert your human-logic into computer-logic using the tools and methods at your disposal. Thats all it really takes. The ability to learn and adapt. Always keep learning. If something goes wrong, figure it out. Look to yourself before consulting others.

There are many resources for learning .net scripting for GTA IV. All you need to do is search.

Share this post


Link to post
Share on other sites
Rugz007

 

im glad to hear u are studying maro ;)

 

people dont mind helping u if they see u make an effort to help yourself ;)

See its a in game nature it's very hard to change a sky what do you guys think I jus t ask things...No I try them and then I ask

i think making the sky green would require editing the skydome.wdr file

 

hey it's ok to ask questions, especially since u are young... just make an effort to show people you try things by yourself before asking the question

 

show them you are not like some child lost asking where there mommy is ;)

 

you have to prove to people u have knowledge of what u are talking about or nobody is going to sit there and explain every little thing to u ;)

 

and because i feel bad for talking to u harshly since ur just a kid (being a kid is a good thing, not a bad thing, u will realize when u get older)...

 

here is how u make a zombie...

        void CreateZombie()        {            Vector3 position = World.GetNextPositionOnPavement(Game.LocalPlayer.Character.Position.Around(random.Next(50, 70))).ToGround();//finds a ground position to spawn ped            Ped ped = World.CreatePed(position);//spawns a ped, saves to "ped"             ped.CancelAmbientSpeech();//i guess so they dont say their normal speech            ped.Enemy = true;//i guess this means they will attack player??            ped.WillUseCarsInCombat = false;//i guess so they dont get in cars to attack            ped.AlwaysDiesOnLowHealth = true;//i guess so they dont act injured like a normal ped when u dont completely kill            ped.MaxHealth = 1000;//raises max health to 1000, ped default is 100            ped.Health = 1000;//sets health to 1000, making them hard to kill            ped.Money = 0;//so they dont drop money            ped.RelationshipGroup = RelationshipGroup.Criminal;//this is an unused relationshipgroup in the game so i guess it is good to use to avoid game conflicts            ped.Voice = "M_ZOMBIE";//now the ped will say speech from the zombie speech file            GTA.Native.Function.Call("SET_PED_DONT_DO_EVASIVE_DIVES", ped, true);//so the ped wont dive to cover when ur shooting them            GTA.Native.Function.Call("SET_CHAR_DIES_INSTANTLY_IN_WATER", ped, true);//they die if they go in water            GTA.Native.Function.Call("SET_CHAR_WILL_MOVE_WHEN_INJURED", ped, true);//makes the ped move if for some reason an injury stops them            ped.BecomeMissionCharacter();//so the game doesnt delete the ped... u will need to mark them not required for mission when u want them to get deleted            ped.ChangeRelationship(RelationshipGroup.Player, Relationship.Hate);//this allows them to attack the player            ped.Task.AlwaysKeepTask = true;//so they stay on task            ped.BlockPermanentEvents = true;//to avoid conflicts from game events... not exactly sure what those events are            ped.BlockGestures = true;//i guess so they dont play random idle animations            ped.SetPathfinding(true, true, true);// this sets the way they move through world            GTA.Native.Function.Call("SET_PED_GENERATES_DEAD_BODY_EVENTS", ped, true);//i have no idea what this does but it was in a zombie script i saw            GTA.Native.Function.Call("SAY_AMBIENT_SPEECH", ped, "MOAN", 1, 1, 2);//they will just make a moan sound             GTA.Native.Function.Call("SET_ANIM_GROUP_FOR_CHAR", ped, "move_injured_lower");//this ped will now walk injured... like a zombie            GTA.Native.Function.Call("SET_CHAR_MOVE_ANIM_SPEED_MULTIPLIER", ped, 1.4f);//this speeds up their animations which makes them walk faster            ped.Task.PlayAnimation(new AnimationSet("[email protected]"), "bum_fight", 10f, AnimationFlags.Unknown09 | AnimationFlags.Unknown10 | AnimationFlags.Unknown11 | AnimationFlags.Unknown12);//this just plays some bum animation on the upper body and it allows them to rotate... i dont know what flag 10 and 12 does but i just copied it        }

bongs how to make all peds do same thing

Share this post


Link to post
Share on other sites
Noox

Not sure if it's right but this should do it I think

Ped[] totalPeds = World.GetAllPeds();foreach(Ped actualPed in totalPeds){    //do something}

It needs some adjustements otherwise I think the AI will become glitchy.

Share this post


Link to post
Share on other sites
Jitnaught

Not sure if it's right but this should do it I think

Ped[] totalPeds = World.GetAllPeds();foreach(Ped actualPed in totalPeds){    //do something}

It needs some adjustements otherwise I think the AI will become glitchy.

 

Yep. Should work.

Share this post


Link to post
Share on other sites
Rugz007

thanks guys it works :D:)

 

1 more question

 

like M_ZOMBIE sound is there a Laughing sound :D

Share this post


Link to post
Share on other sites
LordOfTheBongs

thanks guys it works :D:)

 

1 more question

 

like M_ZOMBIE sound is there a Laughing sound :D

download open iv or spark iv application... it lets u listen to the speech in the audio files and u can find a sound... google the application names and good luck

Share this post


Link to post
Share on other sites
InfamousSabre

 

thanks guys it works :D:)

 

1 more question

 

like M_ZOMBIE sound is there a Laughing sound :D

download open iv or spark iv application... it lets u listen to the speech in the audio files and u can find a sound... google the application names and good luck

 

You can also get the sound names by opening the sound archive in Andrew's Audio Editor. Why OpenIV doesn't support this yet, I have no idea. They seem to be against doing anything further with sounds at all.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

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