mirror of
https://github.com/InfinityLoader/IL-GSC.git
synced 2025-06-11 18:57:57 -05:00
Added AW, BO2, Ghosts, IW, MWR, WW2 Scripts
This commit is contained in:
41
BO2/PC/MP/codescripts/struct.gsc
Normal file
41
BO2/PC/MP/codescripts/struct.gsc
Normal file
@ -0,0 +1,41 @@
|
||||
/*******************************************************************
|
||||
* Decompiled By: Bog
|
||||
* Decompiled File: codescripts\struct.gsc
|
||||
* Game: Call of Duty: Black Ops 2
|
||||
* Platform: PC
|
||||
* Function Count: 3
|
||||
* Decompile Time: 1 ms
|
||||
* Timestamp: 10/27/2023 2:59:43 AM
|
||||
*******************************************************************/
|
||||
|
||||
//Function Number: 1
|
||||
initstructs()
|
||||
{
|
||||
level.struct = [];
|
||||
}
|
||||
|
||||
//Function Number: 2
|
||||
createstruct()
|
||||
{
|
||||
struct = spawnstruct();
|
||||
level.struct[level.struct.size] = struct;
|
||||
return struct;
|
||||
}
|
||||
|
||||
//Function Number: 3
|
||||
findstruct(position)
|
||||
{
|
||||
foreach(key, _ in level.struct_class_names)
|
||||
{
|
||||
foreach(s_array in level.struct_class_names[key])
|
||||
{
|
||||
foreach(struct in s_array)
|
||||
{
|
||||
if(distancesquared(struct.origin,position) < 1)
|
||||
{
|
||||
return struct;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user