Jump to content

[VC] Custom animations in your missions


Shagg_E

Recommended Posts

Many people asked me about this, so I decided to make a mini-tutorial here.
 

Here's the way to play new anims in VC (you don't need CLEO opcodes for doing this):
 

As you know, there are 3 extra anims in vice city, that needs to be loaded:  RIOT.ifp(animation 29 for opcode 0372), STRIP.ifp(32 for 0372) and LANCE.ifp(34). So, you can just(for example) copy LANCE.ifp animation, rename it into NAME.ifp, change animation inside(but don't rename anim inside) and put this into gta3.img. Then you will able to load NAME.ifp as LANCE.ifp, i.e. as animation 34 for opcode 0372.

But, firstly, you should correctly load this new anim:

load_animation 'LANCE'  // here you loaded default anim 34
wait 100 // important delay
04EF: release_animation 'LANCE'  // here you unloaded default 34 anim(I know, this looks idiotic)
wait 0 // important delay
load_animation 'NAME'  // then you loaded new anim 34
wait 100 // important delay
04EF: release_animation 'NAME'  // here you unloaded new 34 anim
wait 0 // important delay
load_animation 'NAME'  // then you loaded new anim 34 again
wait 100 // important delay


Don't ask, why it works, but it works!(I just was lucky to found this)
When you're done, you should correctly unload new anim:

04EF: release_animation 'NAME'
wait 0
load_animation 'LANCE'
wait 100
04EF: release_animation 'LANCE'



Also, instead of using opcode 0372, you can play your anims another way (but you'll need CLEO for this):
https://pastebin.com/DNNYTWTP

P.S.

This method doesn't work with MVL and SilentPatch!!!
(thx for the info to Jennawright and Bryxanov1337)

UPD:
Aaand some examples:
https://libertycity.net/files/for-modmakers/186158-custom-animations-playback-in-vice-city.html

Edited by Shagg_E
lil fix
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
  • 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.