Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 12 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 SP Mapping
CoD 4 mapping and level design for single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: How make custom xanims work?
FzBr.d4rk
General Member
Since: Jan 23, 2011
Posts: 86
Last: Jun 7, 2016
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Tuesday, May. 1, 2012 06:49 am
when I try to play a custom animation I receive an error.
have a way to play custom animations in the game?
Share |
paulix90
General Member
Since: Aug 4, 2008
Posts: 70
Last: Jul 29, 2012
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Tuesday, May. 1, 2012 11:41 am
Do you think we are illusionists here at modsonline,
and conjure the answer out of a big hat?
If we don't know the error or some extra information we can't help you.
Share |
FzBr.d4rk
General Member
Since: Jan 23, 2011
Posts: 86
Last: Jun 7, 2016
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Friday, May. 4, 2012 03:01 am
Good answer ! I am brazilian and my english isn't good to explain much better.

ok, I have make a custom animation to play in the game, but
when the map loads i receive an error:
******* script compile error *******
Error: animation 'custom_anim' not defined in anim tree 'generic_human': (file 'maps/anim_test_anim.gsc', line 9)
level.scr_anim[ "generic" ] ["anim"] = %custom_anim;

understood ?[thumbs_up]



Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD4 SP Mapping
Posted: Sunday, May. 6, 2012 05:43 pm
you need to add custom animations to the file

raw\animtrees\generic_human.atr

in the appropriate section, example:

Code:
body {
// ...
	shoot
	{
		stand_aim
		{
			//rifle
			stand_aim_straight
			stand_aim_up
			stand_aim_down

			// HERE would go a custom stand aim animation

		}
	}
}
// ...


then add the animtree file to your zone file like:

Code:
rawfile,animtrees/generic_human.atr
Share |
FzBr.d4rk
General Member
Since: Jan 23, 2011
Posts: 86
Last: Jun 7, 2016
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Sunday, May. 6, 2012 09:34 pm
I try, but don't work.
Tanks for the help.
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD4 SP Mapping
Posted: Sunday, May. 6, 2012 10:21 pm
does the error persist?

where did you add the anim in generic_human.atr?

and what kind of animation is it?
Share |
FzBr.d4rk
General Member
Since: Jan 23, 2011
Posts: 86
Last: Jun 7, 2016
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Monday, May. 7, 2012 04:01 pm
It's a character animation, and yes, i put the name of the animation in the generic_human.atr.
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD4 SP Mapping
Posted: Monday, May. 7, 2012 07:40 pm
but where did you place it?

in which block?
Share |
FzBr.d4rk
General Member
Since: Jan 23, 2011
Posts: 86
Last: Jun 7, 2016
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Wednesday, May. 9, 2012 03:55 pm
[confused]This?

Code:
   
//---------------------------------
// Initial test animations
//---------------------------------

//---------------------------------
// (Prototype) Real animations
//---------------------------------


body
{

	rope_test
	
	bh_rope_idle_le
	bh_rope_drop_le

	bh_rope_idle_ri
	bh_rope_drop_ri
	mi17_rope_idle_le
	mi17_rope_drop_le
	mi17_rope_idle_ri
	mi17_rope_drop_ri

	bh_rope_idle_cargoship_begin_ri
	bh_rope_drop_cargoship_begin_ri
	
	cargoship_opening_fastrope_80ft
	
	helicopter_pilot1_idle
	helicopter_pilot1_twitch_clickpannel
	helicopter_pilot1_twitch_lookback
	helicopter_pilot1_twitch_lookoutside
	helicopter_pilot2_idle
	helicopter_pilot2_twitch_clickpannel
	helicopter_pilot2_twitch_lookoutside
	helicopter_pilot2_twitch_radio
	
	
	upperbody
	{
	}

	shoot
	{
		stand_shoot  : nonloopsync
		{
			//rifle
			stand_shoot_straight
			stand_shoot_up
			stand_shoot_down
                            custom_anim // I put my animation here
			//pistol
		}
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD4 SP Mapping
Posted: Wednesday, May. 9, 2012 07:19 pm
maybe better put it in the generic block, but i don't know what kind of animation it is, is it a shooting anim?

Code:
body
{
	// here
	rope_test
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 SP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»