Files
IL-GSC/WW2/PC/ALL/maps/mp/_minimap_location_callout.gsc
2023-10-27 03:49:01 -04:00

65 lines
1.3 KiB
Plaintext

/*******************************************************************
* Decompiled By: Bog
* Decompiled File: maps\mp\_minimap_location_callout.gsc
* Game: Call of Duty: WWII
* Platform: PC
* Function Count: 3
* Decompile Time: 46 ms
* Timestamp: 10/27/2023 3:21:33 AM
*******************************************************************/
//Function Number: 1
func_00D5()
{
level.var_620F = getentarray("minimap_location_callout","targetname");
}
//Function Number: 2
func_63C2()
{
level endon("game_ended");
self endon("death");
self endon("disconnect");
self.var_2942 = -1;
self setclientomnvar("ui_minimap_location_callout",-1);
wait 0.05;
func_21D1(1);
while(isdefined(self))
{
wait(0.1);
func_21D1(0);
}
}
//Function Number: 3
func_21D1(param_00)
{
var_01 = 0;
var_02 = -1;
foreach(var_04 in level.var_620F)
{
if(var_04 method_858B(self.var_116))
{
var_01 = 1;
var_02 = int(var_04.var_165);
continue;
}
}
if(var_01)
{
if(param_00 || var_02 != self.var_2942)
{
self.var_2942 = var_02;
self setclientomnvar("ui_minimap_location_callout",self.var_2942);
}
self.var_99F2 = gettime();
}
if(!var_01 && self.var_2942 != -1 && !isdefined(self.var_99F2) || self.var_99F2 + 2000 < gettime())
{
self.var_2942 = -1;
self setclientomnvar("ui_minimap_location_callout",-1);
}
}