Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial New playeranimtypes | Setting other animations
#1
Rainbow 
Hey guys,
I will tell how to make new player animation types and set other animation to player.

You need:

  • mp/playeranim.script file
  • animtrees/multiplayer.atr
  • mod.csv
  • mp/playeranimtypes.txt
  • Mod Tools
  • Some OMA s
  • Your Animations ( Or from SP - if you using SP model, etc )



1. Place your animations to mp_YOURMOD/xanim ( IF animation is not CUSTOM, ignore it. You can load animations from raw/xanim )
2. Place mp/playeranimtypes.txt to mp_YOURMOD/mp
3. Open this file
4. You will see thoose lines:
5. Add your custom type ( I will use 'zombie' type )
It will looks like this
6. Save file
7. You added type for animations. Now you need to SET animations.
8. Place raw/animtrees/multiplayer.atr file to mp_YOURMOD/animtrees/multiplayer.atr
9. Open this file, you will see many things, stuff. You need to add anims names. This is IMPORTAND.
It will looks like this ( Not full file )
10. Save file
11. Add this line in your mod.csv
Code:
xanim,UR ANIMATION
ex.
Code:
xanim,ai_zomx_idle
12. Save file.
13. Place playeranim.script file to mp_YOURMOD/mp
NOTE: This is main file.
14. Open this file, again... there are too many lines etc.
15. Adding stuff:
Example: I want to add animation for IDLE status:
Code:
blablabla
........................
    idle
    {
        // ZOMBIE ANIMS
        playerAnimType zombie // ANIM TYPE, WHICH YOU ADDED IN TXT file
        {
            both ai_zomx_idle
        }

blablabla
........................

both - All body
torso - Torso

And use other animation for other statuses like run etc.

16. Save file
17. Open your mod.csv and add thoose lines:
Code:
xanim,UR ANIMATION
rawfile,mp\playeranim.script
rawfile,mp\playeranimtypes.txt
rawfile,animtrees\multiplayer.atr

18. USING TYPE
You can use type only with weapons
Open weapon file and search for: playeranimtype/
IT looks like: (hk21_reflex_mp)
Code:
WEAPON_HK21_REFLEX\modeName\\playerAnimType\default\altWeapon\\DualWieldWeapon\\A
Change type and use it !

Result ( NOTE, DOG don't have tag_weapon, so it will crash, do not use worldmodel/ for it )


Thanks for reading!
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#2
How many OMA s do I need?
Reply

#3
Last time I tried using a custom .atr file, it didn't work for me.
I had to do as @Nukem said, to replace the anims there :S


Oh, and this looks very similiar to a COD4 tutorial I've seen long time ago... lol
Reply

#4
(10-16-2011, 16:38)Rendflex Wrote: Last time I tried using a custom .atr file, it didn't work for me.
I had to do as @Nukem said, to replace the anims there :S


Oh, and this looks very similiar to a COD4 tutorial I've seen long time ago... lol

I not stealed it Troll
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#5
(10-16-2011, 16:40)Se7en Wrote:
(10-16-2011, 16:38)Rendflex Wrote: Last time I tried using a custom .atr file, it didn't work for me.
I had to do as @Nukem said, to replace the anims there :S


Oh, and this looks very similiar to a COD4 tutorial I've seen long time ago... lol

I not stealed it Troll

Dodgy
Reply

#6
You not learn english
[Image: MaEIQ.png]
Reply

#7
(10-16-2011, 16:43)Pozzuh Wrote: You not learn english

Confused

I learned 65% by internet, 15% by teacher ( Gibruish one )
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#8
(10-16-2011, 16:45)Se7en Wrote:
(10-16-2011, 16:43)Pozzuh Wrote: You not learn english

Confused

I learned 65% by internet, 15% by teacher ( Gibruish one )

https://www.google.com/search?gcx=w&sour...q=gibruish

[Image: f68d8235.png]

O_O

...That's a cool teacher Awesome
Reply

#9
(10-16-2011, 16:47)Rendflex Wrote:
(10-16-2011, 16:45)Se7en Wrote:
(10-16-2011, 16:43)Pozzuh Wrote: You not learn english

Confused

I learned 65% by internet, 15% by teacher ( Gibruish one )

https://www.google.com/search?gcx=w&sour...q=gibruish

[Image: f68d8235.png]

O_O

...That's a cool teacher Awesome

Troll
Superman
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#10
Thanks se7en, nice post.
crAyon makes no warranty with respect to documents or other information available from this place, assumes no legal liability or responsibility whatsoever for the accuracy, completeness, or usefulness of any such information, and does not represent that its use would not infringe privately owned rights. crAyon disclaims all warranties, express and implied, including the warranties of merchantability and fitness for a particular purpose.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Setting ammo for M320/Shotgun Attachment yokai134 2 2,794 12-12-2012, 07:03
Last Post: yokai134
  Playeranimtypes *so far* d0h! 2 2,333 09-17-2012, 11:32
Last Post: surtek
  Setting Password On Server worldclass 8 6,130 06-30-2012, 22:36
Last Post: RaZ
  Exporting models to maya + bones work how about animations? sayedishot47 11 9,046 04-04-2012, 11:23
Last Post: Nekochan
Brick [Release] [Blender 3D] Create models & animations for CoD with Blender (without Maya)! CoDEmanX 16 12,058 01-12-2012, 04:41
Last Post: Sanya
  [Tutorial] Animations Yamato 6 8,634 12-02-2011, 14:41
Last Post: Yamato
Rainbow [Tutorial] "Importing" animations from CoDs Nekochan 44 22,506 09-09-2011, 23:34
Last Post: d0h!
  Tard needs help with animations and bullet penetrations elmopio 0 1,813 08-16-2011, 14:24
Last Post: elmopio
Rainbow [Release] Finding ALL COD4 animations Scripts18 2 4,378 08-06-2011, 15:53
Last Post: Yamato
  need help with setting up a static ip address ScHmIdTy56789 2 2,335 07-21-2011, 22:39
Last Post: ScHmIdTy56789

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.