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

Members Online

»
0 Active | 103 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

Tutorials

»
CoDUO Mapping
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
Scripting 101 - Surrendering Germans
Versions: You must be logged in to view history.

This Tutorial was inspired by this post: Surrendering Germans by "MasterChief6"

BR3NT

This Is Just A Basic Tut and alot more can be added to it. So feel free to experiment.

1/ Create a trigger_multiple and give it these parameters.

KEY:targetname
VALUE:surrender_trigger

This will be the trigger that sets off the surrendering Axis soldiers.


2/ Add some Axis-Ai to your map, Five or Six should suffice.Give them all the following parameters.

KEY:targetname
VALUE:gotcha

Thats It For The Map.

The Script is Pretty Straight forward. Here it is.

CODE:

#using_animtree("generic_human");



main()
{
maps\_load::main();
level.scr_anim["g_officer"]["stand_idle"][0] = (%c_prisoner_idle_A);
thread captured();
}
captured()
{
trig = getent("surrender_trigger","targetname");
trig waittill ("trigger");
prisoner = getentarray("gotcha","targetname");
for (i=0; i
{
prisoner[i] animscriptsshared::putGunInHand ("none");
prisoner[i].pacifist = true;
prisoner[i].allowdeath = 1;
prisoner[i] allowedStances ("stand");
prisoner[i].goalradius = 5;
prisoner[i].hasweapon = false;
prisoner[i].team = "allies";
prisoner[i].dontavoidplayer = 1;
prisoner[i].dropweapon = 1;
prisoner[i].animname = "g_officer";
prisoner[i] thread maps\_anim_gmi:: anim_loop_solo(prisoner[i],"stand_idle", undefined, "end anim");
}
}

The Axis Soldiers Will Fight You Until You Hit The Trigger.
Then They Surrender.
Enjoy Friends.


[exclamation]More To Come.

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

»