Numerous minor fixes.

This commit is contained in:
JezuzLizard
2021-02-25 15:17:52 -08:00
parent 91b0a75736
commit eeae412f6d
16 changed files with 34 additions and 68 deletions

View File

@ -1946,18 +1946,18 @@ bot_update_killstreak() //checked partially changed to match cerberus output see
case "killstreak_rcbomb":
case "killstreak_remote_mortar":
return;
case "killstreak_remote_missile":
if ( ( time - self.spawntime ) < 6000 )
{
self switchtoweapon( weapons[ i ] );
self waittill( "weapon_change_complete" );
wait 1.5;
self pressattackbutton();
}
return;
default:
self switchtoweapon( weapons[ i ] );
break;
case "killstreak_remote_missile":
if ( ( time - self.spawntime ) < 6000 )
{
self switchtoweapon( weapons[ i ] );
self waittill( "weapon_change_complete" );
wait 1.5;
self pressattackbutton();
}
return;
default:
self switchtoweapon( weapons[ i ] );
break;
}
}

View File

@ -197,7 +197,7 @@ killcam( attackernum, targetnum, killcamentity, killcamentityindex, killcamentit
killcamlength = camtime + postdelay;
}
killcamoffset = camtime + predelay;
self notify( "begin_killcam" );
self notify( "begin_killcam", getTime() );
killcamstarttime = getTime() - ( killcamoffset * 1000 );
self.sessionstate = "spectator";
self.spectatorclient = attackernum;
@ -497,7 +497,7 @@ finalkillcam( winner ) //checked changed to match cerberus output
killcamoffset = camtime + predelay;
killcamlength = ( camtime + postdelay ) - 0.05;
killcamstarttime = getTime() - ( killcamoffset * 1000 );
self notify( "begin_killcam" );
self notify( "begin_killcam", getTime() );
self.sessionstate = "spectator";
self.spectatorclient = killcamsettings.spectatorclient;
self.killcamentity = -1;

View File

@ -326,7 +326,7 @@ domflags() //checked changed to match cerberus output
tracestart = visuals[ 0 ].origin + vectorScale( ( 0, 0, 1 ), 32 );
traceend = visuals[ 0 ].origin + vectorScale( ( 0, 0, -1 ), 32 );
trace = bullettrace( tracestart, traceend, 0, undefined );
upangles = vectorToAngle( trace[ "normal" ] );
upangles = vectorToAngles( trace[ "normal" ] );
domflag.baseeffectforward = anglesToForward( upangles );
domflag.baseeffectright = anglesToRight( upangles );
domflag.baseeffectpos = trace[ "position" ];
@ -613,7 +613,6 @@ onuse( player ) //checked changed to match cerberus output
}
self update_spawn_influencers( team );
level change_dom_spawns();
}
}
totaldomination( team ) //checked matches cerberus output