Fixed BO2 DevBlock Bug

This commit is contained in:
InfinityLoader
2023-10-28 00:17:17 -04:00
parent fbfff3c275
commit 1a9be4df02
597 changed files with 21918 additions and 12941 deletions

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 5
* Decompile Time: 21 ms
* Timestamp: 10/27/2023 3:02:01 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:25 AM
*******************************************************************/
#include common_scripts/utility;
@ -19,8 +19,11 @@ main()
self endon("killanimscript");
self setaimanimweights(0,0);
/#
combatidle();
debug_allow_combat()
if(!(debug_allow_combat()))
{
combatidle();
return;
}
#/
if(IsDefined(level.hostmigrationtimer))
{

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 1
* Decompile Time: 10 ms
* Timestamp: 10/27/2023 3:02:02 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:26 AM
*******************************************************************/
#include maps/mp/animscripts/shared;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 2
* Decompile Time: 8 ms
* Timestamp: 10/27/2023 3:02:02 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:26 AM
*******************************************************************/
#include maps/mp/animscripts/shared;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 3
* Decompile Time: 35 ms
* Timestamp: 10/27/2023 3:02:03 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:26 AM
*******************************************************************/
#include maps/mp/animscripts/dog_combat;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 1
* Decompile Time: 7 ms
* Timestamp: 10/27/2023 3:02:03 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:26 AM
*******************************************************************/
#include maps/mp/animscripts/shared;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 6
* Decompile Time: 87 ms
* Timestamp: 10/27/2023 3:02:04 AM
* Decompile Time: 9 ms
* Timestamp: 10/28/2023 12:11:27 AM
*******************************************************************/
#include maps/mp/animscripts/dog_stop;
@ -43,8 +43,10 @@ main()
self setaimanimweights(0,0);
do_movement = 1;
/#
do_movement = 0;
debug_allow_movement()
if(!(debug_allow_movement()))
{
do_movement = 0;
}
#/
if(IsDefined(level.hostmigrationtimer))
{
@ -105,8 +107,10 @@ moveloop()
{
do_movement = 1;
/#
do_movement = 0;
debug_allow_movement()
if(!(debug_allow_movement()))
{
do_movement = 0;
}
#/
if(IsDefined(level.hostmigrationtimer))
{
@ -172,9 +176,14 @@ stopmove()
shouldrun()
{
/#
return 1;
return 0;
Stack-Empty ? GetDvarInt(#"DFB12081") != 0 : GetDvarInt(#"D5D7999B") != 0
if(GetDvarInt(#"DFB12081") != 0)
{
return 1;
}
else if(GetDvarInt(#"D5D7999B") != 0)
{
return 0;
}
#/
if(IsDefined(self.enemy))
{

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 1
* Decompile Time: 40 ms
* Timestamp: 10/27/2023 3:02:04 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:27 AM
*******************************************************************/
#include maps/mp/animscripts/shared;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 6
* Decompile Time: 71 ms
* Timestamp: 10/27/2023 3:02:05 AM
* Decompile Time: 1 ms
* Timestamp: 10/28/2023 12:11:27 AM
*******************************************************************/
#include maps/mp/animscripts/shared;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 10
* Decompile Time: 60 ms
* Timestamp: 10/27/2023 3:02:06 AM
* Decompile Time: 1 ms
* Timestamp: 10/28/2023 12:11:27 AM
*******************************************************************/
#include maps/mp/animscripts/shared;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 12
* Decompile Time: 38 ms
* Timestamp: 10/27/2023 3:02:06 AM
* Decompile Time: 2 ms
* Timestamp: 10/28/2023 12:11:27 AM
*******************************************************************/
#include common_scripts/utility;
@ -39,8 +39,10 @@ growling()
handlenotetrack(note,flagname,customfunction,var1)
{
/#
println("dog notetrack: " + flagname + " " + note + " " + GetTime());
GetDvarInt(#"6EBEB982")
if(GetDvarInt(#"6EBEB982"))
{
println("dog notetrack: " + flagname + " " + note + " " + GetTime());
}
#/
if(isai(self) && self.type == "dog")
{
@ -60,7 +62,8 @@ GetDvarInt(#"6EBEB982")
default:
return [[ customfunction ]](note);
return [[ customfunction ]](note,var1);
Stack-Empty ? IsDefined(customfunction) : IsDefined(var1)
IsDefined(var1)
IsDefined(customfunction)
break;
}
}

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 8
* Decompile Time: 43 ms
* Timestamp: 10/27/2023 3:02:00 AM
* Decompile Time: 3 ms
* Timestamp: 10/28/2023 12:11:16 AM
*******************************************************************/
#include common_scripts/utility;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 1
* Decompile Time: 4 ms
* Timestamp: 10/27/2023 3:02:01 AM
* Decompile Time: 2774 ms
* Timestamp: 10/28/2023 12:11:25 AM
*******************************************************************/
#include maps/mp/animscripts/traverse/shared;
@ -40,11 +40,11 @@ main()
break;
default:
traversealias = self [[ level.zm_mantle_over_40_move_speed_override ]]();
/#
assertmsg("Zombie \'" + self.classname + "\' move speed of \'" + self.zombie_move_speed + "\' is not supported for mantle_over_40.");
#/
IsDefined(level.zm_mantle_over_40_move_speed_override)
if(IsDefined(level.zm_mantle_over_40_move_speed_override))
traversealias = self [[ level.zm_mantle_over_40_move_speed_override ]]();
/# else
assertmsg("Zombie \'" + self.classname + "\' move speed of \'" + self.zombie_move_speed + "\' is not supported for mantle_over_40.");
#/
break;
}
}
@ -53,6 +53,5 @@ main()
traversestate = "zm_traverse_barrier_crawl";
traversealias = "barrier_crawl";
}
self dotraverse(traversestate,traversealias);
self dotraverse( traversestate, traversealias );
}

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 6
* Decompile Time: 28 ms
* Timestamp: 10/27/2023 3:02:01 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:25 AM
*******************************************************************/
#include common_scripts/utility;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 10
* Decompile Time: 26 ms
* Timestamp: 10/27/2023 3:02:07 AM
* Decompile Time: 3 ms
* Timestamp: 10/28/2023 12:11:27 AM
*******************************************************************/
//Function Number: 1
@ -32,9 +32,17 @@ anim_get_dvar(dvar,def)
set_orient_mode(mode,val1)
{
/#
println("DOG: Setting orient mode: " + mode + " " + val1 + " " + GetTime());
println("DOG: Setting orient mode: " + mode + " " + GetTime());
Stack-Empty ? level.dog_debug_orient == self getentnum() : IsDefined(val1)
if(level.dog_debug_orient == self getentnum())
{
if(IsDefined(val1))
{
println("DOG: Setting orient mode: " + mode + " " + val1 + " " + GetTime());
}
else
{
println("DOG: Setting orient mode: " + mode + " " + GetTime());
}
}
#/
if(IsDefined(val1))
{
@ -50,10 +58,15 @@ Stack-Empty ? level.dog_debug_orient == self getentnum() : IsDefined(val1)
debug_anim_print(text)
{
/#
println(text + " " + GetTime());
println(text + " " + GetTime());
level.dog_debug_anims_ent == self getentnum()
level.dog_debug_anims
if(level.dog_debug_anims)
{
println(text + " " + GetTime());
}
if(level.dog_debug_anims_ent == self getentnum())
{
println(text + " " + GetTime());
}
#/
}
@ -61,17 +74,19 @@ level.dog_debug_anims
debug_turn_print(text,line)
{
/#
duration = 200;
currentyawcolor = (1,1,1);
lookaheadyawcolor = (1,0,0);
desiredyawcolor = (1,1,0);
currentyaw = AngleClamp180(self.angles[1]);
desiredyaw = AngleClamp180(self.desiredangle);
lookaheaddir = self.lookaheaddir;
lookaheadangles = VectorToAngles(lookaheaddir);
lookaheadyaw = AngleClamp180(lookaheadangles[1]);
println(text + " " + GetTime() + " cur: " + currentyaw + " look: " + lookaheadyaw + " desired: " + desiredyaw);
level.dog_debug_turns == self getentnum()
if(level.dog_debug_turns == self getentnum())
{
duration = 200;
currentyawcolor = (1,1,1);
lookaheadyawcolor = (1,0,0);
desiredyawcolor = (1,1,0);
currentyaw = AngleClamp180(self.angles[1]);
desiredyaw = AngleClamp180(self.desiredangle);
lookaheaddir = self.lookaheaddir;
lookaheadangles = VectorToAngles(lookaheaddir);
lookaheadyaw = AngleClamp180(lookaheadangles[1]);
println(text + " " + GetTime() + " cur: " + currentyaw + " look: " + lookaheadyaw + " desired: " + desiredyaw);
}
#/
}
@ -100,8 +115,12 @@ current_yaw_line_debug(duration)
currentyawcolor[1] = (1,0,1);
current_color_index = 0;
start_time = GetTime();
level.lastdebugheight = 15;
for(;;)
if(!(IsDefined(level.lastdebugheight)))
{
level.lastdebugheight = 15;
}
while(GetTime() - start_time < 1000)
{
pos1 = (self.origin[0],self.origin[1],self.origin[2] + level.lastdebugheight);
pos2 = current_color_index + 1 * 10 + VectorScale(AnglesToForward(self.angles));
@ -109,10 +128,15 @@ current_yaw_line_debug(duration)
current_color_index = current_color_index + 1 % currentyawcolor.size;
wait(0.05);
}
level.lastdebugheight = 30;
level.lastdebugheight = 15;
(GetTime() - start_time < 1000) ? pos1 : level.lastdebugheight == 15
IsDefined(level.lastdebugheight)
if(level.lastdebugheight == 15)
{
level.lastdebugheight = 30;
}
else
{
level.lastdebugheight = 15;
}
#/
}

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 3
* Decompile Time: 26 ms
* Timestamp: 10/27/2023 3:02:07 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:28 AM
*******************************************************************/
#include common_scripts/utility;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 13
* Decompile Time: 71 ms
* Timestamp: 10/27/2023 3:02:08 AM
* Decompile Time: 3 ms
* Timestamp: 10/28/2023 12:11:28 AM
*******************************************************************/
#include common_scripts/utility;
@ -132,9 +132,8 @@ flame_death_fx()
{
/#
println("^3ANIMSCRIPT WARNING: You are missing level._effect[\"character_fire_death_torso\"], please set it in your levelname_fx.gsc. Use \"env/fire/fx_fire_player_torso\");
#/
}
#/
if(IsDefined(level._effect) && IsDefined(level._effect["character_fire_death_sm"]))
{
wait(1);
@ -162,8 +161,8 @@ flame_death_fx()
{
/#
println("^3ANIMSCRIPT WARNING: You are missing level._effect[\"character_fire_death_sm\"], please set it in your levelname_fx.gsc. Use \"env/fire/fx_fire_zombie_md\");
#/
}
#/
}
//Function Number: 5

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 23
* Decompile Time: 116 ms
* Timestamp: 10/27/2023 3:02:08 AM
* Decompile Time: 7 ms
* Timestamp: 10/28/2023 12:11:28 AM
*******************************************************************/
#include common_scripts/utility;
@ -21,8 +21,11 @@ main()
self endon("killanimscript");
self setaimanimweights(0,0);
/#
combatidle();
debug_allow_combat()
if(!(debug_allow_combat()))
{
combatidle();
return;
}
#/
if(IsDefined(level.hostmigrationtimer))
{
@ -127,8 +130,10 @@ meleebiteattackplayer2(player)
self animmode("gravity");
self.safetochangescript = 0;
/#
iprintln("dog " + self getentnum() + " attack player " + GetTime());
GetDvarInt(#"7B06BF0D")
if(GetDvarInt(#"7B06BF0D"))
{
iprintln("dog " + self getentnum() + " attack player " + GetTime());
}
#/
player setnextdogattackallowtime(200);
if(dog_cant_kill_in_one_hit(player))
@ -226,7 +231,7 @@ handlemeleebiteattacknotetracks(note,player)
melee_time = level.dogmeleebiteattacktime;
self thread orienttoplayerdeadreckoning(player,melee_time);
break;
Stack-Empty ? Stack-Empty : IsDefined(level.dogmeleebiteattacktime)
IsDefined(level.dogmeleebiteattacktime)
break;
}
}
@ -243,7 +248,9 @@ handlemeleefinishattacknotetracks(note,player)
break;
attackmiss();
return 1;
(IsDefined(level.dogmeleefinishattacktime)) ? IsDefined(hitent) && isalive(player) : hitent == player
hitent == player
IsDefined(hitent) && isalive(player)
IsDefined(level.dogmeleefinishattacktime)
break;
case "dog_early":
@ -268,7 +275,7 @@ handlemeleefinishattacknotetracks(note,player)
melee_time = level.dogmeleefinishattacktime;
self thread orienttoplayerdeadreckoning(player,melee_time);
break;
Stack-Empty ? Stack-Empty : IsDefined(level.dogmeleefinishattacktime)
IsDefined(level.dogmeleefinishattacktime)
break;
}
}

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 1
* Decompile Time: 10 ms
* Timestamp: 10/27/2023 3:02:09 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:28 AM
*******************************************************************/
#include maps/mp/animscripts/utility;

View File

@ -5,7 +5,7 @@
* Platform: PC
* Function Count: 1
* Decompile Time: 0 ms
* Timestamp: 10/27/2023 3:02:09 AM
* Timestamp: 10/28/2023 12:11:29 AM
*******************************************************************/
//Function Number: 1

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 2
* Decompile Time: 34 ms
* Timestamp: 10/27/2023 3:02:10 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:29 AM
*******************************************************************/
#include maps/mp/animscripts/dog_move;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 1
* Decompile Time: 60 ms
* Timestamp: 10/27/2023 3:02:10 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:29 AM
*******************************************************************/
#include maps/mp/animscripts/shared;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 9
* Decompile Time: 235 ms
* Timestamp: 10/27/2023 3:02:12 AM
* Decompile Time: 6 ms
* Timestamp: 10/28/2023 12:11:29 AM
*******************************************************************/
#include maps/mp/animscripts/dog_stop;
@ -45,8 +45,10 @@ main()
self setaimanimweights(0,0);
do_movement = 1;
/#
do_movement = 0;
debug_allow_movement()
if(!(debug_allow_movement()))
{
do_movement = 0;
}
#/
if(IsDefined(level.hostmigrationtimer))
{
@ -107,8 +109,10 @@ moveloop()
{
do_movement = 1;
/#
do_movement = 0;
debug_allow_movement()
if(!(debug_allow_movement()))
{
do_movement = 0;
}
#/
if(IsDefined(level.hostmigrationtimer))
{

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 1
* Decompile Time: 3 ms
* Timestamp: 10/27/2023 3:02:12 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:29 AM
*******************************************************************/
#include maps/mp/animscripts/utility;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 7
* Decompile Time: 71 ms
* Timestamp: 10/27/2023 3:02:13 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:30 AM
*******************************************************************/
#include maps/mp/animscripts/shared;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 10
* Decompile Time: 42 ms
* Timestamp: 10/27/2023 3:02:13 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:30 AM
*******************************************************************/
#include maps/mp/animscripts/shared;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 1
* Decompile Time: 15 ms
* Timestamp: 10/27/2023 3:02:14 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:30 AM
*******************************************************************/
#include maps/mp/animscripts/shared;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 7
* Decompile Time: 60 ms
* Timestamp: 10/27/2023 3:02:15 AM
* Decompile Time: 1 ms
* Timestamp: 10/28/2023 12:11:30 AM
*******************************************************************/
#include common_scripts/utility;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 1
* Decompile Time: 3 ms
* Timestamp: 10/27/2023 3:02:15 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:30 AM
*******************************************************************/
#include maps/mp/animscripts/shared;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 8
* Decompile Time: 116 ms
* Timestamp: 10/27/2023 3:02:16 AM
* Decompile Time: 6 ms
* Timestamp: 10/28/2023 12:11:31 AM
*******************************************************************/
#include common_scripts/utility;
@ -15,119 +15,120 @@
#include maps/mp/animscripts/zm_utility;
//Function Number: 1
for(;;)
{
meleecombat()
{
self endon("end_melee");
self endon("killanimscript");
meleecombat()
{
self endon("end_melee");
self endon("killanimscript");
/#
assert(canmeleeanyrange());
assert(canmeleeanyrange());
#/
self orientmode("face enemy");
if(is_true(self.sliding_on_goo))
{
self animmode("slide");
}
else
{
self animmode("zonly_physics");
self orientmode("face enemy");
if(is_true(self.sliding_on_goo))
{
self animmode("slide");
}
else
{
self animmode("zonly_physics");
}
for(;;)
{
}
if(IsDefined(self.marked_for_death))
{
return;
}
if(IsDefined(self.marked_for_death))
{
return;
}
if(IsDefined(self.enemy))
{
angles = VectorToAngles(self.enemy.origin - self.origin);
self orientmode("face angle",angles[1]);
}
if(IsDefined(self.enemy))
{
angles = VectorToAngles(self.enemy.origin - self.origin);
self orientmode("face angle",angles[1]);
}
if(IsDefined(self.zmb_vocals_attack))
{
self playsound(self.zmb_vocals_attack);
}
if(IsDefined(self.zmb_vocals_attack))
{
self playsound(self.zmb_vocals_attack);
}
if(IsDefined(self.nochangeduringmelee) && self.nochangeduringmelee)
{
self.safetochangescript = 0;
}
if(IsDefined(self.nochangeduringmelee) && self.nochangeduringmelee)
{
self.safetochangescript = 0;
}
if(IsDefined(self.is_inert) && self.is_inert)
{
return;
}
if(IsDefined(self.is_inert) && self.is_inert)
{
return;
}
set_zombie_melee_anim_state(self);
if(IsDefined(self.melee_anim_func))
{
self thread [[ self.melee_anim_func ]]();
}
set_zombie_melee_anim_state(self);
if(IsDefined(self.melee_anim_func))
while(1)
{
self waittill("melee_anim",note);
if(note == "end")
{
self thread [[ self.melee_anim_func ]]();
break;
}
if(1)
else
{
self waittill("melee_anim",note);
if(note == "end")
if(note == "fire")
{
break;
}
else
{
if(note == "fire")
if(!(IsDefined(self.enemy)))
{
if(!(IsDefined(self.enemy)))
{
break;
}
if(IsDefined(self.dont_die_on_me) && self.dont_die_on_me)
{
break;
}
self.enemy notify("melee_swipe",self);
oldhealth = self.enemy.health;
self melee();
if(!(IsDefined(self.enemy)))
{
break;
}
if(self.enemy.health >= oldhealth)
{
if(IsDefined(self.melee_miss_func))
{
self [[ self.melee_miss_func ]]();
}
else if(IsDefined(level.melee_miss_func))
{
self [[ level.melee_miss_func ]]();
}
}
/#
zombie_eye = self geteye();
player_eye = self.enemy geteye();
trace = bullettrace(zombie_eye,player_eye,1,self);
hitpos = trace["position"];
dist = distance(zombie_eye,hitpos);
iprintln("melee HIT " + dist);
self.enemy.health < oldhealth
GetDvarInt(#"7F11F572")
#/
continue;
break;
}
if(note == "stop")
if(IsDefined(self.dont_die_on_me) && self.dont_die_on_me)
{
if(!(cancontinuetomelee()))
break;
}
self.enemy notify("melee_swipe",self);
oldhealth = self.enemy.health;
self melee();
if(!(IsDefined(self.enemy)))
{
break;
}
if(self.enemy.health >= oldhealth)
{
if(IsDefined(self.melee_miss_func))
{
break;
self [[ self.melee_miss_func ]]();
}
else if(IsDefined(level.melee_miss_func))
{
self [[ level.melee_miss_func ]]();
}
}
/#
if(GetDvarInt(#"7F11F572"))
{
if(self.enemy.health < oldhealth)
{
zombie_eye = self geteye();
player_eye = self.enemy geteye();
trace = bullettrace(zombie_eye,player_eye,1,self);
hitpos = trace["position"];
dist = distance(zombie_eye,hitpos);
iprintln("melee HIT " + dist);
}
}
#/
continue;
}
if(note == "stop")
{
if(!(cancontinuetomelee()))
{
break;
}
}
}

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 14
* Decompile Time: 82 ms
* Timestamp: 10/27/2023 3:02:18 AM
* Decompile Time: 1 ms
* Timestamp: 10/28/2023 12:11:31 AM
*******************************************************************/
#include common_scripts/utility;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 1
* Decompile Time: 122 ms
* Timestamp: 10/27/2023 3:02:19 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:31 AM
*******************************************************************/
#include common_scripts/utility;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 4
* Decompile Time: 49 ms
* Timestamp: 10/27/2023 3:02:20 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:31 AM
*******************************************************************/
#include maps/mp/animscripts/shared;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 3
* Decompile Time: 177 ms
* Timestamp: 10/27/2023 3:02:21 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:31 AM
*******************************************************************/
//Function Number: 1

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 32
* Decompile Time: 205 ms
* Timestamp: 10/27/2023 3:02:23 AM
* Decompile Time: 18 ms
* Timestamp: 10/28/2023 12:11:32 AM
*******************************************************************/
#include maps/mp/animscripts/shared;
@ -369,7 +369,8 @@ handlenotetrack(note,flagname,customfunction,var1)
default:
return [[ customfunction ]](note);
return [[ customfunction ]](note,var1);
Stack-Empty ? IsDefined(customfunction) : IsDefined(var1)
IsDefined(var1)
IsDefined(customfunction)
break;
}
}

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 1
* Decompile Time: 10 ms
* Timestamp: 10/27/2023 3:02:23 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:32 AM
*******************************************************************/
#include maps/mp/animscripts/shared;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 1
* Decompile Time: 2 ms
* Timestamp: 10/27/2023 3:02:24 AM
* Decompile Time: 0 ms
* Timestamp: 10/28/2023 12:11:32 AM
*******************************************************************/
#include maps/mp/animscripts/shared;

View File

@ -4,8 +4,8 @@
* Game: Call of Duty: Black Ops 2
* Platform: PC
* Function Count: 86
* Decompile Time: 212 ms
* Timestamp: 10/27/2023 3:02:25 AM
* Decompile Time: 8 ms
* Timestamp: 10/28/2023 12:11:32 AM
*******************************************************************/
#include maps/mp/_utility;
@ -505,14 +505,11 @@ drawstringtime(msg,org,color,timer)
{
/#
maxtime = timer * 20;
i = 0;
for(;;)
for(i = 0;i < maxtime;i++)
{
print3d(org,msg,color,1,1);
wait(0.05);
i++;
}
i < maxtime
#/
}
@ -523,17 +520,30 @@ showlastenemysightpos(string)
self notify("got known enemy2");
self endon("got known enemy2");
self endon("death");
return;
color = (0.4,0.7,1);
color = (1,0.7,0.4);
for(;;)
if(!(isvalidenemy(self.enemy)))
{
return;
}
if(self.enemy.team == "allies")
{
color = (0.4,0.7,1);
}
else
{
color = (1,0.7,0.4);
}
while(1)
{
wait(0.05);
if(!(IsDefined(self.lastenemysightpos)))
{
continue;
}
print3d(self.lastenemysightpos,string,color,1,2.15);
}
IsDefined(self.lastenemysightpos)
1
Stack-Empty ? isvalidenemy(self.enemy) : self.enemy.team == "allies"
#/
}
@ -554,15 +564,20 @@ debugposinternal(org,string,size)
ent = spawnstruct();
ent thread debugtimeout();
ent endon("timeout");
color = (0.4,0.7,1);
color = (1,0.7,0.4);
for(;;)
if(self.enemy.team == "allies")
{
color = (0.4,0.7,1);
}
else
{
color = (1,0.7,0.4);
}
while(1)
{
wait(0.05);
print3d(org,string,color,1,size);
}
1
Stack-Empty ? Stack-Empty : self.enemy.team == "allies"
#/
}
@ -584,14 +599,11 @@ showdebugproc(frompoint,topoint,color,printtime)
/#
self endon("death");
timer = printtime * 20;
i = 0;
for(;;)
for(i = 0;i < timer;i = i + 1)
{
wait(0.05);
line(frompoint,topoint,color);
i = i + 1;
}
i < timer
#/
}
@ -752,14 +764,11 @@ print3dtime(timer,org,msg,color,alpha,scale)
{
/#
newtime = timer / 0.05;
i = 0;
for(;;)
for(i = 0;i < newtime;i++)
{
print3d(org,msg,color,alpha,scale);
wait(0.05);
i++;
}
i < newtime
#/
}
@ -770,15 +779,12 @@ print3drise(org,msg,color,alpha,scale)
newtime = 100;
up = 0;
org = org;
i = 0;
for(;;)
for(i = 0;i < newtime;i++)
{
up = up + 0.5;
print3d(org + (0,0,up),msg,color,alpha,scale);
wait(0.05);
i++;
}
i < newtime
#/
}
@ -932,11 +938,13 @@ animarray(animname)
assert(IsDefined(self.a.array));
#/
/#
dumpanimarray();
if(!(IsDefined(self.a.array[animname])))
{
dumpanimarray();
/#
assert(IsDefined(self.a.array[animname]),"self.a.array[ \" + animname + "\" ] is undefined");
assert(IsDefined(self.a.array[animname]),"self.a.array[ \" + animname + "\" ] is undefined");
}
#/
IsDefined(self.a.array[animname])
#/
return self.a.array[animname];
}
@ -948,11 +956,13 @@ animarrayanyexist(animname)
assert(IsDefined(self.a.array));
#/
/#
dumpanimarray();
if(!(IsDefined(self.a.array[animname])))
{
dumpanimarray();
/#
assert(IsDefined(self.a.array[animname]),"self.a.array[ \" + animname + "\" ] is undefined");
assert(IsDefined(self.a.array[animname]),"self.a.array[ \" + animname + "\" ] is undefined");
}
#/
IsDefined(self.a.array[animname])
#/
return self.a.array[animname].size > 0;
}
@ -964,11 +974,13 @@ animarraypickrandom(animname)
assert(IsDefined(self.a.array));
#/
/#
dumpanimarray();
if(!(IsDefined(self.a.array[animname])))
{
dumpanimarray();
/#
assert(IsDefined(self.a.array[animname]),"self.a.array[ \" + animname + "\" ] is undefined");
assert(IsDefined(self.a.array[animname]),"self.a.array[ \" + animname + "\" ] is undefined");
}
#/
IsDefined(self.a.array[animname])
#/
/#
assert(self.a.array[animname].size > 0);
@ -991,14 +1003,17 @@ dumpanimarray()
/#
println("self.a.array:");
keys = getarraykeys(self.a.array);
i = 0;
for(;;)
for(i = 0;i < keys.size;i++)
{
println(" array[ \" + keys[i] + "\" ] = {array of size " + self.a.array[keys[i]].size + "}");
println(" array[ \" + keys[i] + "\" ] = ",self.a.array[keys[i]]);
i++;
if(isarray(self.a.array[keys[i]]))
{
println(" array[ \" + keys[i] + "\" ] = {array of size " + self.a.array[keys[i]].size + "}");
}
else
{
println(" array[ \" + keys[i] + "\" ] = ",self.a.array[keys[i]]);
}
}
Stack-Empty ? i < keys.size : isarray(self.a.array[keys[i]])
#/
}
@ -1261,10 +1276,15 @@ get_skeleton()
debug_anim_print(text)
{
/#
println(text + " " + GetTime());
println(text + " " + GetTime());
IsDefined(level.dog_debug_anims_ent) && level.dog_debug_anims_ent == self getentnum()
IsDefined(level.dog_debug_anims) && level.dog_debug_anims
if(IsDefined(level.dog_debug_anims) && level.dog_debug_anims)
{
println(text + " " + GetTime());
}
if(IsDefined(level.dog_debug_anims_ent) && level.dog_debug_anims_ent == self getentnum())
{
println(text + " " + GetTime());
}
#/
}
@ -1272,17 +1292,19 @@ IsDefined(level.dog_debug_anims) && level.dog_debug_anims
debug_turn_print(text,line)
{
/#
duration = 200;
currentyawcolor = (1,1,1);
lookaheadyawcolor = (1,0,0);
desiredyawcolor = (1,1,0);
currentyaw = AngleClamp180(self.angles[1]);
desiredyaw = AngleClamp180(self.desiredangle);
lookaheaddir = self.lookaheaddir;
lookaheadangles = VectorToAngles(lookaheaddir);
lookaheadyaw = AngleClamp180(lookaheadangles[1]);
println(text + " " + GetTime() + " cur: " + currentyaw + " look: " + lookaheadyaw + " desired: " + desiredyaw);
IsDefined(level.dog_debug_turns) && level.dog_debug_turns == self getentnum()
if(IsDefined(level.dog_debug_turns) && level.dog_debug_turns == self getentnum())
{
duration = 200;
currentyawcolor = (1,1,1);
lookaheadyawcolor = (1,0,0);
desiredyawcolor = (1,1,0);
currentyaw = AngleClamp180(self.angles[1]);
desiredyaw = AngleClamp180(self.desiredangle);
lookaheaddir = self.lookaheaddir;
lookaheadangles = VectorToAngles(lookaheaddir);
lookaheadyaw = AngleClamp180(lookaheadangles[1]);
println(text + " " + GetTime() + " cur: " + currentyaw + " look: " + lookaheadyaw + " desired: " + desiredyaw);
}
#/
}