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

ffzero58

ANIMATION research - allowing Ped to retain control while playing anim

Recommended Posts

ffzero58

I've been testing this on and off - the end result I'd like to arrive at is to allow the playerped to retain control while playing and animation (or during some task). I know this is being actively being researched by some mod authors but hopefully we can gather what we found and find a way.

 

Currently, these are the known behaviors I've found:

- When the playerPed is given TASK_PLAY_ANIM or SCENARIO, all control is lost (keyboard or controller input). Occurs when walking or driving. This is frustrating as I just want to use facial, head, arm/hand animations and even this causes loss of all control.

- During auto driving tasks, playing an ANIM will cause the car to lose auto drive and no control from player

 

I think I saw a mod that allowed an anim to be played but kept control - I think it was the telekinesis mod (not sure where it is now).

 

Any insights welcome!

Share this post


Link to post
Share on other sites
FixingG00D

Are scenarios completly different thing from play animations? Is a scenario where animations (enter, base, exit, idle a, idle b) are stringed together, timed and associated props / environment detection takes place? e.g repair vehicle scenario.

 

Do these still use anims from animation dictionary?

 

Curious to know if player object detection is possible, so they can sit on seating objects around the environment e.g chair at a cafe like peds do.

 

I find it annoying that when using mods to play an animation isolated (assuming this to be TASK_PLAY_ANIM), that you have no control while it is performed. Seen this with the walking animations that just auto move player forwards.

 

As to your question, not sure i can help, but i do remember seeing a comment where someone requested this feature and said TransmetTeamTrainer somehow (perhaps by accident) allowed you to move or rotate your player while animations played.

 

I can't say if this is correct, but maybe worth asking Transmet dev for confirmation.

 

Someone else pointed out, and i checked this too, that some animations can play, while allowing you to get your phone out. Think this might apply to walking animations. I definitely recall the other day doing this while playing an anim from a dict via actor manager mod.

Share this post


Link to post
Share on other sites
ffzero58

Answers in bold:

 

 

Are scenarios completly different thing from play animations? Is a scenario where animations (enter, base, exit, idle a, idle b) are stringed together, timed and associated props / environment detection takes place? e.g repair vehicle scenario.

 

While not completely different, you are correct that they are "scripted".

 

Do these still use anims from animation dictionary?

 

No anim_dicts are ever called.

 

For example:

AI.CLEAR_PED_TASKS(playerPed)
AI.TASK_START_SCENARIO_IN_PLACE(playerPed, scene, 0, true)

 

Curious to know if player object detection is possible, so they can sit on seating objects around the environment e.g chair at a cafe like peds do.

 

Yes, it is possible but some scripting is required - I think. I did not go through all of the native functions but I did not find a sitting one specifically.

 

I find it annoying that when using mods to play an animation isolated (assuming this to be TASK_PLAY_ANIM), that you have no control while it is performed. Seen this with the walking animations that just auto move player forwards.

 

As to your question, not sure i can help, but i do remember seeing a comment where someone requested this feature and said TransmetTeamTrainer somehow (perhaps by accident) allowed you to move or rotate your player while animations played.

 

I can't say if this is correct, but maybe worth asking Transmet dev for confirmation.

 

Someone else pointed out, and i checked this too, that some animations can play, while allowing you to get your phone out. Think this might apply to walking animations. I definitely recall the other day doing this while playing an anim from a dict via actor manager mod.

 

That is the hope. Like facial animations - why can't they be isolated from the user? I see PLAY_FACIAL_ANIM but I have not had a chance to play with this yet. Busy week.

Share this post


Link to post
Share on other sites
Vrock_wave

if I understand you want to play the animation and move?

it is possible with commando AI.TASK_PLAY_ANIM(PLAYER.PLAYER_PED_ID(), "missheist_agency3aig_18", "say_hurry_up_d", 2.0, -2.0, -1, 48, 0, true, false, true);

 

7 parameter in the command gives the variations of playing the animation, you have to find the right for myself, I checked the numbers from 0 to 100

 

If you put the number (48) while playing the animation you get animation torso and legs can follow any responses to walk freely are not involved in animation

Number plays a lot of different example is a loop or a sharp loop or even freeze in a pose after a few seconds, etc.

for facial animation playback, use this

PED.PLAY_FACIAL_ANIM(PLAYER.PLAYER_PED_ID(), "0239_3_mini_8_3_face", "[email protected][email protected][email protected]@");

example in the video I just go and play the animation for a player:

https://www.youtube.com/watch?v=pXQUwffkSLo

https://www.youtube.com/watch?v=WavVn3uQEGI

Edited by Vrock_wave

Share this post


Link to post
Share on other sites
sodanakin

Learning something everyday thanks Vrock-Wave !
Have you possibly listed the 100 you tried ? Would be very helpful with setting up anims! :D.

Share this post


Link to post
Share on other sites
Vrock_wave

Learning something everyday thanks Vrock-Wave !

Have you possibly listed the 100 you tried ? Would be very helpful with setting up anims! :D.

the most important for me:
2 fall asleep in the middle of the anima as a statue
3 repetition of the initial chunk of the animation
5 full repetition of animation
8 smooth transition to the idle animations
9 repetition of animation with a smooth transition between animations
10 soft transitions and poses zameranie
16 feet from the turn off the animation they are not controlled
17 repetition of animation to disconnect the legs are not controlled
18 freeze in a pose but breathe naturally
19 repetition of animation without legs smoothly
32 legs get a little animation and torso repetition of animation
32 does not move but you can get the animation to shoot
33 repetition of the animation and you can shoot
34 freeze completely and shoot leg work but then you can not go
35 repetition of animation with smooth transition
36 legs and torso torso animation then just a repetition of animation
40 with the possibility of a repetition of the animation to fire if the animation is reset
48-49 with the possibility of a repetition of the animation walk
50 freeze animation with the ability to walk
52 once smoothly with the ability to walk
better check yourself to see how it works
Edited by Vrock_wave

Share this post


Link to post
Share on other sites
sodanakin

 

Learning something everyday thanks Vrock-Wave !

Have you possibly listed the 100 you tried ? Would be very helpful with setting up anims! :D.

the most important for me:
2 fall asleep in the middle of the anima as a statue
3 repetition of the initial chunk of the animation
5 full repetition of animation
8 smooth transition to the idle animations
9 repetition of animation with a smooth transition between animations
10 soft transitions and poses zameranie
16 feet from the turn off the animation they are not controlled
17 repetition of animation to disconnect the legs are not controlled
18 freeze in a pose but breathe naturally
19 repetition of animation without legs smoothly
32 legs get a little animation and torso repetition of animation
32 does not move but you can get the animation to shoot
33 repetition of the animation and you can shoot
34 freeze completely and shoot leg work but then you can not go
35 repetition of animation with smooth transition
36 legs and torso torso animation then just a repetition of animation
40 with the possibility of a repetition of the animation to fire if the animation is reset
48-49 with the possibility of a repetition of the animation walk
50 freeze animation with the ability to walk
52 once smoothly with the ability to walk
better check yourself to see how it works

 

Very nice! I will ! Theres quite some helpful ones between there!

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.


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