UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

custom dragon anim

broken avatar :(
Created 11 years ago
by javipotter
0 Members and 1 Guest are viewing this topic.
2,633 views
broken avatar :(
×
broken avatar :(
Location: escastellon
Date Registered: 14 February 2013
Last active: 5 years ago
Posts
106
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
javipotter's Groups
javipotter's Contact & Social LinksJAVI-POTTERZombieModdingJavipotterjavi potter
hi, ive already have ported a dragon model and made a custom anim for it, i would like the anim load when the game starts but i dont know how to put the anim ingame i mean, if i have to include it in any script and after in mymap.gsc or whatever, but the dragon and the anim are already done. Thx.
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: kh
Date Registered: 9 August 2013
Last active: 6 years ago
Posts
503
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
×
codmoddd1234's Groups
codmoddd1234's Contact & Social Links
Export the anim model and the anim from maya. Make a gdt and include them.
You will need to change some parts to fit but this should be enough to get the anim playing.
Code Snippet
Plaintext
#include maps\_utility;
#include maps\_zombiemode_utility;
#include maps\_anim;
#include common_scripts\utility;
#using_animtree("myanimtree");
//in mapname_patch
//xmodel,anim_waterboss
//rawfile,animtrees/myanimtree.atr
//xanim,waterboss_intro
//xanim,waterboss_roar

animboss()
{
self endon( "disconnect" );
self endon( "death" );
myanimmodel = getent("waterboss","targetname");
trigger = getent ("waterbosstrig","targetname");
level.scr_anim[ "myanimmodel" ][ "waterboss_intro" ] = %waterboss_intro;
level.scr_anim[ "myanimmodel" ][ "waterboss_roar" ] = %waterboss_roar;
myanimmodel UseAnimTree(#animtree);
myanimmodel.animname = "myanimmodel";
while (1)
{
myanimmodel play_other_anim( "waterboss_intro" );
iprintln("doing idle");
trigger waittill( "trigger", other );
myanimmodel play_other_anim( "waterboss_roar" );
iprintln("doing roar");
wait 3; // as long as the attack anims
iprintln("done roar");
}
}
/*------------------------------------
switches anims
myanimmodel = self
------------------------------------*/
play_other_anim( anime )
{
//self endon( "death" );
self SetFlaggedAnimKnobRestart( "blend_anim" + anime, level.scr_anim[self.animname][anime], 1, 0.2, 1 );
self waittillmatch( "blend_anim" + anime, "end" );
}
[code]
broken avatar :(
×
broken avatar :(
Location: escastellon
Date Registered: 14 February 2013
Last active: 5 years ago
Posts
106
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
javipotter's Groups
javipotter's Contact & Social LinksJAVI-POTTERZombieModdingJavipotterjavi potter
hi man and thx for posting but i only want to have an anim ingame not any boss or more than 1 anim, i jsut want when game starts to be able to see the dragon making its anim, and i dont know anything about animtrees or animscripts etc.  can anyone explain me what are and how they work and how make what im asking? maybe im asking too much, anyways thx.
Marked as best answer by javipotter 11 years ago
broken avatar :(
×
broken avatar :(
Location: kh
Date Registered: 9 August 2013
Last active: 6 years ago
Posts
503
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
×
codmoddd1234's Groups
codmoddd1234's Contact & Social Links
https://sites.google.com/site/blendertocod2/xanim

Pretty basic but it works and will give you an outline of what is needed.
There is a script example at the very bottom.
broken avatar :(
×
broken avatar :(
Location: escastellon
Date Registered: 14 February 2013
Last active: 5 years ago
Posts
106
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
javipotter's Groups
javipotter's Contact & Social LinksJAVI-POTTERZombieModdingJavipotterjavi potter
man, thx a lot it worked perfectly, the anim loads, the anim is fucked up but i can solve that, ahhahah thats something to do with maya, easy so nevermind but that tut worked perfectly :D
broken avatar :(
×
broken avatar :(
Location: gbUnited Kingdom
Date Registered: 1 March 2014
Last active: 9 years ago
Posts
26
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
MrCallumKing's Groups
MrCallumKing's Contact & Social LinksMrCallumKing@MrCallumKing
Where did you get the dragon model from? Would love to see a tutorial on this :)

 
Loading ...