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

Members Online

»
0 Active | 70 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

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 subscribe
Author Topic: Dumpster hide anim
wastanley
General Member
Since: Mar 3, 2012
Posts: 13
Last: Nov 21, 2012
[view latest posts]
Level 1
Category: CoD4 SP Mapping
Posted: Saturday, Nov. 10, 2012 05:15 pm
Hi mappers,

I just want to learn to make animated ais and i saw a very good, and special anim in the The Coup sp mission. When we in the car and we drive in a narrow street there is a dumpster in the left side of the street and in it, there is az arabic man who is hiding. Somebody can help me in it?

Regards, Stanley.

edited on Nov. 11, 2012 03:58 am by wastanley
Share |
MODDER_BC
General Member
Since: Oct 17, 2012
Posts: 54
Last: Jan 30, 2015
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Sunday, Nov. 11, 2012 12:19 am
Radiant:

1/ Place a "script_model" in your map. Give it these values.

model me_dumpster_anim
targetname dumpster

2/ Place an AI actor in your map. Stand him right in dumpster. Give it these values.

targetname civilian

3/ Place a "trigger_once" in your map. This will trigger the animation. Give it these values.

targetname dumpster_trig

Scripting:

In YOURMAPNAME.gsc where YOURMAPNAME is the name of your .gsc script. You need.


#include maps\_utility;
#include common_scripts\utility;
#include maps\_anim;

#using_animtree( "generic_human" );
main()
{
maps\YOURMAPNAME_anim::main();
maps\_load::main();
thread dumpsterhide();
}

dumpsterhide()
{
dumpster_trigger = getent("dumpster_trig","targetname");
dumpster_trigger waittill("trigger");
dumpster = getent( "dumpster", "targetname" );
dumpster.animname = "dumpster";
dumpster assign_animtree();

civilian = getent( "civilian", "targetname");
civilian.animname = "human";
civilian teleport ( ( dumpster.origin ));
civilian RemoveDroneWeapon();

civilian thread anim_single_solo( civilian, "dumpster_open" );
dumpster anim_single_solo( dumpster, "dumpster_open" );
civilian delete();
}

removeDroneWeapon()
{
size = self getattachsize();
for ( i = 0;i < size;i++ )
{
tag = self getattachtagname( i );
if ( tag == "tag_weapon_right" )
{
model = self getattachmodelname( i );
self Detach( model, tag );
}
}
}

In YOURMAPNAME_anim.gsc You need.

#include common_scripts\utility;
#include maps\_utility;
#include maps\_anim;


main()
{
anim_human();
anim_dumpster();
}




#using_animtree( "generic_human" );

anim_human()
{
level.scr_animtree[ "human" ] = #animtree;
level.scr_anim[ "human" ][ "dumpster_open" ] = %coup_dumpster_man;
}

#using_animtree( "script_model" );
anim_dumpster()
{
level.scr_animtree[ "dumpster" ] = #animtree;
level.scr_anim[ "dumpster" ][ "dumpster_open" ] = %coup_dumpster_lid;
}

In your Zone file you need to add.

xanim,coup_dumpster_man
xanim,coup_dumpster_lid

edited on Nov. 10, 2012 05:27 pm by MODDER_BC

NOTE: You can do alot more like have him run around a corner first. But this will get you started.
Share |
wastanley
General Member
Since: Mar 3, 2012
Posts: 13
Last: Nov 21, 2012
[view latest posts]
Level 1
Category: CoD4 SP Mapping
Posted: Sunday, Nov. 11, 2012 10:45 am
Thank you so much! I owe you one. [drink]
Share |
MODDER_BC
General Member
Since: Oct 17, 2012
Posts: 54
Last: Jan 30, 2015
[view latest posts]
Level 3
Category: CoD4 SP Mapping
Posted: Sunday, Nov. 11, 2012 10:50 am
No sweat, I dont mind helping out fellow mappers/scripters. [thumbs_up]
Share |
wastanley
General Member
Since: Mar 3, 2012
Posts: 13
Last: Nov 21, 2012
[view latest posts]
Level 1
Category: CoD4 SP Mapping
Posted: Wednesday, Nov. 21, 2012 03:50 pm
Is there any way to use the animations in an mp map not just in an sp map?

Share |
voidsource
General Member
Since: May 5, 2007
Posts: 1513
Last: Sep 1, 2013
[view latest posts]
Level 8
Category: CoD4 SP Mapping
Posted: Friday, Dec. 21, 2012 06:50 am
i doubt it as the AI is an SP feature in cod4.
Share |
Restricted Access Topic is Locked 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

»