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

Happy Holidays from the GTANet team!

web swingig animation


cloud_strife94
 Share

Recommended Posts

cloud_strife94

I was making the animation of spider-man ( biggrin.gif ) but i have some problems:

I started modificating an animation of 'ped.ifp', I saved it as new animation (for being sure it works, I opened it in 3d studio max and it worked fine) and after it I created the cleo script.

 

{$CLEO .cs}

:Airswing

03A4: name_thread 'Airswing'

 

:AIRSWING_11

0001: wait 0 ms

00D6: if

0256: player $PLAYER_CHAR defined

004D: jump_if_false @AIRSWING_11

00D6: if

0AB0: key_pressed 8//-----------------key = Backspace

004D: jump_if_false @AIRSWING_11

04ED: load_animation "webswing"

 

:AIRSWING_54

0001: wait 0 ms

00D6: if

04EE: animation "webswing" loaded

004D: jump_if_false @AIRSWING_54

083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 20.0

0001: wait 1000 ms

0812: AS_actor $PLAYER_ACTOR perform_animation "ARRESTgun" IFP_file "webswing" 1.0 loopA 1 lockX 1 lockY 1 lockF 1 time -2 // versionB

 

:AIRSWING_141

0001: wait 0 ms

00D6: if

0256: player $PLAYER_CHAR defined

004D: jump_if_false @AIRSWING_141

083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 2.0 2.0

00D6: if and

8AB0: not key_pressed 8

0611: actor $PLAYER_ACTOR performing_animation "ARRESTgun"

004D: jump_if_false @AIRSWING_221

0002: jump @AIRSWING_141

 

:AIRSWING_221

0792: disembark_instantly_actor $PLAYER_ACTOR

04EF: release_animation "webswing"

0001: wait 1000 ms

0002: jump @AIRSWING_11

 

When I try to select the backspace button it never goes, hope you can help me, thanks in advance.

P.S.=sorry for my bad english.

P.S.=it's for San Andreas.

Edited by cloud_strife94
Link to comment
Share on other sites

 

modificating an animation of 'ped.ifp', I saved it as new animation

When I try to select the backspace button it never goes, hope you can help me, thanks in advance.

you want to run perform_animation "new animation" IFP_file "ped" ?

but your script use this

 

perform_animation "ARRESTgun" IFP_file "webswing"

 

Link to comment
Share on other sites

cloud_strife94
modificating an animation of 'ped.ifp', I saved it as new animation

When I try to select the backspace button it never goes, hope you can help me, thanks in advance.

you want to run perform_animation "new animation" IFP_file "ped" ?

but your script use this

 

perform_animation "ARRESTgun" IFP_file "webswing"

 

the animation 'ARRESTgun' is not from 'ped.ifp' but 'webswing.ifp'. How can I correct the script?

Link to comment
Share on other sites

cloud_strife94

for trying to understand the error I tryed the example-script that Zaz made in his cleo tutorial, this one:

'Animation in air needs to move the actor with opcode 083C: and to use animation code 0812: with -2 as last parameter

Script below let the player swimming in air by key_press'

CODE

{$CLEO .cs}

:Airswim

03A4: name_thread 'Airswim'

 

:AIRSWIM_11

0001: wait 0 ms

00D6: if

0256: player $PLAYER_CHAR defined

004D: jump_if_false @AIRSWIM_11

00D6: if

0AB0: key_pressed 8//-----------------key = Backspace

004D: jump_if_false @AIRSWIM_11

04ED: load_animation "SWIM"

 

:AIRSWIM_54

0001: wait 0 ms

00D6: if

04EE: animation "SWIM" loaded

004D: jump_if_false @AIRSWIM_54

083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 20.0

0001: wait 1000 ms

0812: AS_actor $PLAYER_ACTOR perform_animation "SWIM_BREAST" IFP_file "SWIM" 1.0 loopA 1 lockX 1 lockY 1 lockF 1 time -2 // versionB

 

:AIRSWIM_141

0001: wait 0 ms

