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

iFarbod

How to hold heavy weapons one hand similar other peds?

Recommended Posts

iFarbod

How to hold heavy weapons one handed, like the other peds?

I already searched and didn't find anything. If there's a script for this already, It'd be appreciated.

Edited by iFarbod

Share this post


Link to post
Share on other sites
iFarbod

2zhmvpi.png

Here's an example from DYOM.

Edited by iFarbod

Share this post


Link to post
Share on other sites
iFarbod

This is another example :

in San andreas multiplayer (sa-mp.com) :

server : 142.4.201.246:7777 gang war deathmatch.

 

Player hold heavy weapons one hand (Flamethrower, Chainsaw, Minigun, Rocket launcher, AK-47, M4, Combat Shotgun, Pump Action Shotgun and more ...)

Share this post


Link to post
Share on other sites
pogo_01

Tip: change the anim.

Share this post


Link to post
Share on other sites
iFarbod

Doesn't work. Please check and test that server to know what I've meant with this.

Edited by iFarbod

Share this post


Link to post
Share on other sites
pogo_01

You can change skin anim but I don't know how. :(

I am working on it.

Share this post


Link to post
Share on other sites
riddick1994

In SA-MP you've got a function:

UsePlayerPedAnims();

which is called in INIT callback of the script. If you don't call this function ALL the classes(skins) are running on their own style, like guy with the roller skates is 'running' with their animation, as all other skins they're holding weapon in one hand, like all normal peds in GTA SA.But as we know Carl Johnson has his own animations, BUT he's holding weapon in one hand and he can RUN with the weapon after NOT calling that function. That's how it works in SA-MP.

 

If you actually call this function, all the peds are using CJ's animation set in Multi-Player.

 

That might be a hint for Single-Player maybe. Just guessing.. :) Notice, that gang mates are using CJ's running animation if they're too from the player.

Edited by riddick1994

Share this post


Link to post
Share on other sites
iFarbod

You can change skin anim but I don't know how. :(

I am working on it.

Changing the player model doesn't work as well.

Edited by iFarbod

Share this post


Link to post
Share on other sites
Lass2248

I think it's possible by making a Cleo script that checks if the player is armed with M4, AK,etc... and presses the key to run(mostly SPACE bar) the player will perform the animation of a panicked ped WHILE holding M4, AK,etc.

Share this post


Link to post
Share on other sites
iFarbod

I think it's possible by making a Cleo script that checks if the player is armed with M4, AK,etc... and presses the key to run(mostly SPACE bar) the player will perform the animation of a panicked ped WHILE holding M4, AK,etc.

not just for run, for all works

Share this post


Link to post
Share on other sites
Shmoopy

1.Open weapon.dat

You should notice some info tags left by Rockstar , this is what you are looking for :

# 1stDigit: CANAIM:1 AIMWITHARM:2 1STPERSON:4 ONLYFREEAIM:8
# 2ndDigit: MOVEAIM:1 MOVEFIRE:2
# 3rdDigit: THROW:1 HEAVY:2 CONTINUOUSFIRE:4 TWIN_PISTOL:8
# 4thDigit: RELOAD:1 CROUCHFIRE:2 RELOAD2START:4 LONG_RELOAD:8
# 5thDigit: SLOWSDWN:1 RANDSPEED:2 EXPANDS:4

 

