Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using_animtree ("generic_human");.main().{.switch (self.type).{.case "human": human(); break;.case "dog": dog(); break;.case "zombie": human(); break;.case "zombie_dog": dog(); break;.default: assertmsg("Traversal: 'mantle_over_40' doesn't support entity type '" + self.type + "'.");.}.}.human().{.PrepareForTraverse();.traverseData = [];.if( IsDefined( self.is_zombie ) && self.is_zombie ).{.traverseData[ "traverseHeight" ] = 40.0;.if( self.has_legs ).{.switch (self.zombie_move_speed).{.case "walk":.traverseData[ "traverseAnim" ] = array(.%ai_zombie_traverse_v1,.%ai_zombie_traverse_v2.);.break;.case "run":.traverseData[ "traverseAnim" ] = array(.%ai_zombie_traverse_v3,.%ai_zombie_traverse_v5.);.break;.case "sprint":.traverseData[ "traverseAnim" ] = array(.%ai_zombie_traverse_v6,.%ai_zombie_traverse_v7.);.break;.default:.assertmsg("Zombie move speed of '" + self.zombie_move_speed + "' is not supported for wall hop.");.}.}.else.{.traverseData[ "traverseAnim" ] = array(.%ai_zombie_traverse_crawl_v1,.%ai_zombie_traverse_v4.);.}.}.else.{.traverseData[ "traverseHeight" ] = 40.0;.traverseData[ "traverseAnim" ] = array( animArray("mantle_over_40", "move") );.traverseData[ "traverseStance" ] = "stand";.traverseData[ "traverseToCoverAnim" ].= animArray("mantle_over_40_to_cover", "move");.traverseData[ "coverType" ] = "Cover Crouch";.traverseData[ "interruptDeathAnim" ][0].= animArray("traverse_40_death_start", "move");.traverseData[ "interruptDeathAnim" ][1].= animArray("traverse_40_death_end", "move");.}.DoTraverse( traverseData );.}.dog().{.dog_wall_and_window_hop( "window_40", 40 );.}.ÿÿÿÿ....ÿÿÿÿanimscripts/traverse/stairs_up_8x12.gsc.#include common_scripts\utility;.#include animscripts\traverse\shared;.#include animscripts\anims;.#include animscripts\utility;.#include maps\_utility;.#using_animtree ("generic_human");.main().{.switch (self.type).{.case "human": human(); break;.default: assertmsg("Traversal: 'stairs_up' doesn't support entity type '" + self.type + "'.");.}.}.human().{.movement = PrepareForTraverse();.traverseData = [];.if( !self call_overloaded_func( "animscripts\cqb", "shouldCQB" ) && !usingPistol() ).{.movement = "sprint";.traverseData[ "traverseAnimRate" ] = 1.3;.}.if (self animscripts\traverse\stairs_util::get_stair_count() % 2).{.transition_stair_count_in = 0;.traverseData[ "traverseAnimTransIn" ] = animArray("staircase_up_8x12_in", movement);.}.else.{.transition_stair_count_in = 1;.traverseData[ "traverseAnimTransIn" ] = animArray("staircase_up_8x12_in_even", movement);.}.transition_stair_count_out = 1;.traverseData[ "traverseAnimTransOut" ] =.animArray("staircase_up_8x12_out", movement);.stair_anims[2] =.animArray("staircase_up_8x12_2", movement, false);.stair_anims[4] =.animArray("staircase_up_8x12_4", movement, false);.stair_anims[6] =.animArray("staircase_up_8x12_6", movement, false);.stair_anims[8] =.animArray("staircase_up_8x12_8", movement, false);.stair_anims[10] =.animArray("staircase_up_8x12_10", movement, false);.transition_stair_count = 1;.traverseData = animscripts\traverse\stairs_util::build_traverse_data(traverseData, stair_anims, transition_stair_count_in, transition_stair_count_out);.DoTraverse( traverseData );.}.ÿÿÿÿ....ÿÿÿÿanimscripts/traverse/stairs_up_8x16.gsc.#include common_scripts\utility;.#include animscripts\traverse\shared;.#include animscripts\anims;.#include animscripts\utility;.#include maps\_utility;.#using_animtree ("generic_human");.main().{.switch (self.type).{.case "human": human(); break;.default: assertmsg("Traversal: 'stairs_up' doesn't support entity type '" + self.type + "'.");.}.}.human().{.movement = PrepareForTraverse();.traverseData = [];.if( !self call_overloaded_func( "animscripts\cqb", "shouldCQB" ) && !usingPistol() ).{.movement = "sprint";.traverseData[ "traverseAnimRate" ] = 1.3;.}.if (self animscripts\traverse\stairs_util::get_stair_count() % 2).{.transition_stair_count_in = 0;.traverseData[ "traverseAnimTransIn" ] = animArray("staircase_up_8x16_in", movement);.}.else.{.transition_stair_count_in = 1;.traverseData[ "traverseAnimTransIn" ] = animArray("staircase_up_8x16_in_even", movement);.}.transition_stair_count_out = 1;.traverseData[ "traverseAnimTransOut" ] =.animArray("staircase_up_8x16_out", movement);.stair_anims[2] =.animArray("staircase_up_8x16_2", movement, false);.stair_anims[4] =.animArray("staircase_up_8x16_4", movement, false);.stair_anims[6] =.animArray("staircase_up_8x16_6", movement, false);.stair_anims[8] =.animArray("staircase_up_8x16_8", movement, false);.stair_anims[10] =.animArray("staircase_up_8x16_10", movement, false);.transition_stair_count = 1;.traverseData = animscripts\traverse\stairs_util::build_traverse_data(traverseData, stair_anims, transition_stair_count_in, transition_stair_count_out);.DoTraverse( traverseData );.}.ÿÿÿÿ....ÿÿÿÿanimscripts/traverse/stairs_down_8x12.gsc.#include common_scripts\utility;.#include animscripts\traverse\shared;.#include animscripts\anims;.#include animscripts\utility;.#include maps\_utility;.#using_animtree ("generic_human");.main().{.switch (self.type).{.case "human": human(); break;.default: assertmsg("Traversal: 'stairs_down' doesn't support entity type '" + self.type + "'.");.}.}.human().{.movement = PrepareForTraverse();.traverseData = [];.if( !self call_overloaded_func( "animscripts\cqb", "shouldCQB" ) && !usingPistol() ).{.movement = "sprint";.traverseData[ "traverseAnimRate" ] = 1.3;.}.transition_stair_count_in = 1;.traverseData[ "traverseAnimTransIn" ] = animArray("staircase_down_8x12_in", movement);.if (self animscripts\traverse\stairs_util::get_stair_count() % 2).{.transition_stair_count_out = 0;.traverseData[ "traverseAnimTransOut" ] =.animArray("staircase_down_8x12_out", movement);.}.else.{.transition_stair_count_out = 1;.traverseData[ "traverseAnimTransOut" ] =.animArray("staircase_down_8x12_out_even", movement);.}.stair_anims[2] =.animArray("staircase_down_8x12_2", movement, false);.stair_anims[4] =.animArray("staircase_down_8x12_4", movement, false);.stair_anims[6] =.animArray("staircase_down_8x12_6", movement, false);.stair_anims[8] =.animArray("staircase_down_8x12_8", movement, false);.stair_anims[10] =.animArray("staircase_down_8x12_10", movement, false);.traverseData = animscripts\traverse\stairs_util::build_traverse_data(traverseData, stair_anims, transition_stair_count_in, transition_stair_count_out);.DoTraverse( traverseData );.}.ÿÿÿÿ....ÿÿÿÿanimscripts/traverse/stairs_down_8x16.gsc.#include common_scripts\utility;.#include animscripts\traverse\shared;.#include animscripts\anims;.#include animscripts\utility;.#include maps\_utility;.#using_animtree ("generic_human");.main().{.switch (self.type).{.case "human": human(); break;.default: assertmsg("Traversal: 'stairs_down' doesn't support entity type '" + self.type + "'.");.}.}.human().{.movement = PrepareForTraverse();.traverseData = [];.if( !self call_overloaded_func( "animscripts\cqb", "shouldCQB" ) && !usingPistol() ).{.movement = "sprint";.traverseData[ "traverseAnimRate" ] = 1.3;.}.transition_stair_count_in = 1;.traverseData[ "traverseAnimTransIn" ] = animArray("staircase_down_8x16_in", movement);.if (self animscripts\traverse\stairs_util::get_stair_count() % 2).{.transition_stair_count_out = 0;.traverseData[ "traverseAnimTransOut" ] =.animArray("staircase_down_8x16_out", movement);.}.else.{.transition_stair_count_out = 1;.traverseData[ "traverseAnimTransOut" ] =.animArray("staircase_down_8x16_out_even", movement);.}.stair_anims[2] =.animArray("staircase_down_8x16_2", movement, false);.stair_anims[4] =.animArray("staircase_down_8x16_4", movement, false);.stair_anims[6] =.animArray("staircase_down_8x16_6", movement, false);.stair_anims[8] =.animArray("staircase_down_8x16_8", movement, false);.stair_anims[10] =.animArray("staircase_down_8x16_10", movement, false);.traverseData = animscripts\traverse\stairs_util::build_traverse_data(traverseData, stair_anims, transition_stair_count_in, transition_stair_count_out);.DoTraverse( traverseData );.}.ÿÿÿÿ...Qÿÿÿÿmaps/_civilians_anim.gsc..#include common_scripts\utility;.#include animscripts\Utility;.#include maps\_anim;.#using_animtree( "generic_human" );.setup_civilian_override_animations().{.level.civilian["stand"]["scared_run"] = array(.%civilian_run_hunched_A,.%civilian_run_hunched_B,.%civilian_run_hunched_C,.%civilian_run_upright.);.}.civilian_ai_idle_and_react( guy, idle_anim, reaction_anim, tag, react_flag ).{.ender = react_flag;.if( !guy is_civilian() ).Assert( "civilian_ai_idle_and_react function should only be called on civilian AI" );.self thread maps\_anim::anim_generic_loop( guy, idle_anim, ender );.self civilian_ai_set_custom_animation_reaction( self, reaction_anim, tag, ender );.}.civilian_ai_set_custom_animation_reaction( node, animation, tag, ender ).{.self endon("death");.self waittill( ender );.self civilian_animation_react( node, animation, tag );.}.civilian_animation_react( node, animation, tag ).{.self endon( "death" );.self endon( "pain_death" );.if ( IsDefined( tag ) ).{.node anim_generic_aligned( self, animation, tag );.}.else.{.node anim_generic_custom_animmode( self, "gravity", animation );.}.}.ÿÿÿÿ....ÿÿÿÿaitype/cu_e_fnfal.gsc..main().{.self.animTree = "";.self.team = "axis";.self.type = "human";.self.accuracy = 1;.self.health = 150;.self.weapon = "fnfal_sp";.self.secondaryweapon = "";.self.sidearm = "asp_sp";.self.grenadeWeapon = "frag_grenade_sp";.self.grenadeAmmo = 2;.self.wiiOptimized = 0;.self.csvInclude = "";.self setEngagementMinDist( 250.000000, 0.000000 );.self setEngagementMaxDist( 700.000000, 1000.000000 );.switch( codescripts\character::get_random_character(5) ).{.case 0:.character\c_cub_tropas_2::main();.break;.case 1:.character\c_cub_tropas_3::main();.break;.case 2:.character\c_cub_tropas_4::main();.break;.case 3:.character\c_cub_tropas_5::main();.break;.case 4:.character\c_cub_tropas_1::main();.break;.}.}.spawner().{.self setspawnerteam("axis");.}.precache().{.character\c_cub_tropas_2::precache();.character\c_cub_tropas_3::precache();.character\c_cub_tropas_4::precache();.character\c_cub_tropas_5::precache();.character\c_cub_tropas_1::precache();.precacheItem("fnfal_sp");.precacheItem("asp_sp");.precacheItem("frag_grenade_sp");.}..ÿÿÿÿ...`ÿÿÿÿaitype/cu_e_police_fnfal.gsc..main().{.self.animTree = "";.self.team = "axis";.self.type = "human";.self.accuracy = 1;.self.health = 150;.self.weapon = "fnfal_sp";.self.secondaryweapon = "";.self.sidearm = "asp_sp";.self.grenadeWeapon = "frag_grenade_sp";.self.grenadeAmmo = 2;.self.wiiOptimized = 0;.self.csvInclude = "";.self setEngagementMinDist( 250.000000, 0.000000 );.self setEngagementMaxDist( 700.000000, 1000.000000 );.switch( codescripts\character::get_random_character(3) ).{.case 0:.character\c_cub_police_1::main();.break;.case 1:.character\c_cub_police_2::main();.break;.case 2:.character\c_cub_police_3::main();.break;.}.}.spawner().{.self setspawnerteam("axis");.}.precache().{.character\c_cub_police_1::precache();.character\c_cub_police_2::precache();.character\c_cub_police_3::precache();.precacheItem("fnfal_sp");.precacheItem("asp_sp");.precacheItem("frag_grenade_sp");.}..ÿÿÿÿ...]ÿÿÿÿaitype/cu_e_police_shotgun.gsc..main().{.self.animTree = "";.self.team = "axis";.self.type = "human";.self.accuracy = 1;.self.health = 150;.self.weapon = "ks23_sp";.self.secondaryweapon = "";.self.sidearm = "asp_sp";.self.grenadeWeapon = "frag_grenade_sp";.self.grenadeAmmo = 2;.self.wiiOptimized = 0;.self.csvInclude = "";.self setEngagementMinDist( 150.000000, 0.000000 );.self setEngagementMaxDist( 500.000000, 700.000000 );.switch( codescripts\character::get_random_character(3) ).{.case 0:.character\c_cub_police_1::main();.break;.case 1:.character\c_cub_police_2::main();.break;.case 2:.character\c_cub_police_3::main();.break;.}.}.spawner().{.self setspawnerteam("axis");.}.precache().{.character\c_cub_police_1::precache();.character\c_cub_police_2::precache();.character\c_cub_police_3::precache();.precacheItem("ks23_sp");.precacheItem("asp_sp");.precacheItem("frag_grenade_sp");.}..ÿÿÿÿ...\ÿÿÿÿaitype/cu_e_police_rpk.gsc..main().{.self.animTree = "";.self.team = "axis";.self.type = "human";.self.accuracy = 1;.self.health = 150;.self.weapon = "rpk_sp";.self.secondaryweapon = "";.self.sidearm = "asp_sp";.self.grenadeWeapon = "frag_grenade_sp";.self.grenadeAmmo = 2;.self.wiiOptimized = 0;.self.csvInclude = "";.self setEngagementMinDist( 250.000000, 0.000000 );.self setEngagementMaxDist( 700.000000, 1000.000000 );.switch( codescripts\character::get_random_character(3) ).{.case 0:.character\c_cub_police_1::main();.break;.case 1:.character\c_cub_police_2::main();.break;.case 2:.character\c_cub_police_3::main();.break;.}.}.spawner().{.self setspawnerteam("axis");.}.precache().{.character\c_cub_police_1::precache();.character\c_cub_police_2::precache();.character\c_cub_police_3::precache();.precacheItem("rpk_sp");.precacheItem("asp_sp");.precacheItem("frag_grenade_sp");.}..ÿÿÿÿ...$ÿÿÿÿanimscripts/traverse/mantle_on_56.gsc.#include common_scripts\utility;.#include animscripts\traverse\shared;.#include animscripts\anims;.#using_animtree ("generic_human");.main().{.switch (self.type).{.case "human": human(); break;.default: assertmsg("Traversal: 'mantle_on_56' doesn't support entity type '" + self.type + "'.");.}.}.human().{.PrepareForTraverse();.traverseData = [];.traverseData[ "traverseAnim" ] = array( animArray("mantle_on_56", "move") );.traverseData[ "traverseHeight" ] = 56.0;.traverseData[ "traverseStance" ] = "stand";.traverseData[ "traverseAlertness" ] = "casual";.traverseData[ "traverseMovement" ] = "run";.traverseData[ "interruptDeathAnim" ][0].= animArray("traverse_40_death_start", "move");.traverseData[ "interruptDeathAnim" ][1].= animArray("traverse_40_death_end", "move");.DoTraverse( traverseData );.}.ÿÿÿÿ...$ÿÿÿÿanimscripts/traverse/mantle_on_40.gsc.#include common_scripts\utility;.#include animscripts\traverse\shared;.#include animscripts\anims;.#using_animtree ("generic_human");.main().{.switch (self.type).{.case "human": human(); break;.default: assertmsg("Traversal: 'mantle_on_40' doesn't support entity type '" + self.type + "'.");.}.}.human().{.PrepareForTraverse();.traverseData = [];.traverseData[ "traverseAnim" ] = array( animArray("mantle_on_40", "move") );.traverseData[ "traverseHeight" ] = 40.0;.traverseData[ "traverseStance" ] = "stand";.traverseData[ "traverseAlertness" ] = "casual";.traverseData[ "traverseMovement" ] = "run";.traverseData[ "interruptDeathAnim" ][0].= animArray("traverse_40_death_start", "move");.traverseData[ "interruptDeathAnim" ][1].= animArray("traverse_40_death_end", "move");.DoTraverse( traverseData );.}.ÿÿÿÿ...>ÿÿÿÿaitype/cu_e_police_pistol.gsc..main().{.self.animTree = "";.self.team = "axis";.self.type = "human";.self.accuracy = 1;.self.health = 150;.self.weapon = "asp_sp";.self.secondaryweapon = "";.self.sidearm = "";.self.grenadeWeapon = "frag_grenade_sp";.self.grenadeAmmo = 2;.self.wiiOptimized = 0;.self.csvInclude = "";.self setEngagementMinDist( 250.000000, 0.000000 );.self setEngagementMaxDist( 700.000000, 1000.000000 );.switch( codescripts\character::get_random_character(3) ).{.case 0:.character\c_cub_police_1::main();.break;.case 1:.character\c_cub_police_2::main();.break;.case 2:.character\c_cub_police_3::main();.break;.}.}.spawner().{.self setspawnerteam("axis");.}.precache().{.character\c_cub_police_1::precache();.character\c_cub_police_2::precache();.character\c_cub_police_3::precache();.precacheItem("asp_sp");.precacheItem("frag_grenade_sp");.}..ÿÿÿÿ....ÿÿÿÿaitype/woods_cuba_bar.gsc..main().{.self.animTree = "";.self.team = "allies";.self.type = "human";.self.accuracy = 1;.self.health = 150;.self.weapon = "m16_acog_sp";.self.secondaryweapon = "";.self.sidearm = "asp_sp";.self.grenadeWeapon = "frag_grenade_sp";.self.grenadeAmmo = 0;.self.wiiOptimized = 0;.self.csvInclude = "char_barnes.csv";.self setEngagementMinDist( 250.000000, 0.000000 );.self setEngagementMaxDist( 700.000000, 1000.000000 );.character\c_usa_cubcasual_barnes::main();.}.spawner().{.self setspawnerteam("allies");.}.precache().{.character\c_usa_cubcasual_barnes::precache();.precacheItem("m16_acog_sp");.precacheItem("asp_sp");.precacheItem("frag_grenade_sp");.}..ÿÿÿÿ...Âÿÿÿÿanimscripts/traverse/mantle_over_36.gsc.#include common_scripts\utility;.#include animscripts\traverse\shared;.#include animscripts\anims;.#using_animtree("generic_human");.main().{.switch (self.type).{.case "human": human(); break;.default: assertmsg("Traversal: 'mantle_over_36' doesn't support entity type '" + self.type + "'.");.}.}.human().{.PrepareForTraverse();.traverseData = [];.traverseData[ "traverseAnim" ] = animArray("mantle_over_36", "move");.traverseData[ "traverseHeight" ] = 36.0;.traverseData[ "traverseStance" ] = "stand";.traverseData[ "interruptDeathAnim" ][0].= animArray("traverse_40_death_start", "move");.traverseData[ "interruptDeathAnim" ][1].= animArray("traverse_40_death_end", "move");.DoTraverse( traverseData );.}.ÿÿÿÿ...‚ÿÿÿÿaitype/carlos_cuba_bar.gsc..main().{.self.animTree = "";.self.team = "allies";.self.type = "human";.self.accuracy = 1;.self.health = 150;.self.weapon = "m16_silencer_sp";.self.secondaryweapon = "";.self.sidearm = "asp_sp";.self.grenadeWeapon = "frag_grenade_sp";.self.grenadeAmmo = 0;.self.wiiOptimized = 0;.self.csvInclude = "";.self setEngagementMinDist( 256.000000, 0.000000 );.self setEngagementMaxDist( 768.000000, 1024.000000 );.character\c_cub_carlos_casual::main();.}.spawner().{.self setspawnerteam("allies");.}.precache().{.character\c_cub_carlos_casual::precache();.precacheItem("m16_silencer_sp");.precacheItem("asp_sp");.precacheItem("frag_grenade_sp");.}..ÿÿÿÿ...Ãÿÿÿÿanimscripts/traverse/mantle_over_96.gsc.#include common_scripts\utility;.#include animscripts\traverse\shared;.#include animscripts\anims;.#using_animtree ("generic_human");.main().{.switch (self.type).{.case "human": human(); break;.default: assertmsg("Traversal: 'mantle_over_96' doesn't support entity type '" + self.type + "'.");.}.}.human().{.PrepareForTraverse();.traverseData = [];.traverseData[ "traverseAnim" ] = animArray("mantle_over_96", "move");.traverseData[ "traverseHeight" ] = 96.0;.traverseData[ "traverseStance" ] = "stand";.traverseData[ "interruptDeathAnim" ][0].= animArray("traverse_90_death_start", "move");.traverseData[ "interruptDeathAnim" ][1].= animArray("traverse_90_death_end", "move");.DoTraverse( traverseData );.}.ÿÿÿÿ...‚ÿÿÿÿaitype/carlos_cuba.gsc..main().{.self.animTree = "";.self.team = "allies";.self.type = "human";.self.accuracy = 1;.self.health = 150;.self.weapon = "m16_silencer_sp";.self.secondaryweapon = "";.self.sidearm = "asp_sp";.self.grenadeWeapon = "frag_grenade_sp";.self.grenadeAmmo = 0;.self.wiiOptimized = 0;.self.csvInclude = "";.self setEngagementMinDist( 256.000000, 0.000000 );.self setEngagementMaxDist( 768.000000, 1024.000000 );.character\c_cub_carlos_battle::main();.}.spawner().{.self setspawnerteam("allies");.}.precache().{.character\c_cub_carlos_battle::precache();.precacheItem("m16_silencer_sp");.precacheItem("asp_sp");.precacheItem("frag_grenade_sp");.}..ÿÿÿÿ....ÿÿÿÿaitype/woods_cuba.gsc..main().{.self.animTree = "";.self.team = "allies";.self.type = "human";.self.accuracy = 1;.self.health = 150;.self.weapon = "m16_acog_sp";.self.secondaryweapon = "";.self.sidearm = "asp_sp";.self.grenadeWeapon = "frag_grenade_sp";.self.grenadeAmmo = 0;.self.wiiOptimized = 0;.self.csvInclude = "char_barnes.csv";.self setEngagementMinDist( 250.000000, 0.000000 );.self setEngagementMaxDist( 700.000000, 1000.000000 );.character\c_usa_cubrebel_barnes::main();.}.spawner().{.self setspawnerteam("allies");.}.precache().{.character\c_usa_cubrebel_barnes::precache();.precacheItem("m16_acog_sp");.precacheItem("asp_sp");.precacheItem("frag_grenade_sp");.}..ÿÿÿÿ...€ÿÿÿÿaitype/bowman_cuba_bar.gsc..main().{.self.animTree = "";.self.team = "allies";.self.type = "human";.self.accuracy = 1;.self.health = 150;.self.weapon = "m16_acog_sp";.self.secondaryweapon = "";.self.sidearm = "asp_sp";.self.grenadeWeapon = "frag_grenade_sp";.self.grenadeAmmo = 0;.self.wiiOptimized = 0;.self.csvInclude = "";.self setEngagementMinDist( 250.000000, 0.000000 );.self setEngagementMaxDist( 700.000000, 1000.000000 );.character\c_usa_cubcasual_bowman::main();.}.spawner().{.self setspawnerteam("allies");.}.precache().{.character\c_usa_cubcasual_bowman::precache();.precacheItem("m16_acog_sp");.precacheItem("asp_sp");.precacheItem("frag_grenade_sp");.}..ÿÿÿÿ...nÿÿÿÿaitype/civilian_cuba.gsc..main().{.self.animTree = "";.self.team = "neutral";.self.type = "human";.self.accuracy = 1;.self.health = 150;.self.weapon = "fnfal_sp";.self.secondaryweapon = "";.self.sidearm = "asp_sp";.self.grenadeWeapon = "frag_grenade_sp";.self.grenadeAmmo = 0;.self.wiiOptimized = 0;.self.csvInclude = "";.self setEngagementMinDist( 256.000000, 0.000000 );.self setEngagementMaxDist( 768.000000, 1024.000000 );.character\c_cub_civilians::main();.}.spawner().{.self setspawnerteam("neutral");.}.precache().{.character\c_cub_civilians::precache();.precacheItem("fnfal_sp");.precacheItem("asp_sp");.precacheItem("frag_grenade_sp");.}..ÿÿÿÿ...:ÿÿÿÿanimscripts/traverse/jump_down_96.gsc.#include common_scripts\utility;.#include animscripts\traverse\shared;.#include animscripts\anims;.#using_animtree ("generic_human");.main().{.switch (self.type).{.case "human": human(); break;.case "dog": dog(); break;.case "zombie": human(); break;.case "zombie_dog": dog(); break;.default: assertmsg("Traversal: 'jump_down_96' doesn't support entity type '" + self.type + "'.");.}.}.human().{.PrepareForTraverse();.traverseData = [];.traverseData[ "traverseAnim" ] = animArray("jump_down_96", "move");.DoTraverse( traverseData );.}.dog().{.dog_jump_down( 96, 7 );.}...ÿÿÿÿ...fÿÿÿÿaitype/cu_e_barleader.gsc..main().{.self.animTree = "";.self.team = "axis";.self.type = "human";.self.accuracy = 1;.self.health = 150;.self.weapon = "fnfal_sp";.self.secondaryweapon = "";.self.sidearm = "asp_sp";.self.grenadeWeapon = "frag_grenade_sp";.self.grenadeAmmo = 2;.self.wiiOptimized = 0;.self.csvInclude = "";.self setEngagementMinDist( 250.000000, 0.000000 );.self setEngagementMaxDist( 700.000000, 1000.000000 );.character\c_cub_tropas_1::main();.}.spawner().{.self setspawnerteam("axis");.}.precache().{.character\c_cub_tropas_1::precache();.precacheItem("fnfal_sp");.precacheItem("asp_sp");.precacheItem("frag_grenade_sp");.}..ÿÿÿÿ...Fÿÿÿÿanimscripts/traverse/dive_over_40.gsc.#include common_scripts\utility;.#include animscripts\traverse\shared;.#include animscripts\anims;.#using_animtree ("generic_human");.main().{.switch (self.type).{.case "human": human(); break;.default: assertmsg("Traversal: 'dive_over_40' doesn't support entity type '" + self.type + "'.");.}.}.human().{.PrepareForTraverse();.traverseData = [];.traverseData[ "traverseHeight" ] = 40.0;.traverseData[ "traverseAnim" ] = array(.animArray("dive_over_40", "move") );.traverseData[ "traverseStance" ] = "stand";.traverseData[ "traverseMovement" ] = "run";.DoTraverse( traverseData );.}.ÿÿÿÿ...~ÿÿÿÿaitype/bowman_cuba.gsc..main().{.self.animTree = "";.self.team = "allies";.self.type = "human";.self.accuracy = 1;.self.health = 150;.self.weapon = "m16_acog_sp";.self.secondaryweapon = "";.self.sidearm = "asp_sp";.self.grenadeWeapon = "frag_grenade_sp";.self.grenadeAmmo = 0;.self.wiiOptimized = 0;.self.csvInclude = "";.self setEngagementMinDist( 250.000000, 0.000000 );.self setEngagementMaxDist( 700.000000, 1000.000000 );.character\c_usa_cubrebel_bowman::main();.}.spawner().{.self setspawnerteam("allies");.}.precache().{.character\c_usa_cubrebel_bowman::precache();.precacheItem("m16_acog_sp");.precacheItem("asp_sp");.precacheItem("frag_grenade_sp");.}..ÿÿÿÿ...}ÿÿÿÿaitype/cu_dancer.gsc..main().{.self.animTree = "generic_human.atr";.self.team = "axis";.self.type = "human";.self.accuracy = 1;.self.health = 150;.self.weapon = "fnfal_acog_sp";.self.secondaryweapon = "";.self.sidearm = "asp_sp";.self.grenadeWeapon = "frag_grenade_sp";.self.grenadeAmmo = 0;.self.wiiOptimized = 0;.self.csvInclude = "";.self setEngagementMinDist( 256.000000, 0.000000 );.self setEngagementMaxDist( 768.000000, 1024.000000 );.character\c_cub_dancer::main();.}.spawner().{.self setspawnerteam("axis");.}.precache().{.character\c_cub_dancer::precache();.precacheItem("fnfal_acog_sp");.precacheItem("asp_sp");.precacheItem("frag_grenade_sp");.}..ÿÿÿÿ...Vÿÿÿÿanimtrees/cuba.atr....S...Nxœ•“anƒ0.…÷.iwi«ÝÇr‚.ÑB.9¦]wú™.&h¡U%.Àß³±_L.’‚ï.8”â).äˆ..(Š¢Õ.m.]åÛ.Ûí..ô.tä./³:ÌSh.>3×.š>Ýëkf.×KQàLëØG..”ê*?V..[ñ[æfÚ틧•Ñ8.OÞ^í~..u¤«jðï7dkSå2™³.Fæü@.VZ$..Û.—âø..C“Àž:LÛüêîxHh..F[…Ђcõ9öXT.°.»BB.œ Û.ìßR.ð=¹[,Í.uiYmY®îÎÅ.~Ûð|²½Œ–éÌ.Ýà²Æ‡ºÐšãŠÎÎ-.ç¡u·û‚†TCj,«oZ.Í5B.†ˆøÿcL(bŸìñ(Ü.ò.÷b{LXÏ.þÈrF©A0gŠÖâ2.Ö..G'OîP¤£9vy&‘`ƒ½ÐÌ˼¨ðY}ü.1﯆iÿÿÿÿ....ÿÿÿÿcharacter/c_cub_tropas_4.gsc..main().{.self setModel("c_cub_tropas_body");.self.headModel = "c_cub_tropas_head2";.self attach(self.headModel, "", true);.self.voice = "cuban";.self.skeleton = "base";.}.precache().{.precacheModel("c_cub_tropas_body");.precacheModel("c_cub_tropas_head2");.}..ÿÿÿÿ....ÿÿÿÿcharacter/c_cub_tropas_3.gsc..main().{.self setModel("c_cub_tropas_body");.self.headModel = "c_cub_tropas_head2";.self attach(self.headModel, "", true);.self.voice = "cuban";.self.skeleton = "base";.}.precache().{.precacheModel("c_cub_tropas_body");.precacheModel("c_cub_tropas_head2");.}..ÿÿÿÿ....ÿÿÿÿcharacter/c_cub_tropas_5.gsc..main().{.self setModel("c_cub_tropas_body");.self.headModel = "c_cub_tropas_head2";.self attach(self.headModel, "", true);.self.voice = "cuban";.self.skeleton = "base";.}.precache().{.precacheModel("c_cub_tropas_body");.precacheModel("c_cub_tropas_head2");.}..ÿÿÿÿ...þÿÿÿÿcharacter/c_cub_civilians.gsc..main().{.codescripts\character::setModelFromArray(xmodelalias\c_cub_civilians_upperalias::main());.self.voice = "cuban";.self.skeleton = "base";.}.precache().{.codescripts\character::precacheModelArray(xmodelalias\c_cub_civilians_upperalias::main());.}..ÿÿÿÿ....ÿÿÿÿcharacter/c_cub_tropas_2.gsc..main().{.self setModel("c_cub_tropas_body");.self.headModel = "c_cub_tropas_head2";.self attach(self.headModel, "", true);.self.voice = "cuban";.self.skeleton = "base";.}.precache().{.precacheModel("c_cub_tropas_body");.precacheModel("c_cub_tropas_head2");.}..ÿÿÿÿ...›ÿÿÿÿcharacter/c_cub_carlos_casual.gsc..main().{.self setModel("c_cub_carlos_casual_fb");.self.voice = "cuban";.self.skeleton = "base";.}.precache().{.precacheModel("c_cub_carlos_casual_fb");.}..ÿÿÿÿ...¤ÿÿÿÿcharacter/c_usa_cubcasual_barnes.gsc..main().{.self setModel("c_usa_cubcasual_barnes_fb");.self.voice = "american";.self.skeleton = "base";.}.precache().{.precacheModel("c_usa_cubcasual_barnes_fb");.}..ÿÿÿÿ....ÿÿÿÿcharacter/c_cub_police_2.gsc..main().{.self setModel("c_cub_police_fb");.self.voice = "cuban";.self.skeleton = "base";.}.precache().{.precacheModel("c_cub_police_fb");.}..ÿÿÿÿ....ÿÿÿÿcharacter/c_cub_dancer.gsc..main().{.self setModel("c_cub_dancer_fb");.self.voice = "cuban";.self.skeleton = "base";.}.precache().{.precacheModel("c_cub_dancer_fb");.}..ÿÿÿÿ....ÿÿÿÿcharacter/c_cub_police_1.gsc..main().{.self setModel("c_cub_police_fb");.self.voice = "cuban";.self.skeleton = "base";.}.precache().{.precacheModel("c_cub_police_fb");.}..ÿÿÿÿ...~ÿÿÿÿxmodelalias/c_cub_civilians_upperalias.gsc..main().{.a[0] = "c_cub_civilian";.a[1] = "c_cub_civilian_2";.a[2] = "c_cub_civilian_2";.a[3] = "c_cub_civilian";.return a;.}..ÿÿÿÿ...¤ÿÿÿÿcharacter/c_usa_cubcasual_bowman.gsc..main().{.self setModel("c_usa_cubcasual_bowman_fb");.self.voice = "american";.self.skeleton = "base";.}.precache().{.precacheModel("c_usa_cubcasual_bowman_fb");.}..ÿÿÿÿ...¢ÿÿÿÿcharacter/c_usa_cubrebel_barnes.gsc..main().{.self setModel("c_usa_cubrebel_barnes_fb");.self.voice = "american";.self.skeleton = "base";.}.precache().{.precacheModel("c_usa_cubrebel_barnes_fb");.}..ÿÿÿÿ...›ÿÿÿÿcharacter/c_cub_carlos_battle.gsc..main().{.self setModel("c_cub_carlos_battle_fb");.self.voice = "cuban";.self.skeleton = "base";.}.precache().{.precacheModel("c_cub_carlos_battle_fb");.}..ÿÿÿÿ....ÿÿÿÿcharacter/c_cub_police_3.gsc..main().{.self setModel("c_cub_police_fb");.self.voice = "cuban";.self.skeleton = "base";.}.precache().{.precacheModel("c_cub_police_fb");.}..ÿÿÿÿ...¢ÿÿÿÿcharacter/c_usa_cubrebel_bowman.gsc..main().{.self setModel("c_usa_cubrebel_bowman_fb");.self.voice = "american";.self.skeleton = "base";.}.precache().{.precacheModel("c_usa_cubrebel_bowman_fb");.}..ÿÿÿÿ....ÿÿÿÿcuba_a_temp. setup_civilian_override_animations();.ai = GetSpawnerArray();.civilians = [];.for( i = 0; i< ai.size; i++ ).{.if( IsSubStr( ToLower( ai[i].classname ), "civilian" ) ).civilians[civilians.size] = ai[i];.}.array_thread( civilians, ::add_spawn_function, ::civilian_spawn_init );.}.civilian_spawn_init( type ).{.self.is_civilian = true;.self.ignoreall = true;.self.ignoreme = true;.self.allowdeath = true;.self.gibbed = false;.self.head_gibbed = false;.self.grenadeawareness = 0;.self.badplaceawareness = 0;.self.ignoreSuppression = true;.self.suppressionThreshold = 1;.self.dontShootWhileMoving = true;.self.pathenemylookahead = 0;.self.badplaceawareness = 0;.self.chatInitialized = false;.self.dropweapon = false;.self.goalradius = 16;.self.a.oldgoalradius = self.goalradius;.self.disableExits = true;.self.disableArrivals = true;.self.specialReact = true;.self.a.runOnlyReact = true;.self disable_pain();.self PushPlayer( true );.animscripts\shared::placeWeaponOn( self.primaryweapon, "none" );.self allowedStances( "stand" );.if( !IsDefined( level.civilian_health ) ).level.civilian_health = 80;.self.health = level.civilian_health;.self set_civilian_run_cycle("scared_run");.self setup_civilian_attributes();.self thread handle_civilian_sounds();.self notify( "civilian_init_done" );.}.set_civilian_run_cycle( state ).{.self.alwaysRunForward = true;.self.a.combatrunanim = level.civilian[self.a.pose][state][ RandomInt( level.civilian[self.a.pose][state].size ) ];.self.run_noncombatanim = self.a.combatrunanim;.self.walk_combatanim = self.a.combatrunanim;.self.walk_noncombatanim = self.a.combatrunanim;.}.handle_civilian_sounds().{.self endon( "death" );.while(1).{.if( self.a.script != "move" || self.a.movement != "run" ).{.wait(0.5);.continue;.}.if( self.civilianSex == "male" ).{.self playsound ("chr_civ_scream_male");.}.else.{.self playsound ("chr_civ_scream_female");.}.wait( RandomIntRange( 2, 5 ) );.}.}.setup_civilian_attributes().{.classname.= ToLower( self.classname );.tokens = StrTok( classname, "_" );.if( ( tokens.size < 2 ) || ( tokens[1] != "civilian" ) ).return;.self.civilianSex = "male";.if( IsSubStr( classname, "female" ) ).self.civilianSex = "female";.self.nationality = "default";.if( IsSubStr( classname, "viet" ) ).self.nationality = "viet";.else if( IsSubStr( classname, "russian" ) ).self.nationality = "russian";.}.ÿÿÿÿ....ÿÿÿÿanimscripts/traverse/stairs_util.gsc.#include common_scripts\utility;.#include animscripts\anims;.build_traverse_data(traverseData, stair_anims, transition_stair_count_in, transition_stair_count_out).{.stair_count = self get_stair_count() - transition_stair_count_in - transition_stair_count_out;.if (stair_count < 0).{.traverseData[ "traverseAnimTransOut" ] = undefined;.}.else.{.traverseData[ "traverseAnim" ] = build_anim_array(stair_anims, stair_count);.}.traverseData[ "traverseAnimType" ] = "sequence";.traverseData[ "traverseStance" ] = "stand";.traverseData[ "traverseAlertness" ] = "casual";.traverseData[ "traverseMovement" ] = "run";.traverseData[ "traverseAllowAiming" ].= true;.traverseData[ "traverseAimUp" ] = animArray( "staircase_aim_up", "move" );.traverseData[ "traverseAimDown" ] = animArray( "staircase_aim_down", "move" );.traverseData[ "traverseAimLeft" ] = animArray( "staircase_aim_left", "move" );.traverseData[ "traverseAimRight" ] = animArray( "staircase_aim_right", "move" );.traverseData[ "traverseRagdollDeath" ].= true;.return traverseData;.}.build_anim_array(stair_anims, stair_count).{.ret_stair_anims = [];.potential_sizes = GetArrayKeys(stair_anims);.while (stair_count > 0).{.sizes = [];.for (i = 0; i < potential_sizes.size; i++).{.if (potential_sizes[i] <= stair_count).{.sizes = array_add(sizes, potential_sizes[i]);.}.}.assertex(sizes.size, "No potential animation for stair count.");.random_size = random(sizes);.if (random_size <= stair_count).{.ret_stair_anims = array_add(ret_stair_anims, stair_anims[random_size]);.stair_count -= random_size;.}.}.return ret_stair_anims;.}.get_stair_count().{.start_node = self GetNegotiationStartNode();.AssertEx(IsDefined(start_node.script_int), "Stair traversals must have a script_int with the number of stairs.");.return start_node.script_int;.}.ÿÿÿÿ...¦ÿÿÿÿanimscripts/traverse/mantle_over_40.gsc.#include common_scripts\utility;.#include animscripts\traverse\shared;.#include animscripts\anims;.#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement