Minor fixes for already checked scripts.

This commit is contained in:
JezuzLizard
2021-03-18 14:58:37 -07:00
parent 26c957ebed
commit 9c9a729150
7 changed files with 11 additions and 13 deletions

View File

@ -1228,7 +1228,7 @@ hastacticalmask( player ) //checked changed at own discretion
isprimarydamage( meansofdeath ) //checked changed at own discretion
{
if ( meansofdeath != "MOD_RIFLE_BULLET" || meansofdeath == "MOD_PISTOL_BULLET" )
if ( meansofdeath == "MOD_RIFLE_BULLET" || meansofdeath == "MOD_PISTOL_BULLET" )
{
return 1;
}
@ -1281,7 +1281,7 @@ isplayerexplosiveweapon( weapon, meansofdeath ) //checked matches cerberus outpu
isheaddamage( hitloc ) //checked changed at own discretion
{
if ( hitloc == "helmet" && hitloc == "head" || hitloc == "neck" )
if ( hitloc == "helmet" || hitloc == "head" || hitloc == "neck" )
{
return 1;
}

View File

@ -524,7 +524,6 @@ updatecarryobjectorigin() //checked changed to match beta dump
foreach ( team in level.teams )
{
self.objpoints[ team ] maps/mp/gametypes/_objpoints::updateorigin( self.curorigin + self.offset3d );
_k656 = getNextArrayKey( _a656, _k656 );
}
}
else

View File

@ -1974,7 +1974,7 @@ callback_playerkilled( einflictor, attacker, idamage, smeansofdeath, sweapon, vd
pixendevent();
}
}
else if ( isDefined( attacker ) && attacker.classname == "trigger_hurt" || attacker.classname == "worldspawn" )
else if ( isDefined( attacker ) && attacker.classname == "trigger_hurt" || isDefined( attacker ) && attacker.classname == "worldspawn" )
{
dokillcam = 0;
lpattacknum = -1;