(Rockstar didn't give all of the ids)

$ FTHROWER AREA_EFFECT 4.0 5.1 361 -1 7 flame 500 25 0.98 0.0 0.40 1 0 1.0 1.0 11 12 11 11 12 11 35 30238 0.5 0.0075 1000.0 2.0

 

1stDigit: 3
2ndDigit: 0
3rdDigit: 2
4thDigit: 3
5thDigit: 8

 

2.Go to the M4 Section

$ M4 INSTANT_HIT 40.0 90.0 356 -1 5 riflebad 50 30 0.74 -0.04 0.13 0 0 0.45 0.9 6 10 7 6 10 7 99 7001
$ M4 INSTANT_HIT 45.0 90.0 356 -1 5 rifle 50 30 0.74 -0.04 0.13 1 200 0.65 1.0 6 10 7 6 10 7 99 7011
$ M4 INSTANT_HIT 50.0 90.0 356 -1 5 rifle 50 30 0.74 -0.04 0.13 2 999 0.80 1.1 6 10 7 6 10 7 99 7031


First line is for Amateur skill

Second line is for Professional skill

Third line is for Hitman skill

 

3. Play around with those numbers and see what happens .

Share this post


Link to post
Share on other sites
Lass2248

 

I think it's possible by making a Cleo script that checks if the player is armed with M4, AK,etc... and presses the key to run(mostly SPACE bar) the player will perform the animation of a panicked ped WHILE holding M4, AK,etc.

not just for run, for all works

 

Then do the thing i already said but instead of the run key change it into the WASD or Arrows Key , or if you want just set it if the player pressed the run key or WASD or Arrows Key.

Share this post


Link to post
Share on other sites
iFarbod

Isn't there a way to change the behavior of the player actor to a Gang2 (gsf) or Cop or CivMale?

Edited by iFarbod

Share this post


Link to post
Share on other sites
Lass2248

not a way to change behaviour of the player actor to a Gang2 (gsf) or Cop or CivMale?

You mean like using their walking animation and such?

Share this post


Link to post
Share on other sites
iFarbod

 

not a way to change behaviour of the player actor to a Gang2 (gsf) or Cop or CivMale?

You mean like using their walking animation and such?

 

yes similar UsePlayerPedAnims(); in samp. ont a way in cleo??

 

Actor.Create(#FAM3, Gang2, 0.0, 0.0, 0.0)

or [email protected] = Actor.Create(CivMale, #NULL, 0.0, 0.0, 0.0)

or [email protected] = Actor.Create(Cop, #LAPD1, 0.0, 0.0, 0.0)

NOT a Way to re- emulate the player actor in player char?

 

$PLAYER_CHAR = Actor.Create(#FAM3, Gang2, 0.0, 0.0, 0.0)

$PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)

 

or this works??

Share this post


Link to post
Share on other sites
Lass2248

 

 

not a way to change behaviour of the player actor to a Gang2 (gsf) or Cop or CivMale?

You mean like using their walking animation and such?

 

yes similar UsePlayerPedAnims(); in samp. ont a way in cleo??

 

Actor.Create(#FAM3, Gang2, 0.0, 0.0, 0.0)

or [email protected] = Actor.Create(CivMale, #NULL, 0.0, 0.0, 0.0)

or [email protected] = Actor.Create(Cop, #LAPD1, 0.0, 0.0, 0.0)

NOT a Way to re- emulate the player actor in player char?

 

$PLAYER_CHAR = Actor.Create(#FAM3, Gang2, 0.0, 0.0, 0.0)

$PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)

 

or this works??

 

What your script only do is create actors in the coordinates but does not change the animation.

Share this post


Link to post
Share on other sites
dpgbv

The only way I used to do this is installing SA-MP 0.2.1 and then click Launch Debug ! It will launch the single player and CJ holds all heavy weapons like AK-47, M4 in one hand !

Share this post


Link to post
Share on other sites
4sinayousefi

If you have Ryosuke's anim manager you can do this:

1- open ped.ifp

2- copy IDLE_stance

3- delete IDLE_armed

4- rename the copied version of IDLE_stance to IDLE_armed

Share this post


Link to post
Share on other sites
dpgbv

Seriously ? I must try this !

Edited by dpgbv

Share this post


Link to post
Share on other sites
dpgbv

It works but I'll try to do this even when CJ is moving ! So he will hold AK-47 or other weapons in one hand when he runs or sprint ! Or walks !

Edited by dpgbv

Share this post


Link to post
Share on other sites
dpgbv

Oooook so I made CJ hold any weapons I want (even rocket launcher or minigun) in one hand, and even walk or run with them, but you can't sprint with them ! BUT there is a problem, if I type the cheat buffmeup, CJ holds the heavy weapons in two hands because there is a different anim for CJ when he is worked out than normal ! Does anyone know which file I must delete and replace to change CJ's running and walking when he has max muscle with the running and walking when he is normal ?

Share this post


Link to post
Share on other sites
4sinayousefi

You never can sprint with them because developers scripted these weapons like RPG, AK47, M4 etc. to make the playable character unable to sprint with, unless using in45do's sprint mod with heavy weapons. I don't know the exact URL of this mod, nor where to find apart from his own blog, simply can be found by searching his name in google.

Also for fat and muscle anims, you must open up anim.img with Ryosuke's anim manager, then find fat.ifp and/or muscular.ifp, and do the same thing you did with low muscle, low fat anims, now anims' names start with FAT/Mscle/Muscle

Share this post


Link to post
Share on other sites
dpgbv

Ok I'll try with fat and muscular too !! Thank you very much for info man !

Share this post


Link to post
Share on other sites
dpgbv

Ok so I tried to do the same with fat.ifp and muscular.ifp but it doesn't work ! I mean, I think I don't know how to edit those files properly !

I tried for example in ped.ifp to rename all the anims like in muscular.ifp and use the same anims like before save the file somwhere in pc then open anim.img with IMG Tool 2.0 and replace the file ! But nothing happens the anim is still the same !

4sinayousefi if you know how to edit this please make it and upload the anim.img file somwhere, so we can complete this mod !

Edited by dpgbv

Share this post


Link to post
Share on other sites
dpgbv

I HAVE MADE IT !!! I found the muscular beta file here: http://www.gtainside.com/en/sanandreas/mods/70336-muscular-ifp-beta/! Then I copied the same file and named it fat.ifp, then using IMG Tool 2.0 I replaced fat.ifp and muscular.ifp in gta3.img then rebuilded the archive ! SO IT WORKS ! Now I will try to make CJ run somehow with Shotgun, Combat Shotgun, AK-47 and M4 ! Then I will put a download link !

4sinayousefi I will credit you too in this mod for giving me the necessary information ! Thank you !

I will upload the mod soon !

Share this post


Link to post
Share on other sites
4sinayousefi

A pleasure, you also made me turn out of laziness and reinstall my long-time crashing copy of the game. :D

Share this post


Link to post
Share on other sites
dpgbv

It will take some time to release the mod, I have to verify from bugs on missions !

Share this post


Link to post
Share on other sites
dpgbv

Well I tested it ! It works but the fat.ifp file is causing some bugs in 2 missions of the whole game ! In nines and AK's after the cutscene with CJ. Smoke and Emmet, the screen remains black ! In Home Coming after you get in the red marker at the precinct same thing happens ! So just don't make CJ fat and this mod will work ! I'll put a download link soon

Share this post


Link to post
Share on other sites
4sinayousefi

HERE IS THE DOWNLOAD LINK ! http://www.4shared.com/rar/yCP6VGE2ba/Heavy_Weapons_In_One_Hand_Mod.html... I think you need an account on 4shared to download ! Then enter the link press download, and after that a screen will load, wait 20 seconds and press free download !

Don't you place it also in gta garage or other modding websites? I recommend you to do so because your mod become more popular, more downloads also will be acquired and your efforts will not be absurd as maybe the only one who would download this could be iFarbod or maybe someone who wanna do this in game search for it and may face it and download it although it slowly happens.

Also I become more popular :D (JUST KIDDING)

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.


  • 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.