Update scripts to better decompiled scripts.

This commit is contained in:
JezuzLizard
2023-10-26 13:13:39 -07:00
parent 26ba037e40
commit d02a9efd43
2879 changed files with 493771 additions and 466190 deletions

View File

@ -0,0 +1,19 @@
// T6 GSC SOURCE
// Decompiled by https://github.com/xensik/gsc-tool
#include codescripts\character;
setmodelfromarray( a )
{
self setmodel( a[randomint( a.size )] );
}
precachemodelarray( a )
{
for ( i = 0; i < a.size; i++ )
precachemodel( a[i] );
}
attachfromarray( a )
{
self attach( codescripts\character::randomelement( a ), "", 1 );
}

View File

@ -0,0 +1,24 @@
// T6 GSC SOURCE
// Decompiled by https://github.com/xensik/gsc-tool
main()
{
assert( isdefined( self ) );
wait 0;
if ( isdefined( self ) )
{
/#
if ( isdefined( self.classname ) )
{
if ( self.classname == "trigger_once" || self.classname == "trigger_radius" || self.classname == "trigger_multiple" )
{
println( "" );
println( "*** trigger debug: delete.gsc is deleting trigger with ent#: " + self getentitynumber() + " at origin: " + self.origin );
println( "" );
}
}
#/
self delete();
}
}

View File

@ -0,0 +1,29 @@
// 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;
}
}
}
}