This commit is contained in:
reaaLx
2024-09-04 23:46:54 +10:00
parent 5f950a3356
commit 1ea2370337
471 changed files with 108331 additions and 0 deletions

View File

@ -0,0 +1,4 @@
gscsetModelFromArray( a )
{
self setModel( a[ randomint( a.size ) ] );
}

7
codescripts/delete.gsc Normal file
View File

@ -0,0 +1,7 @@
main()
{
assert(isdefined(self));
wait 0;
if (isdefined(self))
self delete();
}

23
codescripts/struct.gsc Normal file
View File

@ -0,0 +1,23 @@
InitStructs()
{
level._struct = [];
}
CreateStruct()
{
struct = spawnstruct();
level._struct[level._struct.size] = struct;
return struct;
}
FindStruct( position )
{
for( i = 0; i < level._struct.size; i++ )
{
if( DistanceSquared( level._struct[i].origin, position ) < 1 )
{
return level._struct[i];
}
}
return undefined;
}