mirror of
https://github.com/JezuzLizard/Recompilable-gscs-for-BO2-zombies-and-multiplayer.git
synced 2025-06-28 11:37:51 -05:00
Minor fixes for already checked scripts.
This commit is contained in:
@ -1401,7 +1401,7 @@ onspawnplayer( predictedspawn ) //fixed checked changed partially to match cerbe
|
||||
}
|
||||
if ( isDefined( level.customspawnlogic ) )
|
||||
{
|
||||
spawnpoint = self [[ level.customspawnlogic ]]( predictedspawn );
|
||||
self [[ level.customspawnlogic ]]( predictedspawn );
|
||||
if ( predictedspawn )
|
||||
{
|
||||
return;
|
||||
@ -1426,8 +1426,7 @@ onspawnplayer( predictedspawn ) //fixed checked changed partially to match cerbe
|
||||
structs = getstructarray( "initial_spawn", "script_noteworthy" );
|
||||
if ( isdefined( structs ) )
|
||||
{
|
||||
i = 0;
|
||||
while ( i < structs.size )
|
||||
for ( i = 0; i < structs.size; i++ )
|
||||
{
|
||||
if ( isdefined( structs[ i ].script_string ) )
|
||||
{
|
||||
@ -1440,7 +1439,6 @@ onspawnplayer( predictedspawn ) //fixed checked changed partially to match cerbe
|
||||
}
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
if ( !isDefined( spawnpoints ) || spawnpoints.size == 0 )
|
||||
|
@ -1930,7 +1930,7 @@ get_closest_2d( origin, ents ) //checked changed to match cerberus output
|
||||
|
||||
disable_trigger() //checked matches cerberus output
|
||||
{
|
||||
if ( !isDefined( self.disabled ) || !self.disabled )
|
||||
if ( !is_true( self.disabled ) )
|
||||
{
|
||||
self.disabled = 1;
|
||||
self.origin -= vectorScale( ( 0, 0, 1 ), 10000 );
|
||||
@ -1939,7 +1939,7 @@ disable_trigger() //checked matches cerberus output
|
||||
|
||||
enable_trigger() //checked matches cerberus output
|
||||
{
|
||||
if ( !isDefined( self.disabled ) || !self.disabled )
|
||||
if ( !is_true( self.disabled ) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -3389,11 +3389,11 @@ shock_onpain() //checked changed to match cerberus output
|
||||
{
|
||||
oldhealth = self.health;
|
||||
self waittill( "damage", damage, attacker, direction_vec, point, mod );
|
||||
if ( !is_true( level.shock_onpain ) )
|
||||
if( IsDefined( level.shock_onpain ) && !level.shock_onpain )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if ( !is_true( self.shock_onpain ) )
|
||||
if( IsDefined( self.shock_onpain ) && !self.shock_onpain )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
@ -1621,6 +1621,7 @@ weapon_supports_attachments( weaponname ) //checked changed at own discretion
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
random_attachment( weaponname, exclude ) //checked changed to match cerberus output
|
||||
|
Reference in New Issue
Block a user