00D6: if

0256: player $PLAYER_CHAR defined

004D: jump_if_false @AIRSWIM_141

083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 2.0 2.0

00D6: if and

8AB0: not key_pressed 8

0611: actor $PLAYER_ACTOR performing_animation "SWIM_BREAST"

004D: jump_if_false @AIRSWIM_221

0002: jump @AIRSWIM_141

 

:AIRSWIM_221

0792: disembark_instantly_actor $PLAYER_ACTOR

04EF: release_animation "SWIM"

0001: wait 1000 ms

0002: jump @AIRSWIM_11

 

 

but this one never works. confused.gif

Edited by cloud_strife94
Link to comment
Share on other sites

 

for trying to understand the error I tryed  the example-script that Zaz made in his cleo tutorial, this one:

'Animation in air needs to move the actor with opcode 083C: and to use animation code 0812: with -2 as last parameter

Script below let the player swimming in air by key_press'

CODE

{$CLEO .cs}

:Airswim

03A4: name_thread 'Airswim'

 

:AIRSWIM_11

0001: wait 0 ms

00D6: if

0256:  player $PLAYER_CHAR defined

004D: jump_if_false @AIRSWIM_11

00D6: if

0AB0:  key_pressed 8//-----------------key = Backspace

004D: jump_if_false @AIRSWIM_11

04ED: load_animation "SWIM"

 

:AIRSWIM_54

0001: wait 0 ms

00D6: if

04EE:  animation "SWIM" loaded

004D: jump_if_false @AIRSWIM_54

083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 20.0

0001: wait 1000 ms

0812: AS_actor $PLAYER_ACTOR perform_animation "SWIM_BREAST" IFP_file "SWIM" 1.0 loopA 1 lockX 1 lockY 1 lockF 1 time -2 // versionB

 

:AIRSWIM_141

0001: wait 0 ms

00D6: if

0256:  player $PLAYER_CHAR defined

004D: jump_if_false @AIRSWIM_141

083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 2.0 2.0

00D6: if and

8AB0:  not key_pressed 8

0611:  actor $PLAYER_ACTOR performing_animation "SWIM_BREAST"

004D: jump_if_false @AIRSWIM_221

0002: jump @AIRSWIM_141

 

:AIRSWIM_221

0792: disembark_instantly_actor $PLAYER_ACTOR

04EF: release_animation "SWIM"

0001: wait 1000 ms

0002: jump @AIRSWIM_11

 

 

but this one never works.  confused.gif

why not? did you forget to press backspace? works fine for me

remove all your other scriptmods and try again

 

but why do you need it to test your anim in the air?

take this simple anim test script from the tutorial:

press backspace to play Tai Chi anim

then come back again

 

{$CLEO .cs}:IFP_PARKthread 'IFPPARK':IFP_PARK_1wait 0if0256:   player $PLAYER_CHAR definedjf @IFP_PARK_1if0AB0:   key_pressed 8//-----------------key = Backspacejf @IFP_PARK_104ED: load_animation "PARK":IFP_PARK_5wait 0if04EE:   animation "PARK" loadedjf @IFP_PARK_50812: AS_actor $PLAYER_ACTOR perform_animation "Tai_Chi_Loop" IFP_file "PARK" 1.0 loopA 1 lockX 1 lockY 1 lockF 0 time -1 // versionB0001: wait 1000 ms:IFP_PARK_7wait 0if0256:   player $PLAYER_CHAR definedjf @IFP_PARK_12if and8AB0:   not key_pressed 8//-----------------key = Backspace80E1:   not player 0 pressed_key 15jf @IFP_PARK_12jump @IFP_PARK_7:IFP_PARK_120792: disembark_instantly_actor $PLAYER_ACTOR04EF: release_animation "PARK"0001: wait 1000 msjump @IFP_PARK_1

 

Link to comment
Share on other sites

cloud_strife94

I opened sunny builder as administrator (maybe I need because of windows 7) and the tai chi with the swim scripts work fine but my script never works.

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.