mirror of
https://github.com/JezuzLizard/Recompilable-gscs-for-BO2-zombies-and-multiplayer.git
synced 2025-06-08 01:47:50 -05:00
30 lines
576 B
Plaintext
30 lines
576 B
Plaintext
// T6 GSC SOURCE
|
|
// Decompiled by https://github.com/xensik/gsc-tool
|
|
|
|
initstructs()
|
|
{
|
|
level.struct = [];
|
|
}
|
|
|
|
createstruct()
|
|
{
|
|
struct = spawnstruct();
|
|
level.struct[level.struct.size] = struct;
|
|
return struct;
|
|
}
|
|
|
|
findstruct( position )
|
|
{
|
|
foreach ( key, _ in level.struct_class_names )
|
|
{
|
|
foreach ( val, s_array in level.struct_class_names[key] )
|
|
{
|
|
foreach ( struct in s_array )
|
|
{
|
|
if ( distancesquared( struct.origin, position ) < 1 )
|
|
return struct;
|
|
}
|
|
}
|
|
}
|
|
}
|