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

Members Online

»
0 Active | 7 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 Scripting
Scripting and coding with Call of Duty 4.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Blackhawk passenger idle anims?
pinedsman
General Member
Since: Feb 27, 2007
Posts: 85
Last: Nov 28, 2012
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Friday, Sep. 11, 2009 12:47 am
I am trying to add a helicopter sequence to my map and I already have a helicopter which I can move around the map... the problem I have is that the dudes in the helicopter aren't playing their idle animation (they just sit there all stiff-like).

Does anyone know how to get them to idle/what the idle animations are called? I'm using armada.gsc as reference, and I can't seem to find where they are telling them to play their idle animation.

EDIT: I guess I should include my script...

Code:

#include maps\_utility;

#include maps\_anim;

#include maps\_vehicle_aianim;


main()
{
	maps\_blackhawk::main( "vehicle_blackhawk" );
	maps\_load::main();
	
	level.player_heli = maps\_vehicle::scripted_spawn( 0 )[0];
	level.player_heli thread load_player( 3 );
}

load_player( position )
{
	if ( getdvar( "fastrope_arms" ) == "" )
		setdvar( "fastrope_arms", "0" );

	guy = undefined; 
	for ( i = 0; i < self.riders.size; i++ )
	{
		if ( self.riders[ i ].pos == position )
		{
			guy = self.riders[ i ]; 
			guy.drone_delete_on_unload = true; 
			guy.playerpiggyback = true; 
			break; 
		}
	}

	animpos = maps\_vehicle_aianim::anim_pos( self, position );

	guy notify( "newanim" );
	guy detachall();
	guy setmodel( "fastrope_arms" );
	guy useanimtree( animpos.player_animtree );
	thread maps\_vehicle_aianim::guy_idle( guy, position );

	level.player playerlinktodelta( guy, "tag_player", 1.0, 60, 28, 30, 30, true );
	level.player freezecontrols(false);
	
	guy hide();
}


edited on Sep. 10, 2009 08:48 pm by pinedsman
Share |
pinedsman
General Member
Since: Feb 27, 2007
Posts: 85
Last: Nov 28, 2012
[view latest posts]
Level 3
Category: CoD4 Scripting
Posted: Friday, Sep. 11, 2009 01:09 am
Ooops, nevermind... I got it! [crazy]
Share |
Marty22
General Member
Since: Jan 2, 2008
Posts: 42
Last: Sep 17, 2011
[view latest posts]
Level 2
Category: CoD4 Scripting
Posted: Saturday, Feb. 27, 2010 12:46 am
Sorry to open an old thread[eek], but I was just wondering, how you made it work.
Share |
SparkyMcSparks
General Member
Since: Feb 28, 2004
Posts: 1713
Last: Dec 29, 2016
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD4 Scripting
Posted: Saturday, Feb. 27, 2010 01:11 am
Easy... press Shift + V in Radiant and use the 'Ai and Vehicle Interaction' button with the actor and vehicle selected.

You'll have to run map with developer on to generate missing assets for animations, add those, recompile FF, and you're good to go.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 Scripting

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

»