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

Members Online

»
0 Active | 57 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 2
Category: CoD2 SP Mapping
Call of Duty 2 single player mapping, scripting and everything single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Surrendering germans
ivan_cro
General Member
Since: Jul 21, 2008
Posts: 463
Last: Oct 27, 2010
[view latest posts]
Level 5
Category: CoD2 SP Mapping
Posted: Friday, Sep. 4, 2009 04:52 pm
How to make surrendering germans in cod2 sp like when pass trough the trigger they just surrender. Please help me this is my third post i rlly need fast help.. -IvanFilip [crazy]

edited on Sep. 4, 2009 12:52 pm by IvanFilip

edited on Sep. 4, 2009 12:53 pm by IvanFilip
Share |
COD4GRC
General Member
Since: Aug 12, 2007
Posts: 44
Last: Jan 30, 2010
[view latest posts]
Level 2
Category: CoD2 SP Mapping
Posted: Tuesday, Sep. 29, 2009 09:24 pm
You could use either one of the following animations:

beltot_german_surrendering_dialogue
beltot_german_surrendering_loop

It would be something like this: (untested)
Inside your MAPNAME_anim.gsc
Code:

main()
{
	misc();
}


#using_animtree("generic_human");
misc()
{
	level.scr_anim["generic"]["surrender_loop"][0]			= %beltot_german_surrendering_loop;
}


And in MAPNAME.gsc:

Code:

.....
trigger_surrender(){
 trigger = getent("trig_surrender", "targetname");
 trigger waittill("trigger");

 axis = getaiarray("axis");
 for(i = 0, i < axis.size; i++)
  axis[i] thread surrender(); // start surrender on every guy
}

surrender(){
// drop weapon, 10 is the velocity of the throw
 self dropWeapon(self.weapon, self.anim_gunHand, 10);
// Disable anger :)
 self.pacifist = true;
// Set animation index to 0 (according to the _anim file)
 self.script_noteworthy = 0;

// execute animation on the guy
 self thread anim_loop_solo(self, "surrender_loop", undefined, "stop_anim");
}


I hope it works and you still want to use it (after almost a month) :D

Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 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

»